mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 02:50:25 +03:00
[uaccess] Formalise the uaccess API
The userptr_t is now the fundamental type that gets used for conversions. For example, virt_to_phys() is implemented in terms of virt_to_user() and user_to_phys().
This commit is contained in:
@@ -65,10 +65,8 @@ static void x86_writeq ( uint64_t data, volatile uint64_t *io_addr ) {
|
||||
: : "A" ( data ), "r" ( io_addr ) );
|
||||
}
|
||||
|
||||
PROVIDE_IOAPI_INLINE ( x86, virt_to_phys );
|
||||
PROVIDE_IOAPI_INLINE ( x86, phys_to_virt );
|
||||
PROVIDE_IOAPI_INLINE ( x86, virt_to_bus );
|
||||
PROVIDE_IOAPI_INLINE ( x86, bus_to_virt );
|
||||
PROVIDE_IOAPI_INLINE ( x86, phys_to_bus );
|
||||
PROVIDE_IOAPI_INLINE ( x86, bus_to_phys );
|
||||
PROVIDE_IOAPI_INLINE ( x86, ioremap );
|
||||
PROVIDE_IOAPI_INLINE ( x86, iounmap );
|
||||
PROVIDE_IOAPI_INLINE ( x86, io_to_bus );
|
||||
|
||||
Reference in New Issue
Block a user