diff options
| author | Michael Brown | 2025-04-24 18:11:30 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-24 18:11:30 +0200 |
| commit | 2f11f466e6b6cb47ac3b703b145e01f87bf8092e (patch) | |
| tree | 48ca106e7c8d7f42c504af9447dff713099d1339 /src/include/ipxe/blockdev.h | |
| parent | [uaccess] Remove now-obsolete memchr_user() (diff) | |
| download | ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.tar.gz ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.tar.xz ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.zip | |
[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>
Diffstat (limited to 'src/include/ipxe/blockdev.h')
| -rw-r--r-- | src/include/ipxe/blockdev.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/include/ipxe/blockdev.h b/src/include/ipxe/blockdev.h index 418c43004..ef6fc8d5a 100644 --- a/src/include/ipxe/blockdev.h +++ b/src/include/ipxe/blockdev.h @@ -11,7 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <stdint.h> -#include <ipxe/uaccess.h> #include <ipxe/interface.h> /** Block device capacity */ @@ -25,20 +24,20 @@ struct block_device_capacity { }; extern int block_read ( struct interface *control, struct interface *data, - uint64_t lba, unsigned int count, - userptr_t buffer, size_t len ); + uint64_t lba, unsigned int count, void *buffer, + size_t len ); #define block_read_TYPE( object_type ) \ typeof ( int ( object_type, struct interface *data, \ uint64_t lba, unsigned int count, \ - userptr_t buffer, size_t len ) ) + void *buffer, size_t len ) ) extern int block_write ( struct interface *control, struct interface *data, - uint64_t lba, unsigned int count, - userptr_t buffer, size_t len ); + uint64_t lba, unsigned int count, void *buffer, + size_t len ); #define block_write_TYPE( object_type ) \ typeof ( int ( object_type, struct interface *data, \ uint64_t lba, unsigned int count, \ - userptr_t buffer, size_t len ) ) + void *buffer, size_t len ) ) extern int block_read_capacity ( struct interface *control, struct interface *data ); |
