13#ifndef _EFI_SWAP_ADDRESS_RANGE_PROTOCOL_H_
14#define _EFI_SWAP_ADDRESS_RANGE_PROTOCOL_H_
16#define EFI_SWAP_ADDRESS_RANGE_PROTOCOL_GUID \
18 0x1259f60d, 0xb754, 0x468e, {0xa7, 0x89, 0x4d, 0xb8, 0x5d, 0x55, 0xe8, 0x7e } \
26#define EFI_UNSUPPORT_LOCK 0
27#define EFI_SOFTWARE_LOCK 1
28#define EFI_HARDWARE_LOCK 2
30typedef UINT8 EFI_SWAP_LOCK_CAPABILITY;
73 OUT BOOLEAN *SwapState
93 IN BOOLEAN NewSwapState
112 OUT BOOLEAN *RtcPowerFailed
130 OUT EFI_SWAP_LOCK_CAPABILITY *LockCapability
149 IN EFI_SWAP_LOCK_CAPABILITY LockCapability,
150 IN BOOLEAN NewLockState
162extern EFI_GUID gEfiSwapAddressRangeProtocolGuid;
EFI_STATUS(EFIAPI * EFI_GET_RANGE_LOCATION)(IN EFI_SWAP_ADDRESS_RANGE_PROTOCOL *This, OUT EFI_PHYSICAL_ADDRESS *BootBlockBase, OUT UINTN *BootBlockSize, OUT EFI_PHYSICAL_ADDRESS *BackupBlockBase, OUT UINTN *BackupBlockSize)
EFI_STATUS(EFIAPI * EFI_GET_SWAP_STATE)(IN EFI_SWAP_ADDRESS_RANGE_PROTOCOL *This, OUT BOOLEAN *SwapState)
EFI_STATUS(EFIAPI * EFI_GET_RTC_POWER_STATUS)(IN EFI_SWAP_ADDRESS_RANGE_PROTOCOL *This, OUT BOOLEAN *RtcPowerFailed)
EFI_STATUS(EFIAPI * EFI_SET_SWAP_STATE)(IN EFI_SWAP_ADDRESS_RANGE_PROTOCOL *This, IN BOOLEAN NewSwapState)
EFI_STATUS(EFIAPI * EFI_GET_SWAP_LOCK_CAPABILITY)(IN EFI_SWAP_ADDRESS_RANGE_PROTOCOL *This, OUT EFI_SWAP_LOCK_CAPABILITY *LockCapability)
EFI_STATUS(EFIAPI * EFI_SET_SWAP_LOCK)(IN EFI_SWAP_ADDRESS_RANGE_PROTOCOL *This, IN EFI_SWAP_LOCK_CAPABILITY LockCapability, IN BOOLEAN NewLockState)
UINT64 EFI_PHYSICAL_ADDRESS