// range requires a runtime mapping␊ |
␊ |
#define EFI_MEMORY_RUNTIME 0x8000000000000000ULL␊ |
␊ |
#define EFI_MEMORY_KERN_RESERVED (1ULL << 59)␊ |
typedef EFI_UINT64 EFI_PHYSICAL_ADDRESS;␊ |
typedef EFI_UINT64 EFI_VIRTUAL_ADDRESS;␊ |
␊ |
|
IN EFI_UINTN DescriptorSize,␊ |
IN EFI_UINT32 DescriptorVersion,␊ |
IN EFI_MEMORY_DESCRIPTOR * VirtualMap␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
typedef␊ |
EFI_RUNTIMESERVICE␊ |
|
(EFIAPI *EFI_CONVERT_POINTER) (␊ |
IN EFI_UINTN DebugDisposition,␊ |
IN OUT VOID **Address␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
␊ |
// Variable attributes␊ |
|
OUT EFI_UINT32 * Attributes OPTIONAL,␊ |
IN OUT EFI_UINTN * DataSize,␊ |
OUT VOID * Data␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
typedef␊ |
EFI_RUNTIMESERVICE␊ |
|
IN OUT EFI_UINTN * VariableNameSize,␊ |
IN OUT EFI_CHAR16 * VariableName,␊ |
IN OUT EFI_GUID * VendorGuid␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
typedef␊ |
EFI_RUNTIMESERVICE␊ |
|
IN EFI_UINT32 Attributes,␊ |
IN EFI_UINTN DataSize,␊ |
IN VOID * Data␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
␊ |
// EFI Time␊ |
|
(EFIAPI *EFI_GET_TIME) (␊ |
OUT EFI_TIME * Time,␊ |
OUT EFI_TIME_CAPABILITIES * Capabilities OPTIONAL␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
typedef␊ |
EFI_RUNTIMESERVICE␊ |
EFI_STATUS␊ |
(EFIAPI *EFI_SET_TIME) (␊ |
IN EFI_TIME * Time␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
typedef␊ |
EFI_RUNTIMESERVICE␊ |
|
OUT EFI_BOOLEAN * Enabled,␊ |
OUT EFI_BOOLEAN * Pending,␊ |
OUT EFI_TIME * Time␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
typedef␊ |
EFI_RUNTIMESERVICE␊ |
|
(EFIAPI *EFI_SET_WAKEUP_TIME) (␊ |
IN EFI_BOOLEAN Enable,␊ |
IN EFI_TIME * Time OPTIONAL␊ |
) __attribute((regparm(0)));␊ |
);␊ |
␊ |
typedef enum {␊ |
EfiResetCold,␊ |
|
IN EFI_STATUS ResetStatus,␊ |
IN EFI_UINTN DataSize,␊ |
IN EFI_CHAR16 * ResetData OPTIONAL␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
typedef␊ |
EFI_RUNTIMESERVICE␊ |
|
IN EFI_UINT32 Instance,␊ |
IN EFI_GUID * CallerId OPTIONAL,␊ |
IN EFI_STATUS_CODE_DATA * Data OPTIONAL␊ |
) __attribute__((regparm(0)));␊ |
);␊ |
␊ |
#endif␊ |
//␊ |