DxeServicesTableLib|$(WORKSPACE)/MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
FvbServiceLib|$(WORKSPACE)/MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf\r
ReportStatusCodeLib|$(WORKSPACE)/IntelFrameworkPkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf\r
- BootScriptLib|$(WORKSPACE)/IntelFrameworkPkg/Library/DxeBootScriptLibNull/DxeBootScriptLibNull.inf\r
HiiLibFramework|$(WORKSPACE)/IntelFrameworkPkg/Library/HiiLibFramework/HiiLib.inf\r
IfrSupportLibFramework|$(WORKSPACE)/IntelFrameworkPkg/Library/IfrSupportLibFramework/IfrSupportLib.inf\r
PciIncompatibleDeviceSupportLib|$(WORKSPACE)/IntelFrameworkModulePkg/Library/PciIncompatibleDeviceSupportLib/PciIncompatibleDeviceSupportLib.inf\r
+++ /dev/null
-/*++\r
-\r
- Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-Module Name:\r
- \r
- EfiScriptLib.h\r
-\r
-Abstract:\r
-\r
- \r
---*/\r
-\r
-#ifndef _BOOT_SCRIPT_LIB_H_\r
-#define _BOOT_SCRIPT_LIB_H_\r
-\r
-#include <PiPei.h>\r
-#include <Ppi/BootScriptExecuter.h>\r
-\r
-#include <IndustryStandard/SmBus.h>\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveIoWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN UINTN Count,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script with opcode EFI_BOOT_SCRIPT_IO_WRITE_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- Width - The width of the I/O operations.\r
- \r
- Address - The base address of the I/O operations.\r
- \r
- Count - The number of I/O operations to perform.\r
- \r
- Buffer - The source buffer from which to write data. \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveIoReadWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN VOID *Data,\r
- IN VOID *DataMask\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O modify to boot script with opcode EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- Width - The width of the I/O operations.\r
- \r
- Address - The base address of the I/O operations.\r
- \r
- Data - A pointer to the data to be OR-ed.\r
- \r
- DataMask - A pointer to the data mask to be AND-ed with the data read from the register.\r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveMemWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN UINTN Count,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save memory write to boot script with opcode EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- Width - The width of the memory operations.\r
- \r
- Address - The base address of the memory operations.\r
- \r
- Count - The number of memory operations to perform.\r
- \r
- Buffer - The source buffer from which to write the data. \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveMemReadWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN VOID *Data,\r
- IN VOID *DataMask\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save memory modify to boot script with opcode EFI_BOOT_SCRIPT_MEM_READ_WRITE_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- Width - The width of the memory operations.\r
- \r
- Address - The base address of the memory operations.\r
- \r
- Data - A pointer to the data to be OR-ed.\r
- \r
- DataMask - A pointer to the data mask to be AND-ed with the data read from the register.\r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSavePciCfgWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN UINTN Count,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save PCI configuration space write operation to boot script with opcode \r
- EFI_BOOT_SCRIPT_PCI_CONFIG_WRITE_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- Width - The width of the PCI operations\r
- \r
- Address - The address within the PCI configuration space.\r
- \r
- Count - The number of PCI operations to perform.\r
- \r
- Buffer - The source buffer from which to write the data.\r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSavePciCfgReadWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN VOID *Data,\r
- IN VOID *DataMask\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save PCI configuration space modify operation to boot script with opcode \r
- EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- Width - The width of the PCI operations\r
- \r
- Address - The address within the PCI configuration space.\r
- \r
- Data - A pointer to the data to be OR-ed.\r
- \r
- DataMask - A pointer to the data mask to be AND-ed with the data read from the register.\r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveSmbusExecute (\r
- IN UINT16 TableName,\r
- IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
- IN EFI_SMBUS_DEVICE_COMMAND Command,\r
- IN EFI_SMBUS_OPERATION Operation,\r
- IN BOOLEAN PecCheck,\r
- IN UINTN *Length,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save SMBus command execution to boot script with opcode \r
- EFI_BOOT_SCRIPT_SMBUS_EXECUTE_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
- SlaveAddress - The SMBus address for the slave device that the operation is targeting.\r
- Command - The command that is transmitted by the SMBus host controller to the \r
- SMBus slave device.\r
- Operation - Indicates which particular SMBus protocol it will use to execute the \r
- SMBus transactions.\r
- PecCheck - Defines if Packet Error Code (PEC) checking is required for this operation.\r
- Length - A pointer to signify the number of bytes that this operation will do.\r
- Buffer - Contains the value of data to execute to the SMBUS slave device.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveStall (\r
- IN UINT16 TableName,\r
- IN UINTN Duration\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save execution stall on the processor to boot script with opcode \r
- EFI_BOOT_SCRIPT_STALL_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
- \r
- Duration - Duration in microseconds of the stall.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveDispatch (\r
- IN UINT16 TableName,\r
- IN EFI_PHYSICAL_ADDRESS EntryPoint\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save dispatching specified arbitrary code to boot script with opcode \r
- EFI_BOOT_SCRIPT_DISPATCH_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
- \r
- EntryPoint - Entry point of the code to be dispatched.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveDispatch2 (\r
- IN UINT16 TableName,\r
- IN EFI_PHYSICAL_ADDRESS EntryPoint,\r
- IN EFI_PHYSICAL_ADDRESS Context\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save dispatching specified arbitrary code to boot script with opcode \r
- EFI_BOOT_SCRIPT_DISPATCH_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
- \r
- EntryPoint - Entry point of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveDispatch2Image (\r
- IN UINT16 TableName,\r
- IN EFI_GUID *FfsName,\r
- IN EFI_PHYSICAL_ADDRESS Context,\r
- IN EFI_HANDLE ParentHandle\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save dispatching specified arbitrary code to boot script with opcode \r
- EFI_BOOT_SCRIPT_DISPATCH_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- FfsName - The file name of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
- ParentHandle - The caller's image handle.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveInformation (\r
- IN UINT16 TableName,\r
- IN UINT32 Length, \r
- IN EFI_PHYSICAL_ADDRESS Buffer\r
- )\r
- /*++\r
-\r
-Routine Description:\r
-\r
- Save information specified by Buffer, length is specified by Length, to \r
- boot script with opcode EFI_BOOT_SCRIPT_INFORMATION_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- FfsName - The file name of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
- ParentHandle - The caller's image handle.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveInformationUnicodeString (\r
- IN UINT16 TableName,\r
- IN CONST CHAR16 *String\r
- )\r
- /*++\r
-\r
-Routine Description:\r
-\r
- Save unicode string information specified by Buffer to \r
- boot script with opcode EFI_BOOT_SCRIPT_INFORMATION_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- FfsName - The file name of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
- ParentHandle - The caller's image handle.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveInformationAsciiString (\r
- IN UINT16 TableName,\r
- IN CONST CHAR8 *String\r
- )\r
- /*++\r
-\r
-Routine Description:\r
-\r
- Save ASCII string information specified by Buffer to \r
- boot script with opcode EFI_BOOT_SCRIPT_INFORMATION_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- FfsName - The file name of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
- ParentHandle - The caller's image handle.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveInitialize (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Intialize Boot Script Lib if it has not yet been initialized. \r
-\r
-Arguments:\r
-\r
- ImageHandle - The firmware allocated handle for the EFI image.\r
- \r
- SystemTable - A pointer to the EFI System Table.\r
-\r
-Returns: \r
-\r
- EFI_STATUS always returns EFI_SUCCESS\r
-\r
---*/\r
-; \r
-#endif\r
-\r
-\r
+++ /dev/null
-/*++\r
-\r
- Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-Module Name:\r
- \r
- BootScriptLib.c\r
-\r
-Abstract:\r
-\r
- Support for EFI script. \r
-\r
---*/\r
-\r
-//\r
-// The package level header files this module uses\r
-//\r
-#include <PiDxe.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
-//\r
-// The Library classes this module consumes\r
-//\r
-#include <Library/BootScriptLib.h>\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveIoWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN UINTN Count,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI IO write script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: Width - add argument and description to function comment\r
-// GC_TODO: Address - add argument and description to function comment\r
-// GC_TODO: Count - add argument and description to function comment\r
-// GC_TODO: Buffer - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveIoReadWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN VOID *Data,\r
- IN VOID *DataMask\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI IO read write script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: Width - add argument and description to function comment\r
-// GC_TODO: Address - add argument and description to function comment\r
-// GC_TODO: Data - add argument and description to function comment\r
-// GC_TODO: DataMask - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveMemWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN UINTN Count,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI MEM write script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: Width - add argument and description to function comment\r
-// GC_TODO: Address - add argument and description to function comment\r
-// GC_TODO: Count - add argument and description to function comment\r
-// GC_TODO: Buffer - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveMemReadWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN VOID *Data,\r
- IN VOID *DataMask\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI MEM read write script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: Width - add argument and description to function comment\r
-// GC_TODO: Address - add argument and description to function comment\r
-// GC_TODO: Data - add argument and description to function comment\r
-// GC_TODO: DataMask - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSavePciCfgWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN UINTN Count,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI PCI write script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: Width - add argument and description to function comment\r
-// GC_TODO: Address - add argument and description to function comment\r
-// GC_TODO: Count - add argument and description to function comment\r
-// GC_TODO: Buffer - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSavePciCfgReadWrite (\r
- IN UINT16 TableName,\r
- IN EFI_BOOT_SCRIPT_WIDTH Width,\r
- IN UINT64 Address,\r
- IN VOID *Data,\r
- IN VOID *DataMask\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI PCI read write script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: Width - add argument and description to function comment\r
-// GC_TODO: Address - add argument and description to function comment\r
-// GC_TODO: Data - add argument and description to function comment\r
-// GC_TODO: DataMask - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveSmbusExecute (\r
- IN UINT16 TableName,\r
- IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
- IN EFI_SMBUS_DEVICE_COMMAND Command,\r
- IN EFI_SMBUS_OPERATION Operation,\r
- IN BOOLEAN PecCheck,\r
- IN UINTN *Length,\r
- IN VOID *Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI Smbus execute script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: SlaveAddress - add argument and description to function comment\r
-// GC_TODO: Command - add argument and description to function comment\r
-// GC_TODO: Operation - add argument and description to function comment\r
-// GC_TODO: PecCheck - add argument and description to function comment\r
-// GC_TODO: Length - add argument and description to function comment\r
-// GC_TODO: Buffer - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveStall (\r
- IN UINT16 TableName,\r
- IN UINTN Duration\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save I/O write to boot script \r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- (Standard EFI stall script parameter) \r
-\r
-Returns: \r
- \r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-// GC_TODO: Duration - add argument and description to function comment\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveDispatch2 (\r
- IN UINT16 TableName,\r
- IN EFI_PHYSICAL_ADDRESS EntryPoint,\r
- IN EFI_PHYSICAL_ADDRESS Context\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- GC_TODO: Add function description\r
-\r
-Arguments:\r
-\r
- TableName - GC_TODO: add argument description\r
- EntryPoint - GC_TODO: add argument description\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - GC_TODO: Add description for return value\r
- EFI_SUCCESS - GC_TODO: Add description for return value\r
-\r
---*/\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveInformation (\r
- IN UINT16 TableName,\r
- IN UINT32 Length, \r
- IN EFI_PHYSICAL_ADDRESS Buffer\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- GC_TODO: Add function description\r
-\r
-Arguments:\r
-\r
- TableName - GC_TODO: add argument description\r
- EntryPoint - GC_TODO: add argument description\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - GC_TODO: Add description for return value\r
- EFI_SUCCESS - GC_TODO: Add description for return value\r
-\r
---*/\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveInformationUnicodeString (\r
- IN UINT16 TableName,\r
- IN CONST CHAR16 *String\r
- )\r
- /*++\r
-\r
-Routine Description:\r
-\r
- Save unicode string information specified by Buffer to \r
- boot script with opcode EFI_BOOT_SCRIPT_INFORMATION_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- FfsName - The file name of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
- ParentHandle - The caller's image handle.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveInformationAsciiString (\r
- IN UINT16 TableName,\r
- IN CONST CHAR8 *String\r
- )\r
- /*++\r
-\r
-Routine Description:\r
-\r
- Save ASCII string information specified by Buffer to \r
- boot script with opcode EFI_BOOT_SCRIPT_INFORMATION_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- FfsName - The file name of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
- ParentHandle - The caller's image handle.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveDispatch (\r
- IN UINT16 TableName,\r
- IN EFI_PHYSICAL_ADDRESS EntryPoint\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- GC_TODO: Add function description\r
-\r
-Arguments:\r
-\r
- TableName - GC_TODO: add argument description\r
- EntryPoint - GC_TODO: add argument description\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - GC_TODO: Add description for return value\r
- EFI_SUCCESS - GC_TODO: Add description for return value\r
-\r
---*/\r
-{\r
- return EFI_SUCCESS;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-BootScriptSaveDispatch2Image (\r
- IN UINT16 TableName,\r
- IN EFI_GUID *FfsName,\r
- IN EFI_PHYSICAL_ADDRESS Context,\r
- IN EFI_HANDLE ParentHandle\r
- )\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Save dispatching specified arbitrary code to boot script with opcode \r
- EFI_BOOT_SCRIPT_DISPATCH_OPCODE\r
-\r
-Arguments:\r
-\r
- TableName - Desired boot script table\r
-\r
- FfsName - The file name of the code to be dispatched.\r
-\r
- Context - The data that will be passed into code.\r
-\r
- ParentHandle - The caller's image handle.\r
-\r
-Returns:\r
-\r
- EFI_NOT_FOUND - BootScriptSave Protocol not exist.\r
- \r
- EFI_STATUS - BootScriptSave Protocol exist, always returns EFI_SUCCESS\r
-\r
---*/\r
-{\r
- return EFI_SUCCESS;\r
-}\r
+++ /dev/null
-#/** @file\r
-# BootScriptLib instance that always produces NOP operation.\r
-#\r
-# This library is primarily used by platform that does not support ACPI S3 resume.\r
-# All the library interfaces simply return EFI_SUCCESS without performing any operation.\r
-#\r
-# Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
-# All rights reserved. This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#\r
-#**/\r
-\r
-################################################################################\r
-#\r
-# Defines Section - statements that will be processed to create a Makefile.\r
-#\r
-################################################################################\r
-[Defines]\r
- INF_VERSION = 0x00010005\r
- BASE_NAME = DxeBootScriptLibNull\r
- FILE_GUID = 9A6DC1AC-94C0-43b1-8714-4C70FD58A815\r
- MODULE_TYPE = DXE_DRIVER\r
- VERSION_STRING = 1.0\r
- LIBRARY_CLASS = BootScriptLib \r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
-\r
-\r
-#\r
-# The following information is for reference only and not required by the build tools.\r
-#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
-#\r
-\r
-################################################################################\r
-#\r
-# Sources Section - list of files that are required for the build to succeed.\r
-#\r
-################################################################################\r
-\r
-[Sources.common]\r
- BootScriptLib.c\r
-\r
-\r
-################################################################################\r
-#\r
-# Package Dependency Section - list of Package files that are required for\r
-# this module.\r
-#\r
-################################################################################\r
-\r
-[Packages]\r
- MdePkg/MdePkg.dec\r
- IntelFrameworkPkg/IntelFrameworkPkg.dec\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
- <MsaHeader>\r
- <ModuleName>DxeBootScriptLibNull</ModuleName>\r
- <ModuleType>DXE_DRIVER</ModuleType>\r
- <GuidValue>9A6DC1AC-94C0-43b1-8714-4C70FD58A815</GuidValue>\r
- <Version>1.0</Version>\r
- <Abstract>BootScriptLib instance that always produces NOP operation.</Abstract>\r
- <Description>This library is primarily used by platform that does not support ACPI S3 resume.\r
- All the library interfaces simply return EFI_SUCCESS without performing any operation.</Description>\r
- <Copyright>Copyright (c) 2006 - 2007, Intel Corporation<BR></Copyright>\r
- <License>\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
- </License>\r
- <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>\r
- </MsaHeader>\r
- <ModuleDefinitions>\r
- <SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>\r
- <BinaryModule>false</BinaryModule>\r
- <OutputFileBasename>DxeBootScriptLibNull</OutputFileBasename>\r
- </ModuleDefinitions>\r
- <LibraryClassDefinitions>\r
- <LibraryClass Usage="ALWAYS_PRODUCED">\r
- <Keyword>BootScriptLib</Keyword>\r
- </LibraryClass>\r
- </LibraryClassDefinitions>\r
- <SourceFiles>\r
- <Filename>BootScriptLib.c</Filename>\r
- </SourceFiles>\r
- <PackageDependencies>\r
- <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
- <Package PackageGuid="bea835f9-fd62-464a-81ff-f3a806360c6b"/>\r
- </PackageDependencies>\r
- <Externs>\r
- <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
- <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
- </Externs>\r
-</ModuleSurfaceArea>\r