39 Address =
VA_ARG (Marker, UINT64);
41 Buffer =
VA_ARG (Marker, UINT8 *);
67 Address =
VA_ARG (Marker, UINT64);
68 Data =
VA_ARG (Marker, UINT8 *);
69 DataMask =
VA_ARG (Marker, UINT8 *);
95 Address =
VA_ARG (Marker, UINT64);
97 Buffer =
VA_ARG (Marker, UINT8 *);
123 Address =
VA_ARG (Marker, UINT64);
124 Data =
VA_ARG (Marker, UINT8 *);
125 DataMask =
VA_ARG (Marker, UINT8 *);
151 Address =
VA_ARG (Marker, UINT64);
153 Buffer =
VA_ARG (Marker, UINT8 *);
179 Address =
VA_ARG (Marker, UINT64);
180 Data =
VA_ARG (Marker, UINT8 *);
181 DataMask =
VA_ARG (Marker, UINT8 *);
208 Segment =
VA_ARG (Marker, UINT16);
209 Address =
VA_ARG (Marker, UINT64);
211 Buffer =
VA_ARG (Marker, UINT8 *);
238 Segment =
VA_ARG (Marker, UINT16);
239 Address =
VA_ARG (Marker, UINT64);
240 Data =
VA_ARG (Marker, UINT8 *);
241 DataMask =
VA_ARG (Marker, UINT8 *);
269 SlaveAddress.SmbusDeviceAddress =
VA_ARG (Marker,
UINTN);
272 PecCheck =
VA_ARG (Marker, BOOLEAN);
273 SmBusAddress =
SMBUS_LIB_ADDRESS (SlaveAddress.SmbusDeviceAddress, Command, 0, PecCheck);
275 Buffer =
VA_ARG (Marker, VOID *);
297 Duration =
VA_ARG (Marker, UINT32);
348 Address =
VA_ARG (Marker, UINT64);
349 Data =
VA_ARG (Marker, VOID *);
350 DataMask =
VA_ARG (Marker, VOID *);
351 Delay =
VA_ARG (Marker, UINT64);
364 if (Remainder != 0) {
414 UINT32 InformationLength;
417 InformationLength =
VA_ARG (Marker, UINT32);
443 Address =
VA_ARG (Marker, UINT64);
444 Data =
VA_ARG (Marker, VOID *);
445 DataMask =
VA_ARG (Marker, VOID *);
446 Delay = (UINT64)
VA_ARG (Marker, UINT64);
473 Address =
VA_ARG (Marker, UINT64);
474 Data =
VA_ARG (Marker, VOID *);
475 DataMask =
VA_ARG (Marker, VOID *);
476 Delay = (UINT64)
VA_ARG (Marker, UINT64);
504 Segment =
VA_ARG (Marker, UINT16);
505 Address =
VA_ARG (Marker, UINT64);
506 Data =
VA_ARG (Marker, VOID *);
507 DataMask =
VA_ARG (Marker, VOID *);
508 Delay = (UINT64)
VA_ARG (Marker, UINT64);
555 case EFI_BOOT_SCRIPT_IO_WRITE_OPCODE:
561 case EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE:
567 case EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE:
573 case EFI_BOOT_SCRIPT_MEM_READ_WRITE_OPCODE:
579 case EFI_BOOT_SCRIPT_PCI_CONFIG_WRITE_OPCODE:
585 case EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE:
591 case EFI_BOOT_SCRIPT_SMBUS_EXECUTE_OPCODE:
597 case EFI_BOOT_SCRIPT_STALL_OPCODE:
604 case EFI_BOOT_SCRIPT_DISPATCH_OPCODE:
610 case EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE:
616 case EFI_BOOT_SCRIPT_INFORMATION_OPCODE:
622 case EFI_BOOT_SCRIPT_MEM_POLL_OPCODE:
628 case EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE:
634 case EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE:
640 case EFI_BOOT_SCRIPT_IO_POLL_OPCODE:
646 case EFI_BOOT_SCRIPT_PCI_CONFIG_POLL_OPCODE:
652 case EFI_BOOT_SCRIPT_PCI_CONFIG2_POLL_OPCODE:
659 Status = EFI_INVALID_PARAMETER;
698 IN BOOLEAN BeforeOrAfter,
699 IN OUT EFI_S3_BOOT_SCRIPT_POSITION *Position OPTIONAL,
711 case EFI_BOOT_SCRIPT_IO_WRITE_OPCODE:
717 case EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE:
723 case EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE:
729 case EFI_BOOT_SCRIPT_MEM_READ_WRITE_OPCODE:
735 case EFI_BOOT_SCRIPT_PCI_CONFIG_WRITE_OPCODE:
741 case EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE:
747 case EFI_BOOT_SCRIPT_SMBUS_EXECUTE_OPCODE:
753 case EFI_BOOT_SCRIPT_STALL_OPCODE:
760 case EFI_BOOT_SCRIPT_DISPATCH_OPCODE:
766 case EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE:
772 case EFI_BOOT_SCRIPT_INFORMATION_OPCODE:
778 case EFI_BOOT_SCRIPT_MEM_POLL_OPCODE:
784 case EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE:
790 case EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE:
796 case EFI_BOOT_SCRIPT_IO_POLL_OPCODE:
802 case EFI_BOOT_SCRIPT_PCI_CONFIG_POLL_OPCODE:
808 case EFI_BOOT_SCRIPT_PCI_CONFIG2_POLL_OPCODE:
815 Status = EFI_INVALID_PARAMETER;
819 if (!EFI_ERROR (Status)) {
857 IN BOOLEAN BeforeOrAfter,
858 IN BOOLEAN CreateIfNotFound,
859 IN OUT EFI_S3_BOOT_SCRIPT_POSITION *Position OPTIONAL,
863 return S3BootScriptLabel (BeforeOrAfter, CreateIfNotFound, (VOID **)Position, Label);
887 IN EFI_S3_BOOT_SCRIPT_POSITION Position1,
888 IN EFI_S3_BOOT_SCRIPT_POSITION Position2,
916 return EFI_UNSUPPORTED;
922 &gEfiS3SmmSaveStateProtocolGuid,
UINT64 EFIAPI DivU64x32Remainder(IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL)
RETURN_STATUS EFIAPI S3BootScriptSaveInformation(IN UINT32 InformationLength, IN VOID *Information)
RETURN_STATUS EFIAPI S3BootScriptSaveIoPoll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask, IN UINT64 Delay)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfg2ReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT16 Segment, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSavePci2Poll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT16 Segment, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask, IN UINT64 Delay)
RETURN_STATUS EFIAPI S3BootScriptSaveDispatch2(IN VOID *EntryPoint, IN VOID *Context)
RETURN_STATUS EFIAPI S3BootScriptSaveIoReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSaveIoWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfgWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptCompare(IN UINT8 *Position1, IN UINT8 *Position2, OUT UINTN *RelativePosition)
RETURN_STATUS EFIAPI S3BootScriptSaveStall(IN UINTN Duration)
RETURN_STATUS EFIAPI S3BootScriptSaveSmbusExecute(IN UINTN SmBusAddress, IN EFI_SMBUS_OPERATION Operation, IN UINTN *Length, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptSaveMemPoll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *BitMask, IN VOID *BitValue, IN UINTN Duration, IN UINT64 LoopTimes)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfg2Write(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT16 Segment, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptSaveDispatch(IN VOID *EntryPoint)
RETURN_STATUS EFIAPI S3BootScriptMoveLastOpcode(IN BOOLEAN BeforeOrAfter, IN OUT VOID **Position OPTIONAL)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfgReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSaveMemWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptLabel(IN BOOLEAN BeforeOrAfter, IN BOOLEAN CreateIfNotFound, IN OUT VOID **Position OPTIONAL, IN CONST CHAR8 *Label)
RETURN_STATUS EFIAPI S3BootScriptSaveMemReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSavePciPoll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask, IN UINT64 Delay)
#define VA_ARG(Marker, TYPE)
#define VA_START(Marker, Parameter)
#define PcdGetBool(TokenName)
EFI_SMM_SYSTEM_TABLE2 * gSmst
UINTN EFI_SMBUS_DEVICE_COMMAND
enum _EFI_SMBUS_OPERATION EFI_SMBUS_OPERATION
#define SMBUS_LIB_ADDRESS(SlaveAddress, Command, Length, Pec)
EFI_STATUS BootScriptWriteIoWrite(IN VA_LIST Marker)
EFI_STATUS EFIAPI BootScriptLabel(IN CONST EFI_S3_SAVE_STATE_PROTOCOL *This, IN BOOLEAN BeforeOrAfter, IN BOOLEAN CreateIfNotFound, IN OUT EFI_S3_BOOT_SCRIPT_POSITION *Position OPTIONAL, IN CONST CHAR8 *Label)
EFI_STATUS BootScriptWriteInformation(IN VA_LIST Marker)
EFI_STATUS BootScriptWritePciConfigPoll(IN VA_LIST Marker)
EFI_STATUS EFIAPI BootScriptWrite(IN CONST EFI_S3_SAVE_STATE_PROTOCOL *This, IN UINTN OpCode,...)
EFI_STATUS BootScriptWriteStall(IN VA_LIST Marker)
EFI_STATUS EFIAPI BootScriptInsert(IN CONST EFI_S3_SAVE_STATE_PROTOCOL *This, IN BOOLEAN BeforeOrAfter, IN OUT EFI_S3_BOOT_SCRIPT_POSITION *Position OPTIONAL, IN UINTN OpCode,...)
EFI_STATUS BootScriptWritePciCfgReadWrite(IN VA_LIST Marker)
EFI_STATUS BootScriptWriteDispatch2(IN VA_LIST Marker)
EFI_STATUS BootScriptWriteIoReadWrite(IN VA_LIST Marker)
EFI_STATUS EFIAPI InitializeSmmS3SaveState(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS BootScriptWriteMemReadWrite(IN VA_LIST Marker)
EFI_STATUS BootScriptWritePciCfgWrite(IN VA_LIST Marker)
EFI_STATUS BootScriptWriteDispatch(IN VA_LIST Marker)
EFI_STATUS BootScriptWritePciConfig2Poll(IN VA_LIST Marker)
EFI_STATUS BootScriptWriteMemWrite(IN VA_LIST Marker)
EFI_STATUS BootScriptWriteIoPoll(IN VA_LIST Marker)
EFI_STATUS BootScriptWriteMemPoll(IN VA_LIST Marker)
EFI_STATUS BootScriptWritePciCfg2ReadWrite(IN VA_LIST Marker)
EFI_STATUS EFIAPI BootScriptCompare(IN CONST EFI_S3_SAVE_STATE_PROTOCOL *This, IN EFI_S3_BOOT_SCRIPT_POSITION Position1, IN EFI_S3_BOOT_SCRIPT_POSITION Position2, OUT UINTN *RelativePosition)
EFI_STATUS BootScriptWriteSmbusExecute(IN VA_LIST Marker)
EFI_STATUS BootScriptWritePciCfg2Write(IN VA_LIST Marker)
UINT64 EFI_PHYSICAL_ADDRESS
EFI_INSTALL_PROTOCOL_INTERFACE SmmInstallProtocolInterface