mirror of
https://github.com/ipxe/ipxe
synced 2026-01-29 12:29:13 +03:00
[block] Remove userptr_t from block device abstraction
Simplify the block device code by assuming that all read/write buffers are directly accessible via pointer dereferences. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -95,8 +95,9 @@ struct efi_block_data {
|
||||
static int efi_block_rw ( struct san_device *sandev, uint64_t lba,
|
||||
void *data, size_t len,
|
||||
int ( * sandev_rw ) ( struct san_device *sandev,
|
||||
uint64_t lba, unsigned int count,
|
||||
userptr_t buffer ) ) {
|
||||
uint64_t lba,
|
||||
unsigned int count,
|
||||
void *buffer ) ) {
|
||||
struct efi_block_data *block = sandev->priv;
|
||||
unsigned int count;
|
||||
int rc;
|
||||
|
||||
Reference in New Issue
Block a user