iPXE
Defines | Functions
efi_uaccess.h File Reference

iPXE user access API for EFI More...

Go to the source code of this file.

Defines

#define UACCESS_PREFIX_efi   __efi_

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static __always_inline userptr_t UACCESS_INLINE (efi, phys_to_user)(unsigned long phys_addr)
 Convert physical address to user pointer.
static __always_inline
unsigned long 
UACCESS_INLINE (efi, user_to_phys)(userptr_t userptr
 Convert user buffer to physical address.

Detailed Description

iPXE user access API for EFI

EFI runs with flat physical addressing, so the various mappings between virtual addresses, I/O addresses and bus addresses are all no-ops.

Definition in file efi_uaccess.h.


Define Documentation

#define UACCESS_PREFIX_efi   __efi_

Definition at line 18 of file efi_uaccess.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static __always_inline userptr_t UACCESS_INLINE ( efi  ,
phys_to_user   
) [inline, static]

Convert physical address to user pointer.

Parameters:
phys_addrPhysical address
Return values:
userptrUser pointer

Definition at line 28 of file efi_uaccess.h.

                                                                 {
        return phys_addr;
}
static __always_inline unsigned long UACCESS_INLINE ( efi  ,
user_to_phys   
) [inline, static]

Convert user buffer to physical address.

Parameters:
userptrUser pointer
offsetOffset from user pointer
Return values:
phys_addrPhysical address