clean up the un-suitable ';' location when declaring the functions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5820 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -87,7 +87,6 @@ typedef
|
|||||||
VOID
|
VOID
|
||||||
(* EFI_MAIN_ENTRYPOINT) (
|
(* EFI_MAIN_ENTRYPOINT) (
|
||||||
IN EFILDRHANDOFF *Handoff
|
IN EFILDRHANDOFF *Handoff
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif //_DUET_EFI_LOADER_H_
|
#endif //_DUET_EFI_LOADER_H_
|
@ -105,16 +105,14 @@ EFIAPI
|
|||||||
VariableServiceInitialize (
|
VariableServiceInitialize (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
VariableClassAddressChangeEvent (
|
VariableClassAddressChangeEvent (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -124,8 +122,7 @@ GetVariable (
|
|||||||
OUT UINT32 *Attributes OPTIONAL,
|
OUT UINT32 *Attributes OPTIONAL,
|
||||||
IN OUT UINTN *DataSize,
|
IN OUT UINTN *DataSize,
|
||||||
OUT VOID *Data
|
OUT VOID *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -133,8 +130,7 @@ GetNextVariableName (
|
|||||||
IN OUT UINTN *VariableNameSize,
|
IN OUT UINTN *VariableNameSize,
|
||||||
IN OUT CHAR16 *VariableName,
|
IN OUT CHAR16 *VariableName,
|
||||||
IN OUT EFI_GUID *VendorGuid
|
IN OUT EFI_GUID *VendorGuid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -144,8 +140,7 @@ SetVariable (
|
|||||||
IN UINT32 Attributes,
|
IN UINT32 Attributes,
|
||||||
IN UINTN DataSize,
|
IN UINTN DataSize,
|
||||||
IN VOID *Data
|
IN VOID *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#if (EFI_SPECIFICATION_VERSION >= 0x00020000)
|
#if (EFI_SPECIFICATION_VERSION >= 0x00020000)
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -155,8 +150,7 @@ QueryVariableInfo (
|
|||||||
OUT UINT64 *MaximumVariableStorageSize,
|
OUT UINT64 *MaximumVariableStorageSize,
|
||||||
OUT UINT64 *RemainingVariableStorageSize,
|
OUT UINT64 *RemainingVariableStorageSize,
|
||||||
OUT UINT64 *MaximumVariableSize
|
OUT UINT64 *MaximumVariableSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif // EFI_SPECIFICATION_VERSION >= 0x00020000
|
#endif // EFI_SPECIFICATION_VERSION >= 0x00020000
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -132,34 +132,29 @@ EFI_STATUS
|
|||||||
GetFvbInfo (
|
GetFvbInfo (
|
||||||
IN EFI_PHYSICAL_ADDRESS FvBaseAddress,
|
IN EFI_PHYSICAL_ADDRESS FvBaseAddress,
|
||||||
OUT EFI_FIRMWARE_VOLUME_HEADER **FvbInfo
|
OUT EFI_FIRMWARE_VOLUME_HEADER **FvbInfo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EnableFvbWrites (
|
EnableFvbWrites (
|
||||||
IN BOOLEAN EnableWrites
|
IN BOOLEAN EnableWrites
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PlatformGetFvbWriteBase (
|
PlatformGetFvbWriteBase (
|
||||||
IN UINTN CurrentBaseAddress,
|
IN UINTN CurrentBaseAddress,
|
||||||
IN UINTN *NewBaseAddress,
|
IN UINTN *NewBaseAddress,
|
||||||
IN BOOLEAN *WriteEnabled
|
IN BOOLEAN *WriteEnabled
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EnablePlatformFvb (
|
EnablePlatformFvb (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
SetPlatformFvbLock (
|
SetPlatformFvbLock (
|
||||||
IN UINTN LbaAddress
|
IN UINTN LbaAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbReadBlock (
|
FvbReadBlock (
|
||||||
@ -170,8 +165,7 @@ FvbReadBlock (
|
|||||||
IN UINT8 *Buffer,
|
IN UINT8 *Buffer,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbWriteBlock (
|
FvbWriteBlock (
|
||||||
@ -182,8 +176,7 @@ FvbWriteBlock (
|
|||||||
IN UINT8 *Buffer,
|
IN UINT8 *Buffer,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbEraseBlock (
|
FvbEraseBlock (
|
||||||
@ -191,8 +184,7 @@ FvbEraseBlock (
|
|||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbSetVolumeAttributes (
|
FvbSetVolumeAttributes (
|
||||||
@ -200,8 +192,7 @@ FvbSetVolumeAttributes (
|
|||||||
IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes,
|
IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbGetVolumeAttributes (
|
FvbGetVolumeAttributes (
|
||||||
@ -209,8 +200,7 @@ FvbGetVolumeAttributes (
|
|||||||
OUT EFI_FVB_ATTRIBUTES_2 *Attributes,
|
OUT EFI_FVB_ATTRIBUTES_2 *Attributes,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbGetPhysicalAddress (
|
FvbGetPhysicalAddress (
|
||||||
@ -218,30 +208,26 @@ FvbGetPhysicalAddress (
|
|||||||
OUT EFI_PHYSICAL_ADDRESS *Address,
|
OUT EFI_PHYSICAL_ADDRESS *Address,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvbInitialize (
|
FvbInitialize (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvbClassAddressChangeEvent (
|
FvbClassAddressChangeEvent (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbSpecificInitialize (
|
FvbSpecificInitialize (
|
||||||
IN ESAL_FWB_GLOBAL *mFvbModuleGlobal
|
IN ESAL_FWB_GLOBAL *mFvbModuleGlobal
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbGetLbaAddress (
|
FvbGetLbaAddress (
|
||||||
@ -252,8 +238,7 @@ FvbGetLbaAddress (
|
|||||||
OUT UINTN *NumOfBlocks,
|
OUT UINTN *NumOfBlocks,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvbEraseCustomBlockRange (
|
FvbEraseCustomBlockRange (
|
||||||
@ -264,8 +249,7 @@ FvbEraseCustomBlockRange (
|
|||||||
IN UINTN OffsetLastLba,
|
IN UINTN OffsetLastLba,
|
||||||
IN ESAL_FWB_GLOBAL *Global,
|
IN ESAL_FWB_GLOBAL *Global,
|
||||||
IN BOOLEAN Virtual
|
IN BOOLEAN Virtual
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Protocol APIs
|
// Protocol APIs
|
||||||
@ -275,24 +259,21 @@ EFIAPI
|
|||||||
FvbProtocolGetAttributes (
|
FvbProtocolGetAttributes (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
OUT EFI_FVB_ATTRIBUTES_2 *Attributes
|
OUT EFI_FVB_ATTRIBUTES_2 *Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvbProtocolSetAttributes (
|
FvbProtocolSetAttributes (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes
|
IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvbProtocolGetPhysicalAddress (
|
FvbProtocolGetPhysicalAddress (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *Address
|
OUT EFI_PHYSICAL_ADDRESS *Address
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -301,8 +282,7 @@ FvbProtocolGetBlockSize (
|
|||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
OUT UINTN *BlockSize,
|
OUT UINTN *BlockSize,
|
||||||
OUT UINTN *NumOfBlocks
|
OUT UINTN *NumOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -312,8 +292,7 @@ FvbProtocolRead (
|
|||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN OUT UINTN *NumBytes,
|
IN OUT UINTN *NumBytes,
|
||||||
IN UINT8 *Buffer
|
IN UINT8 *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -323,16 +302,14 @@ FvbProtocolWrite (
|
|||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN OUT UINTN *NumBytes,
|
IN OUT UINTN *NumBytes,
|
||||||
IN UINT8 *Buffer
|
IN UINT8 *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvbProtocolEraseBlocks (
|
FvbProtocolEraseBlocks (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -342,7 +319,6 @@ FvbExtendProtocolEraseCustomBlockRange (
|
|||||||
IN UINTN OffsetStartLba,
|
IN UINTN OffsetStartLba,
|
||||||
IN EFI_LBA LastLba,
|
IN EFI_LBA LastLba,
|
||||||
IN UINTN OffsetLastLba
|
IN UINTN OffsetLastLba
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -203,28 +203,24 @@ extern PLATFORM_ROOT_BRIDGE_DEVICE_PATH gPlatformRootBridge0;
|
|||||||
VOID
|
VOID
|
||||||
PlatformBdsInit (
|
PlatformBdsInit (
|
||||||
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
|
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PlatformBdsPolicyBehavior (
|
PlatformBdsPolicyBehavior (
|
||||||
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
|
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
|
||||||
IN LIST_ENTRY *DriverOptionList,
|
IN LIST_ENTRY *DriverOptionList,
|
||||||
IN LIST_ENTRY *BootOptionList
|
IN LIST_ENTRY *BootOptionList
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PlatformBdsGetDriverOption (
|
PlatformBdsGetDriverOption (
|
||||||
IN LIST_ENTRY *BdsDriverLists
|
IN LIST_ENTRY *BdsDriverLists
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BdsMemoryTest (
|
BdsMemoryTest (
|
||||||
EXTENDMEM_COVERAGE_LEVEL Level
|
EXTENDMEM_COVERAGE_LEVEL Level
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PlatformBdsShowProgress (
|
PlatformBdsShowProgress (
|
||||||
@ -234,14 +230,12 @@ PlatformBdsShowProgress (
|
|||||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
|
EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,
|
||||||
UINTN Progress,
|
UINTN Progress,
|
||||||
UINTN PreviousValue
|
UINTN PreviousValue
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PlatformBdsConnectSequence (
|
PlatformBdsConnectSequence (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PlatformBdsBootFail (
|
PlatformBdsBootFail (
|
||||||
@ -249,64 +243,54 @@ PlatformBdsBootFail (
|
|||||||
IN EFI_STATUS Status,
|
IN EFI_STATUS Status,
|
||||||
IN CHAR16 *ExitData,
|
IN CHAR16 *ExitData,
|
||||||
IN UINTN ExitDataSize
|
IN UINTN ExitDataSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PlatformBdsBootSuccess (
|
PlatformBdsBootSuccess (
|
||||||
IN BDS_COMMON_OPTION *Option
|
IN BDS_COMMON_OPTION *Option
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ProcessCapsules (
|
ProcessCapsules (
|
||||||
EFI_BOOT_MODE BootMode
|
EFI_BOOT_MODE BootMode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PlatformBdsConnectConsole (
|
PlatformBdsConnectConsole (
|
||||||
IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
|
IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PlatformBdsNoConsoleAction (
|
PlatformBdsNoConsoleAction (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ConvertMpsTable (
|
ConvertMpsTable (
|
||||||
IN OUT VOID **Table
|
IN OUT VOID **Table
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ConvertSmbiosTable (
|
ConvertSmbiosTable (
|
||||||
IN OUT VOID **Table
|
IN OUT VOID **Table
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ConvertAcpiTable (
|
ConvertAcpiTable (
|
||||||
IN UINTN TableLen,
|
IN UINTN TableLen,
|
||||||
IN OUT VOID **Table
|
IN OUT VOID **Table
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ConvertSystemTable (
|
ConvertSystemTable (
|
||||||
IN EFI_GUID *TableGuid,
|
IN EFI_GUID *TableGuid,
|
||||||
IN OUT VOID **Table
|
IN OUT VOID **Table
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PlatformBdsEnterFrontPage (
|
PlatformBdsEnterFrontPage (
|
||||||
IN UINT16 TimeoutDefault,
|
IN UINT16 TimeoutDefault,
|
||||||
IN BOOLEAN ConnectAllHappened
|
IN BOOLEAN ConnectAllHappened
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif // _PLATFORM_SPECIFIC_BDS_PLATFORM_H_
|
#endif // _PLATFORM_SPECIFIC_BDS_PLATFORM_H_
|
||||||
|
@ -508,8 +508,7 @@ FdcControllerDriverSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create floppy control instance on controller.
|
Create floppy control instance on controller.
|
||||||
@ -526,8 +525,7 @@ FdcControllerDriverStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stop this driver on ControllerHandle. Support stoping any child handles
|
Stop this driver on ControllerHandle. Support stoping any child handles
|
||||||
@ -550,8 +548,7 @@ FdcControllerDriverStop (
|
|||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI Block I/O Protocol Functions
|
// EFI Block I/O Protocol Functions
|
||||||
@ -573,8 +570,7 @@ EFIAPI
|
|||||||
FdcReset (
|
FdcReset (
|
||||||
IN EFI_BLOCK_IO_PROTOCOL *This,
|
IN EFI_BLOCK_IO_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Flush block via fdd controller
|
Flush block via fdd controller
|
||||||
@ -587,8 +583,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
FddFlushBlocks (
|
FddFlushBlocks (
|
||||||
IN EFI_BLOCK_IO_PROTOCOL *This
|
IN EFI_BLOCK_IO_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read the requested number of blocks from the device
|
Read the requested number of blocks from the device
|
||||||
@ -618,8 +613,7 @@ FddReadBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write a specified number of blocks to the device
|
Write a specified number of blocks to the device
|
||||||
@ -649,8 +643,7 @@ FddWriteBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Prototypes of internal functions
|
// Prototypes of internal functions
|
||||||
@ -667,8 +660,7 @@ FddWriteBlocks (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DiscoverFddDevice (
|
DiscoverFddDevice (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -682,8 +674,7 @@ DiscoverFddDevice (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FddIdentify (
|
FddIdentify (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -699,8 +690,7 @@ FddIdentify (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FddReset (
|
FddReset (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -717,8 +707,7 @@ FddReset (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
MotorOn (
|
MotorOn (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -734,8 +723,7 @@ MotorOn (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
MotorOff (
|
MotorOff (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Detect the disk in the drive is changed or not
|
Detect the disk in the drive is changed or not
|
||||||
@ -751,8 +739,7 @@ MotorOff (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DisketChanged (
|
DisketChanged (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Do the Specify command, this command sets DMA operation
|
Do the Specify command, this command sets DMA operation
|
||||||
@ -768,8 +755,7 @@ DisketChanged (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
Specify (
|
Specify (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the head of floppy drive to track 0
|
Set the head of floppy drive to track 0
|
||||||
@ -782,8 +768,7 @@ Specify (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
Recalibrate (
|
Recalibrate (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the head of floppy drive to the new cylinder
|
Set the head of floppy drive to the new cylinder
|
||||||
@ -799,8 +784,7 @@ EFI_STATUS
|
|||||||
Seek (
|
Seek (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN EFI_LBA Lba
|
IN EFI_LBA Lba
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Do the Sense Interrupt Status command, this command
|
Do the Sense Interrupt Status command, this command
|
||||||
@ -820,8 +804,7 @@ SenseIntStatus (
|
|||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN OUT UINT8 *StatusRegister0,
|
IN OUT UINT8 *StatusRegister0,
|
||||||
IN OUT UINT8 *PresentCylinderNumber
|
IN OUT UINT8 *PresentCylinderNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Do the Sense Drive Status command
|
Do the Sense Drive Status command
|
||||||
@ -838,8 +821,7 @@ EFI_STATUS
|
|||||||
SenseDrvStatus (
|
SenseDrvStatus (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN EFI_LBA Lba
|
IN EFI_LBA Lba
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update the disk media properties and if necessary
|
Update the disk media properties and if necessary
|
||||||
@ -854,8 +836,7 @@ SenseDrvStatus (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DetectMedia (
|
DetectMedia (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the data rate and so on
|
Set the data rate and so on
|
||||||
@ -867,8 +848,7 @@ DetectMedia (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
Setup (
|
Setup (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read or Write a number of blocks in the same cylinder
|
Read or Write a number of blocks in the same cylinder
|
||||||
@ -889,8 +869,7 @@ ReadWriteDataSector (
|
|||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN NumberOfBlocks,
|
IN UINTN NumberOfBlocks,
|
||||||
IN BOOLEAN Read
|
IN BOOLEAN Read
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Fill in FDD command's parameter
|
Fill in FDD command's parameter
|
||||||
@ -905,8 +884,7 @@ FillPara (
|
|||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN FDD_COMMAND_PACKET1 *Command
|
IN FDD_COMMAND_PACKET1 *Command
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read result byte from Data Register of FDC
|
Read result byte from Data Register of FDC
|
||||||
@ -923,8 +901,7 @@ EFI_STATUS
|
|||||||
DataInByte (
|
DataInByte (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN UINT8 *Pointer
|
IN UINT8 *Pointer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write command byte to Data Register of FDC
|
Write command byte to Data Register of FDC
|
||||||
@ -940,8 +917,7 @@ EFI_STATUS
|
|||||||
DataOutByte (
|
DataOutByte (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN UINT8 *Pointer
|
IN UINT8 *Pointer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Detect the specified floppy logic drive is busy or
|
Detect the specified floppy logic drive is busy or
|
||||||
@ -959,8 +935,7 @@ EFI_STATUS
|
|||||||
FddWaitForBSYClear (
|
FddWaitForBSYClear (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN UINTN TimeoutInSeconds
|
IN UINTN TimeoutInSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -979,8 +954,7 @@ FddDRQReady (
|
|||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN BOOLEAN Dio,
|
IN BOOLEAN Dio,
|
||||||
IN UINTN TimeoutInSeconds
|
IN UINTN TimeoutInSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set FDC control structure's attribute according to
|
Set FDC control structure's attribute according to
|
||||||
@ -999,8 +973,7 @@ EFI_STATUS
|
|||||||
CheckResult (
|
CheckResult (
|
||||||
IN FDD_RESULT_PACKET *Result,
|
IN FDD_RESULT_PACKET *Result,
|
||||||
IN OUT FDC_BLK_IO_DEV *FdcDev
|
IN OUT FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check the drive status information
|
Check the drive status information
|
||||||
@ -1014,8 +987,7 @@ CheckResult (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CheckStatus3 (
|
CheckStatus3 (
|
||||||
IN UINT8 StatusRegister3
|
IN UINT8 StatusRegister3
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Calculate the number of block in the same cylinder
|
Calculate the number of block in the same cylinder
|
||||||
@ -1034,8 +1006,7 @@ GetTransferBlockCount (
|
|||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
When the Timer(2s) off, turn the drive's motor off
|
When the Timer(2s) off, turn the drive's motor off
|
||||||
@ -1050,8 +1021,7 @@ EFIAPI
|
|||||||
FddTimerProc (
|
FddTimerProc (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read I/O port for FDC
|
Read I/O port for FDC
|
||||||
@ -1064,8 +1034,7 @@ UINT8
|
|||||||
FdcReadPort (
|
FdcReadPort (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN UINT32 Offset
|
IN UINT32 Offset
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write I/O port for FDC
|
Write I/O port for FDC
|
||||||
@ -1080,8 +1049,7 @@ FdcWritePort (
|
|||||||
IN FDC_BLK_IO_DEV *FdcDev,
|
IN FDC_BLK_IO_DEV *FdcDev,
|
||||||
IN UINT32 Offset,
|
IN UINT32 Offset,
|
||||||
IN UINT8 Data
|
IN UINT8 Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read or Write a number of blocks to floppy device
|
Read or Write a number of blocks to floppy device
|
||||||
@ -1117,8 +1085,7 @@ FddReadWriteBlocks (
|
|||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN BOOLEAN Operation,
|
IN BOOLEAN Operation,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Common interface for free cache
|
Common interface for free cache
|
||||||
@ -1129,8 +1096,7 @@ FddReadWriteBlocks (
|
|||||||
VOID
|
VOID
|
||||||
FdcFreeCache (
|
FdcFreeCache (
|
||||||
IN FDC_BLK_IO_DEV *FdcDev
|
IN FDC_BLK_IO_DEV *FdcDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -60,8 +60,7 @@ BOOLEAN
|
|||||||
IsKeyRegistered (
|
IsKeyRegistered (
|
||||||
IN EFI_KEY_DATA *RegsiteredData,
|
IN EFI_KEY_DATA *RegsiteredData,
|
||||||
IN EFI_KEY_DATA *InputData
|
IN EFI_KEY_DATA *InputData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the next keystroke from the input device. The WaitForKey Event can
|
Reads the next keystroke from the input device. The WaitForKey Event can
|
||||||
|
@ -146,8 +146,7 @@ EFIAPI
|
|||||||
InstallPs2KeyboardDriver (
|
InstallPs2KeyboardDriver (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#define KEYBOARD_8042_DATA_REGISTER 0x60
|
#define KEYBOARD_8042_DATA_REGISTER 0x60
|
||||||
#define KEYBOARD_8042_STATUS_REGISTER 0x64
|
#define KEYBOARD_8042_STATUS_REGISTER 0x64
|
||||||
@ -197,8 +196,7 @@ InstallPs2KeyboardDriver (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UpdateStatusLights (
|
UpdateStatusLights (
|
||||||
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
write key to keyboard
|
write key to keyboard
|
||||||
@ -214,8 +212,7 @@ EFI_STATUS
|
|||||||
KeyboardRead (
|
KeyboardRead (
|
||||||
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn,
|
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn,
|
||||||
OUT UINT8 *Data
|
OUT UINT8 *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get scancode from scancode buffer
|
Get scancode from scancode buffer
|
||||||
@ -231,8 +228,7 @@ KeyboardRead (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KeyGetchar (
|
KeyGetchar (
|
||||||
IN OUT KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
IN OUT KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Perform 8042 controller and keyboard Initialization
|
Perform 8042 controller and keyboard Initialization
|
||||||
@ -249,8 +245,7 @@ EFI_STATUS
|
|||||||
InitKeyboard (
|
InitKeyboard (
|
||||||
IN OUT KEYBOARD_CONSOLE_IN_DEV *ConsoleIn,
|
IN OUT KEYBOARD_CONSOLE_IN_DEV *ConsoleIn,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Disable the keyboard interface of the 8042 controller
|
Disable the keyboard interface of the 8042 controller
|
||||||
@ -263,8 +258,7 @@ InitKeyboard (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DisableKeyboard (
|
DisableKeyboard (
|
||||||
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Timer event handler: read a series of scancodes from 8042
|
Timer event handler: read a series of scancodes from 8042
|
||||||
@ -282,8 +276,7 @@ EFIAPI
|
|||||||
KeyboardTimerHandler (
|
KeyboardTimerHandler (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
logic reset keyboard
|
logic reset keyboard
|
||||||
@ -301,8 +294,7 @@ EFIAPI
|
|||||||
KeyboardEfiReset (
|
KeyboardEfiReset (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implement SIMPLE_TEXT_IN.ReadKeyStroke().
|
Implement SIMPLE_TEXT_IN.ReadKeyStroke().
|
||||||
@ -318,8 +310,7 @@ EFIAPI
|
|||||||
KeyboardReadKeyStroke (
|
KeyboardReadKeyStroke (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
||||||
OUT EFI_INPUT_KEY *Key
|
OUT EFI_INPUT_KEY *Key
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Event notification function for SIMPLE_TEXT_IN.WaitForKey event
|
Event notification function for SIMPLE_TEXT_IN.WaitForKey event
|
||||||
@ -334,8 +325,7 @@ EFIAPI
|
|||||||
KeyboardWaitForKey (
|
KeyboardWaitForKey (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read status register
|
Read status register
|
||||||
@ -348,8 +338,7 @@ KeyboardWaitForKey (
|
|||||||
UINT8
|
UINT8
|
||||||
KeyReadStatusRegister (
|
KeyReadStatusRegister (
|
||||||
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check whether there is Ps/2 Keyboard device in system by 0xF4 Keyboard Command
|
Check whether there is Ps/2 Keyboard device in system by 0xF4 Keyboard Command
|
||||||
@ -365,8 +354,7 @@ BOOLEAN
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
CheckKeyboardConnect (
|
CheckKeyboardConnect (
|
||||||
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Event notification function for SIMPLE_TEXT_INPUT_EX_PROTOCOL.WaitForKeyEx event
|
Event notification function for SIMPLE_TEXT_INPUT_EX_PROTOCOL.WaitForKeyEx event
|
||||||
@ -381,8 +369,7 @@ EFIAPI
|
|||||||
KeyboardWaitForKeyEx (
|
KeyboardWaitForKeyEx (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Simple Text Input Ex protocol function prototypes
|
// Simple Text Input Ex protocol function prototypes
|
||||||
@ -404,8 +391,7 @@ EFIAPI
|
|||||||
KeyboardEfiResetEx (
|
KeyboardEfiResetEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the next keystroke from the input device. The WaitForKey Event can
|
Reads the next keystroke from the input device. The WaitForKey Event can
|
||||||
@ -428,8 +414,7 @@ EFIAPI
|
|||||||
KeyboardReadKeyStrokeEx (
|
KeyboardReadKeyStrokeEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
OUT EFI_KEY_DATA *KeyData
|
OUT EFI_KEY_DATA *KeyData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set certain state for the input device.
|
Set certain state for the input device.
|
||||||
@ -450,8 +435,7 @@ EFIAPI
|
|||||||
KeyboardSetState (
|
KeyboardSetState (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Register a notification function for a particular keystroke for the input device.
|
Register a notification function for a particular keystroke for the input device.
|
||||||
@ -475,8 +459,7 @@ KeyboardRegisterKeyNotify (
|
|||||||
IN EFI_KEY_DATA *KeyData,
|
IN EFI_KEY_DATA *KeyData,
|
||||||
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
||||||
OUT EFI_HANDLE *NotifyHandle
|
OUT EFI_HANDLE *NotifyHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove a registered notification function from a particular keystroke.
|
Remove a registered notification function from a particular keystroke.
|
||||||
@ -495,7 +478,6 @@ EFIAPI
|
|||||||
KeyboardUnregisterKeyNotify (
|
KeyboardUnregisterKeyNotify (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_HANDLE NotificationHandle
|
IN EFI_HANDLE NotificationHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -113,8 +113,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcSelfTest (
|
KbcSelfTest (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to enable keyboard AUX functionality.
|
Issue command to enable keyboard AUX functionality.
|
||||||
@ -126,8 +125,7 @@ KbcSelfTest (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcEnableAux (
|
KbcEnableAux (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to disable keyboard AUX functionality.
|
Issue command to disable keyboard AUX functionality.
|
||||||
@ -139,8 +137,7 @@ KbcEnableAux (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcDisableAux (
|
KbcDisableAux (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to enable keyboard.
|
Issue command to enable keyboard.
|
||||||
@ -152,8 +149,7 @@ KbcDisableAux (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcEnableKb (
|
KbcEnableKb (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to disable keyboard.
|
Issue command to disable keyboard.
|
||||||
@ -165,8 +161,7 @@ KbcEnableKb (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcDisableKb (
|
KbcDisableKb (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to check keyboard status.
|
Issue command to check keyboard status.
|
||||||
@ -180,8 +175,7 @@ EFI_STATUS
|
|||||||
CheckKbStatus (
|
CheckKbStatus (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
OUT BOOLEAN *KeyboardEnable
|
OUT BOOLEAN *KeyboardEnable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to reset keyboard.
|
Issue command to reset keyboard.
|
||||||
@ -193,8 +187,7 @@ CheckKbStatus (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PS2MouseReset (
|
PS2MouseReset (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to set mouse's sample rate
|
Issue command to set mouse's sample rate
|
||||||
@ -208,8 +201,7 @@ EFI_STATUS
|
|||||||
PS2MouseSetSampleRate (
|
PS2MouseSetSampleRate (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN MOUSE_SR SampleRate
|
IN MOUSE_SR SampleRate
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to set mouse's resolution.
|
Issue command to set mouse's resolution.
|
||||||
@ -223,8 +215,7 @@ EFI_STATUS
|
|||||||
PS2MouseSetResolution (
|
PS2MouseSetResolution (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN MOUSE_RE Resolution
|
IN MOUSE_RE Resolution
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to set mouse's scaling.
|
Issue command to set mouse's scaling.
|
||||||
@ -238,8 +229,7 @@ EFI_STATUS
|
|||||||
PS2MouseSetScaling (
|
PS2MouseSetScaling (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN MOUSE_SF Scaling
|
IN MOUSE_SF Scaling
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to enable Ps2 mouse.
|
Issue command to enable Ps2 mouse.
|
||||||
@ -251,8 +241,7 @@ PS2MouseSetScaling (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PS2MouseEnable (
|
PS2MouseEnable (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get mouse packet . Only care first 3 bytes
|
Get mouse packet . Only care first 3 bytes
|
||||||
@ -266,8 +255,7 @@ PS2MouseEnable (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PS2MouseGetPacket (
|
PS2MouseGetPacket (
|
||||||
PS2_MOUSE_ABSOLUTE_POINTER_DEV *MouseAbsolutePointerDev
|
PS2_MOUSE_ABSOLUTE_POINTER_DEV *MouseAbsolutePointerDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read data via IsaIo protocol with given number.
|
Read data via IsaIo protocol with given number.
|
||||||
|
@ -114,8 +114,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcSelfTest (
|
KbcSelfTest (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to enable keyboard AUX functionality.
|
Issue command to enable keyboard AUX functionality.
|
||||||
@ -127,8 +126,7 @@ KbcSelfTest (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcEnableAux (
|
KbcEnableAux (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to disable keyboard AUX functionality.
|
Issue command to disable keyboard AUX functionality.
|
||||||
@ -140,8 +138,7 @@ KbcEnableAux (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcDisableAux (
|
KbcDisableAux (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to enable keyboard.
|
Issue command to enable keyboard.
|
||||||
@ -153,8 +150,7 @@ KbcDisableAux (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcEnableKb (
|
KbcEnableKb (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to disable keyboard.
|
Issue command to disable keyboard.
|
||||||
@ -166,8 +162,7 @@ KbcEnableKb (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
KbcDisableKb (
|
KbcDisableKb (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to check keyboard status.
|
Issue command to check keyboard status.
|
||||||
@ -181,8 +176,7 @@ EFI_STATUS
|
|||||||
CheckKbStatus (
|
CheckKbStatus (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
OUT BOOLEAN *KeyboardEnable
|
OUT BOOLEAN *KeyboardEnable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to reset keyboard.
|
Issue command to reset keyboard.
|
||||||
@ -194,8 +188,7 @@ CheckKbStatus (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PS2MouseReset (
|
PS2MouseReset (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to set mouse's sample rate
|
Issue command to set mouse's sample rate
|
||||||
@ -209,8 +202,7 @@ EFI_STATUS
|
|||||||
PS2MouseSetSampleRate (
|
PS2MouseSetSampleRate (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN MOUSE_SR SampleRate
|
IN MOUSE_SR SampleRate
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to set mouse's resolution.
|
Issue command to set mouse's resolution.
|
||||||
@ -224,8 +216,7 @@ EFI_STATUS
|
|||||||
PS2MouseSetResolution (
|
PS2MouseSetResolution (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN MOUSE_RE Resolution
|
IN MOUSE_RE Resolution
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to set mouse's scaling.
|
Issue command to set mouse's scaling.
|
||||||
@ -239,8 +230,7 @@ EFI_STATUS
|
|||||||
PS2MouseSetScaling (
|
PS2MouseSetScaling (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
IN EFI_ISA_IO_PROTOCOL *IsaIo,
|
||||||
IN MOUSE_SF Scaling
|
IN MOUSE_SF Scaling
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Issue command to enable Ps2 mouse.
|
Issue command to enable Ps2 mouse.
|
||||||
@ -252,8 +242,7 @@ PS2MouseSetScaling (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PS2MouseEnable (
|
PS2MouseEnable (
|
||||||
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
IN EFI_ISA_IO_PROTOCOL *IsaIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get mouse packet . Only care first 3 bytes
|
Get mouse packet . Only care first 3 bytes
|
||||||
@ -267,8 +256,7 @@ PS2MouseEnable (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PS2MouseGetPacket (
|
PS2MouseGetPacket (
|
||||||
PS2_MOUSE_DEV *MouseDev
|
PS2_MOUSE_DEV *MouseDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read data via IsaIo protocol with given number.
|
Read data via IsaIo protocol with given number.
|
||||||
|
@ -160,7 +160,6 @@ IDEBusComponentNameGetControllerName (
|
|||||||
VOID
|
VOID
|
||||||
AddName (
|
AddName (
|
||||||
IN IDE_BLK_IO_DEV *IdeBlkIoDevicePtr
|
IN IDE_BLK_IO_DEV *IdeBlkIoDevicePtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -39,8 +39,7 @@ DeRegisterIdeDevice (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_HANDLE Handle
|
IN EFI_HANDLE Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -59,8 +58,7 @@ EnableIdeDevice (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -75,8 +73,7 @@ UINT8
|
|||||||
IDEReadPortB (
|
IDEReadPortB (
|
||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN UINT16 Port
|
IN UINT16 Port
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -95,8 +92,7 @@ IDEReadPortWMultiple (
|
|||||||
IN UINT16 Port,
|
IN UINT16 Port,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -113,8 +109,7 @@ IDEWritePortB (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN UINT16 Port,
|
IN UINT16 Port,
|
||||||
IN UINT8 Data
|
IN UINT8 Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -131,8 +126,7 @@ IDEWritePortW (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN UINT16 Port,
|
IN UINT16 Port,
|
||||||
IN UINT16 Data
|
IN UINT16 Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -151,8 +145,7 @@ IDEWritePortWMultiple (
|
|||||||
IN UINT16 Port,
|
IN UINT16 Port,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -167,8 +160,7 @@ EFI_STATUS
|
|||||||
GetIdeRegistersBaseAddr (
|
GetIdeRegistersBaseAddr (
|
||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
OUT IDE_REGISTERS_BASE_ADDR *IdeRegsBaseAddr
|
OUT IDE_REGISTERS_BASE_ADDR *IdeRegsBaseAddr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -181,8 +173,7 @@ GetIdeRegistersBaseAddr (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ReassignIdeResources (
|
ReassignIdeResources (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -195,8 +186,7 @@ ReassignIdeResources (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DiscoverIdeDevice (
|
DiscoverIdeDevice (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This interface is used to initialize all state data related to the
|
This interface is used to initialize all state data related to the
|
||||||
@ -208,8 +198,7 @@ DiscoverIdeDevice (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializeIDEChannelData (
|
InitializeIDEChannelData (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -222,8 +211,7 @@ InitializeIDEChannelData (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DetectIDEController (
|
DetectIDEController (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -238,8 +226,7 @@ EFI_STATUS
|
|||||||
DRQClear (
|
DRQClear (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN TimeoutInMilliSeconds
|
IN UINTN TimeoutInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -254,8 +241,7 @@ EFI_STATUS
|
|||||||
DRQClear2 (
|
DRQClear2 (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN TimeoutInMilliSeconds
|
IN UINTN TimeoutInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -270,8 +256,7 @@ EFI_STATUS
|
|||||||
DRQReady (
|
DRQReady (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN TimeoutInMilliSeconds
|
IN UINTN TimeoutInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -286,8 +271,7 @@ EFI_STATUS
|
|||||||
DRQReady2 (
|
DRQReady2 (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN TimeoutInMilliSeconds
|
IN UINTN TimeoutInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -302,8 +286,7 @@ EFI_STATUS
|
|||||||
WaitForBSYClear (
|
WaitForBSYClear (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN TimeoutInMilliSeconds
|
IN UINTN TimeoutInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -318,8 +301,7 @@ EFI_STATUS
|
|||||||
WaitForBSYClear2 (
|
WaitForBSYClear2 (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN TimeoutInMilliSeconds
|
IN UINTN TimeoutInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -334,8 +316,7 @@ EFI_STATUS
|
|||||||
DRDYReady (
|
DRDYReady (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN DelayInMilliSeconds
|
IN UINTN DelayInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -350,8 +331,7 @@ EFI_STATUS
|
|||||||
DRDYReady2 (
|
DRDYReady2 (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN DelayInMilliSeconds
|
IN UINTN DelayInMilliSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -368,8 +348,7 @@ SwapStringChars (
|
|||||||
IN CHAR8 *Destination,
|
IN CHAR8 *Destination,
|
||||||
IN CHAR8 *Source,
|
IN CHAR8 *Source,
|
||||||
IN UINT32 Size
|
IN UINT32 Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// ATA device functions' prototype
|
// ATA device functions' prototype
|
||||||
@ -385,8 +364,7 @@ SwapStringChars (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ATAIdentify (
|
ATAIdentify (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -399,8 +377,7 @@ ATAIdentify (
|
|||||||
VOID
|
VOID
|
||||||
PrintAtaModuleName (
|
PrintAtaModuleName (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -429,8 +406,7 @@ AtaPioDataIn (
|
|||||||
IN UINT8 SectorNumber,
|
IN UINT8 SectorNumber,
|
||||||
IN UINT8 CylinderLsb,
|
IN UINT8 CylinderLsb,
|
||||||
IN UINT8 CylinderMsb
|
IN UINT8 CylinderMsb
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -459,8 +435,7 @@ AtaPioDataOut (
|
|||||||
IN UINT8 SectorNumber,
|
IN UINT8 SectorNumber,
|
||||||
IN UINT8 CylinderLsb,
|
IN UINT8 CylinderLsb,
|
||||||
IN UINT8 CylinderMsb
|
IN UINT8 CylinderMsb
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -473,8 +448,7 @@ AtaPioDataOut (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CheckErrorStatus (
|
CheckErrorStatus (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -493,8 +467,7 @@ AtaReadSectors (
|
|||||||
IN VOID *DataBuffer,
|
IN VOID *DataBuffer,
|
||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -513,8 +486,7 @@ AtaWriteSectors (
|
|||||||
IN VOID *BufferData,
|
IN VOID *BufferData,
|
||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -527,8 +499,7 @@ AtaWriteSectors (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AtaSoftReset (
|
AtaSoftReset (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -549,8 +520,7 @@ AtaBlkIoReadBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -571,8 +541,7 @@ AtaBlkIoWriteBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// ATAPI device functions' prototype
|
// ATAPI device functions' prototype
|
||||||
@ -588,8 +557,7 @@ AtaBlkIoWriteBlocks (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ATAPIIdentify (
|
ATAPIIdentify (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -602,8 +570,7 @@ ATAPIIdentify (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AtapiInquiry (
|
AtapiInquiry (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -624,8 +591,7 @@ AtapiPacketCommandIn (
|
|||||||
IN UINT16 *Buffer,
|
IN UINT16 *Buffer,
|
||||||
IN UINT32 ByteCount,
|
IN UINT32 ByteCount,
|
||||||
IN UINTN TimeOut
|
IN UINTN TimeOut
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -646,8 +612,7 @@ AtapiPacketCommandOut (
|
|||||||
IN UINT16 *Buffer,
|
IN UINT16 *Buffer,
|
||||||
IN UINT32 ByteCount,
|
IN UINT32 ByteCount,
|
||||||
IN UINTN TimeOut
|
IN UINTN TimeOut
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -668,8 +633,7 @@ PioReadWriteData (
|
|||||||
IN UINT32 ByteCount,
|
IN UINT32 ByteCount,
|
||||||
IN BOOLEAN Read,
|
IN BOOLEAN Read,
|
||||||
IN UINTN TimeOut
|
IN UINTN TimeOut
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -684,8 +648,7 @@ EFI_STATUS
|
|||||||
AtapiTestUnitReady (
|
AtapiTestUnitReady (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
OUT SENSE_RESULT *SResult
|
OUT SENSE_RESULT *SResult
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -700,8 +663,7 @@ EFI_STATUS
|
|||||||
AtapiRequestSense (
|
AtapiRequestSense (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
OUT UINTN *SenseCounts
|
OUT UINTN *SenseCounts
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -716,8 +678,7 @@ EFI_STATUS
|
|||||||
AtapiReadCapacity (
|
AtapiReadCapacity (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
OUT SENSE_RESULT *SResult
|
OUT SENSE_RESULT *SResult
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -732,8 +693,7 @@ EFI_STATUS
|
|||||||
AtapiDetectMedia (
|
AtapiDetectMedia (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
OUT BOOLEAN *MediaChange
|
OUT BOOLEAN *MediaChange
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -752,8 +712,7 @@ AtapiReadSectors (
|
|||||||
IN VOID *Buffer,
|
IN VOID *Buffer,
|
||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -772,8 +731,7 @@ AtapiWriteSectors (
|
|||||||
IN VOID *Buffer,
|
IN VOID *Buffer,
|
||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -786,8 +744,7 @@ AtapiWriteSectors (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AtapiSoftReset (
|
AtapiSoftReset (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -808,8 +765,7 @@ AtapiBlkIoReadBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -830,8 +786,7 @@ AtapiBlkIoWriteBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -848,8 +803,7 @@ ParseSenseData (
|
|||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN UINTN SenseCount,
|
IN UINTN SenseCount,
|
||||||
OUT SENSE_RESULT *Result
|
OUT SENSE_RESULT *Result
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -862,8 +816,7 @@ ParseSenseData (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AtapiReadPendingData (
|
AtapiReadPendingData (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -878,8 +831,7 @@ EFI_STATUS
|
|||||||
IsLS120orZipWriteProtected (
|
IsLS120orZipWriteProtected (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
OUT BOOLEAN *WriteProtected
|
OUT BOOLEAN *WriteProtected
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -892,8 +844,7 @@ IsLS120orZipWriteProtected (
|
|||||||
VOID
|
VOID
|
||||||
ReleaseIdeResources (
|
ReleaseIdeResources (
|
||||||
IN IDE_BLK_IO_DEV *IdeBlkIoDevice
|
IN IDE_BLK_IO_DEV *IdeBlkIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -908,8 +859,7 @@ EFI_STATUS
|
|||||||
SetDeviceTransferMode (
|
SetDeviceTransferMode (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN ATA_TRANSFER_MODE *TransferMode
|
IN ATA_TRANSFER_MODE *TransferMode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -924,8 +874,7 @@ EFI_STATUS
|
|||||||
ReadNativeMaxAddress (
|
ReadNativeMaxAddress (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
OUT EFI_LBA *NativeMaxAddress
|
OUT EFI_LBA *NativeMaxAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -942,8 +891,7 @@ SetMaxAddress (
|
|||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN EFI_LBA MaxAddress,
|
IN EFI_LBA MaxAddress,
|
||||||
IN BOOLEAN bVolatile
|
IN BOOLEAN bVolatile
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -970,8 +918,7 @@ AtaNonDataCommandIn (
|
|||||||
IN UINT8 LbaLow,
|
IN UINT8 LbaLow,
|
||||||
IN UINT8 LbaMiddle,
|
IN UINT8 LbaMiddle,
|
||||||
IN UINT8 LbaHigh
|
IN UINT8 LbaHigh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -994,8 +941,7 @@ AtaNonDataCommandInExt (
|
|||||||
IN UINT16 Feature,
|
IN UINT16 Feature,
|
||||||
IN UINT16 SectorCount,
|
IN UINT16 SectorCount,
|
||||||
IN EFI_LBA LbaAddress
|
IN EFI_LBA LbaAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1014,8 +960,7 @@ AtaReadSectorsExt (
|
|||||||
IN VOID *DataBuffer,
|
IN VOID *DataBuffer,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1034,8 +979,7 @@ AtaWriteSectorsExt (
|
|||||||
IN VOID *DataBuffer,
|
IN VOID *DataBuffer,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1054,8 +998,7 @@ AtaUdmaReadExt (
|
|||||||
IN VOID *DataBuffer,
|
IN VOID *DataBuffer,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1074,8 +1017,7 @@ AtaUdmaRead (
|
|||||||
IN VOID *DataBuffer,
|
IN VOID *DataBuffer,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1094,8 +1036,7 @@ AtaUdmaWriteExt (
|
|||||||
IN VOID *DataBuffer,
|
IN VOID *DataBuffer,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Perform an ATA Udma operation (Read, ReadExt, Write, WriteExt).
|
Perform an ATA Udma operation (Read, ReadExt, Write, WriteExt).
|
||||||
@ -1129,8 +1070,7 @@ DoAtaUdma (
|
|||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINTN NumberOfBlocks,
|
IN UINTN NumberOfBlocks,
|
||||||
IN ATA_UDMA_OPERATION UdmaOp
|
IN ATA_UDMA_OPERATION UdmaOp
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1150,8 +1090,7 @@ AtaUdmaWrite (
|
|||||||
IN VOID *DataBuffer,
|
IN VOID *DataBuffer,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINTN NumberOfBlocks
|
IN UINTN NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1174,8 +1113,7 @@ AtaCommandIssueExt (
|
|||||||
IN UINT16 Feature,
|
IN UINT16 Feature,
|
||||||
IN UINT16 SectorCount,
|
IN UINT16 SectorCount,
|
||||||
IN EFI_LBA LbaAddress
|
IN EFI_LBA LbaAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1198,8 +1136,7 @@ AtaCommandIssue (
|
|||||||
IN UINT16 Feature,
|
IN UINT16 Feature,
|
||||||
IN UINT16 SectorCount,
|
IN UINT16 SectorCount,
|
||||||
IN EFI_LBA LbaAddress
|
IN EFI_LBA LbaAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1212,8 +1149,7 @@ AtaCommandIssue (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AtaAtapi6Identify (
|
AtaAtapi6Identify (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1227,8 +1163,7 @@ AtaAtapi6Identify (
|
|||||||
VOID
|
VOID
|
||||||
AtaSMARTSupport (
|
AtaSMARTSupport (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1251,8 +1186,7 @@ AtaPioDataInExt (
|
|||||||
IN UINT8 AtaCommand,
|
IN UINT8 AtaCommand,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINT16 SectorCount
|
IN UINT16 SectorCount
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1275,8 +1209,7 @@ AtaPioDataOutExt (
|
|||||||
IN UINT8 AtaCommand,
|
IN UINT8 AtaCommand,
|
||||||
IN EFI_LBA StartLba,
|
IN EFI_LBA StartLba,
|
||||||
IN UINT16 SectorCount
|
IN UINT16 SectorCount
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1291,8 +1224,7 @@ EFI_STATUS
|
|||||||
SetDriveParameters (
|
SetDriveParameters (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev,
|
IN IDE_BLK_IO_DEV *IdeDev,
|
||||||
IN ATA_DRIVE_PARMS *DriveParameters
|
IN ATA_DRIVE_PARMS *DriveParameters
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -1305,8 +1237,7 @@ SetDriveParameters (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EnableInterrupt (
|
EnableInterrupt (
|
||||||
IN IDE_BLK_IO_DEV *IdeDev
|
IN IDE_BLK_IO_DEV *IdeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clear pending IDE interrupt before OS loader/kernel take control of the IDE device.
|
Clear pending IDE interrupt before OS loader/kernel take control of the IDE device.
|
||||||
@ -1322,7 +1253,6 @@ EFIAPI
|
|||||||
ClearInterrupt (
|
ClearInterrupt (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -135,8 +135,7 @@ EFIAPI
|
|||||||
IDEBusControllerDriverEntryPoint (
|
IDEBusControllerDriverEntryPoint (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -154,8 +153,7 @@ IDEBusDriverBindingSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -173,8 +171,7 @@ IDEBusDriverBindingStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -194,8 +191,7 @@ IDEBusDriverBindingStop (
|
|||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI Driver Configuration Functions
|
// EFI Driver Configuration Functions
|
||||||
@ -257,8 +253,7 @@ EFIAPI
|
|||||||
IDEBlkIoReset (
|
IDEBlkIoReset (
|
||||||
IN EFI_BLOCK_IO_PROTOCOL *This,
|
IN EFI_BLOCK_IO_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -280,8 +275,7 @@ IDEBlkIoReadBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -303,8 +297,7 @@ IDEBlkIoWriteBlocks (
|
|||||||
IN EFI_LBA LBA,
|
IN EFI_LBA LBA,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -318,8 +311,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
IDEBlkIoFlushBlocks (
|
IDEBlkIoFlushBlocks (
|
||||||
IN EFI_BLOCK_IO_PROTOCOL *This
|
IN EFI_BLOCK_IO_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -334,8 +326,7 @@ EFI_STATUS
|
|||||||
IDERegisterDecodeEnableorDisable (
|
IDERegisterDecodeEnableorDisable (
|
||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN BOOLEAN Enable
|
IN BOOLEAN Enable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -353,8 +344,7 @@ IDEDiskInfoInquiry (
|
|||||||
IN EFI_DISK_INFO_PROTOCOL *This,
|
IN EFI_DISK_INFO_PROTOCOL *This,
|
||||||
IN OUT VOID *InquiryData,
|
IN OUT VOID *InquiryData,
|
||||||
IN OUT UINT32 *IntquiryDataSize
|
IN OUT UINT32 *IntquiryDataSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -372,8 +362,7 @@ IDEDiskInfoIdentify (
|
|||||||
IN EFI_DISK_INFO_PROTOCOL *This,
|
IN EFI_DISK_INFO_PROTOCOL *This,
|
||||||
IN OUT VOID *IdentifyData,
|
IN OUT VOID *IdentifyData,
|
||||||
IN OUT UINT32 *IdentifyDataSize
|
IN OUT UINT32 *IdentifyDataSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -393,8 +382,7 @@ IDEDiskInfoSenseData (
|
|||||||
IN OUT VOID *SenseData,
|
IN OUT VOID *SenseData,
|
||||||
IN OUT UINT32 *SenseDataSize,
|
IN OUT UINT32 *SenseDataSize,
|
||||||
OUT UINT8 *SenseDataNumber
|
OUT UINT8 *SenseDataNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
TODO: Add function description
|
TODO: Add function description
|
||||||
@ -412,7 +400,6 @@ IDEDiskInfoWhichIde (
|
|||||||
IN EFI_DISK_INFO_PROTOCOL *This,
|
IN EFI_DISK_INFO_PROTOCOL *This,
|
||||||
OUT UINT32 *IdeChannel,
|
OUT UINT32 *IdeChannel,
|
||||||
OUT UINT32 *IdeDevice
|
OUT UINT32 *IdeDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -79,8 +79,7 @@ PciOperateRegister (
|
|||||||
IN UINT8 Offset,
|
IN UINT8 Offset,
|
||||||
IN UINT8 Operation,
|
IN UINT8 Operation,
|
||||||
OUT UINT16 *PtrCommand
|
OUT UINT16 *PtrCommand
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
check the cpability of this device supports
|
check the cpability of this device supports
|
||||||
@ -93,8 +92,7 @@ PciOperateRegister (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
PciCapabilitySupport (
|
PciCapabilitySupport (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Locate cap reg.
|
Locate cap reg.
|
||||||
@ -114,8 +112,7 @@ LocateCapabilityRegBlock (
|
|||||||
IN UINT8 CapId,
|
IN UINT8 CapId,
|
||||||
IN OUT UINT8 *Offset,
|
IN OUT UINT8 *Offset,
|
||||||
OUT UINT8 *NextRegBlock OPTIONAL
|
OUT UINT8 *NextRegBlock OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
#define PciReadCommandRegister(a,b) \
|
#define PciReadCommandRegister(a,b) \
|
||||||
|
@ -20,8 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializePciDevicePool (
|
InitializePciDevicePool (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Insert a root bridge into PCI device pool
|
Insert a root bridge into PCI device pool
|
||||||
@ -32,8 +31,7 @@ InitializePciDevicePool (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InsertRootBridge (
|
InsertRootBridge (
|
||||||
PCI_IO_DEVICE *RootBridge
|
PCI_IO_DEVICE *RootBridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to insert a PCI device node under
|
This function is used to insert a PCI device node under
|
||||||
@ -47,8 +45,7 @@ EFI_STATUS
|
|||||||
InsertPciDevice (
|
InsertPciDevice (
|
||||||
PCI_IO_DEVICE *Bridge,
|
PCI_IO_DEVICE *Bridge,
|
||||||
PCI_IO_DEVICE *PciDeviceNode
|
PCI_IO_DEVICE *PciDeviceNode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destroy root bridge and remove it from deivce tree.
|
Destroy root bridge and remove it from deivce tree.
|
||||||
@ -59,8 +56,7 @@ InsertPciDevice (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DestroyRootBridge (
|
DestroyRootBridge (
|
||||||
IN PCI_IO_DEVICE *RootBridge
|
IN PCI_IO_DEVICE *RootBridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destroy all the pci device node under the bridge.
|
Destroy all the pci device node under the bridge.
|
||||||
@ -72,8 +68,7 @@ DestroyRootBridge (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DestroyPciDeviceTree (
|
DestroyPciDeviceTree (
|
||||||
IN PCI_IO_DEVICE *Bridge
|
IN PCI_IO_DEVICE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destroy all device nodes under the root bridge
|
Destroy all device nodes under the root bridge
|
||||||
@ -86,8 +81,7 @@ DestroyPciDeviceTree (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DestroyRootBridgeByHandle (
|
DestroyRootBridgeByHandle (
|
||||||
EFI_HANDLE Controller
|
EFI_HANDLE Controller
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function registers the PCI IO device. It creates a handle for this PCI IO device
|
This function registers the PCI IO device. It creates a handle for this PCI IO device
|
||||||
@ -107,8 +101,7 @@ RegisterPciDevice (
|
|||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
OUT EFI_HANDLE *Handle OPTIONAL
|
OUT EFI_HANDLE *Handle OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to remove the whole PCI devices from the bridge.
|
This function is used to remove the whole PCI devices from the bridge.
|
||||||
@ -122,8 +115,7 @@ EFI_STATUS
|
|||||||
RemoveAllPciDeviceOnBridge (
|
RemoveAllPciDeviceOnBridge (
|
||||||
EFI_HANDLE RootBridgeHandle,
|
EFI_HANDLE RootBridgeHandle,
|
||||||
PCI_IO_DEVICE *Bridge
|
PCI_IO_DEVICE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -140,8 +132,7 @@ EFI_STATUS
|
|||||||
DeRegisterPciDevice (
|
DeRegisterPciDevice (
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_HANDLE Handle
|
IN EFI_HANDLE Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge
|
Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge
|
||||||
@ -165,8 +156,7 @@ StartPciDevicesOnBridge (
|
|||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,
|
||||||
IN OUT UINT8 *NumberOfChildren,
|
IN OUT UINT8 *NumberOfChildren,
|
||||||
IN OUT EFI_HANDLE *ChildHandleBuffer
|
IN OUT EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start to manage all the PCI devices it found previously under
|
Start to manage all the PCI devices it found previously under
|
||||||
@ -178,8 +168,7 @@ StartPciDevicesOnBridge (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
StartPciDevices (
|
StartPciDevices (
|
||||||
IN EFI_HANDLE Controller
|
IN EFI_HANDLE Controller
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create root bridge device
|
Create root bridge device
|
||||||
@ -191,8 +180,7 @@ StartPciDevices (
|
|||||||
PCI_IO_DEVICE *
|
PCI_IO_DEVICE *
|
||||||
CreateRootBridge (
|
CreateRootBridge (
|
||||||
IN EFI_HANDLE RootBridgeHandle
|
IN EFI_HANDLE RootBridgeHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get root bridge device instance by specific handle
|
Get root bridge device instance by specific handle
|
||||||
@ -204,14 +192,12 @@ CreateRootBridge (
|
|||||||
PCI_IO_DEVICE *
|
PCI_IO_DEVICE *
|
||||||
GetRootBridgeByHandle (
|
GetRootBridgeByHandle (
|
||||||
EFI_HANDLE RootBridgeHandle
|
EFI_HANDLE RootBridgeHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
RootBridgeExisted (
|
RootBridgeExisted (
|
||||||
IN EFI_HANDLE RootBridgeHandle
|
IN EFI_HANDLE RootBridgeHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Judege whether Pci device existed
|
Judege whether Pci device existed
|
||||||
@ -225,8 +211,7 @@ BOOLEAN
|
|||||||
PciDeviceExisted (
|
PciDeviceExisted (
|
||||||
IN PCI_IO_DEVICE *Bridge,
|
IN PCI_IO_DEVICE *Bridge,
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Active VGA device
|
Active VGA device
|
||||||
@ -238,8 +223,7 @@ PciDeviceExisted (
|
|||||||
PCI_IO_DEVICE *
|
PCI_IO_DEVICE *
|
||||||
ActiveVGADeviceOnTheSameSegment (
|
ActiveVGADeviceOnTheSameSegment (
|
||||||
IN PCI_IO_DEVICE *VgaDevice
|
IN PCI_IO_DEVICE *VgaDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Active VGA device on root bridge
|
Active VGA device on root bridge
|
||||||
@ -251,8 +235,7 @@ ActiveVGADeviceOnTheSameSegment (
|
|||||||
PCI_IO_DEVICE *
|
PCI_IO_DEVICE *
|
||||||
ActiveVGADeviceOnTheRootBridge (
|
ActiveVGADeviceOnTheRootBridge (
|
||||||
IN PCI_IO_DEVICE *RootBridge
|
IN PCI_IO_DEVICE *RootBridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get HPC PCI address according to its device path
|
Get HPC PCI address according to its device path
|
||||||
@ -268,8 +251,7 @@ GetHpcPciAddress (
|
|||||||
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,
|
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath,
|
||||||
OUT UINT64 *PciAddress
|
OUT UINT64 *PciAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get HPC PCI address according to its device path
|
Get HPC PCI address according to its device path
|
||||||
@ -284,8 +266,7 @@ GetHpcPciAddressFromRootBridge (
|
|||||||
IN PCI_IO_DEVICE *RootBridge,
|
IN PCI_IO_DEVICE *RootBridge,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath,
|
||||||
OUT UINT64 *PciAddress
|
OUT UINT64 *PciAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destroy a pci device node.
|
Destroy a pci device node.
|
||||||
@ -297,7 +278,6 @@ GetHpcPciAddressFromRootBridge (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FreePciDevice (
|
FreePciDevice (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,8 +37,7 @@ typedef struct {
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializePciDriverOverrideInstance (
|
InitializePciDriverOverrideInstance (
|
||||||
PCI_IO_DEVICE *PciIoDevice
|
PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add an overriding driver image
|
Add an overriding driver image
|
||||||
@ -53,8 +52,7 @@ EFI_STATUS
|
|||||||
AddDriver (
|
AddDriver (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
IN EFI_HANDLE DriverImageHandle
|
IN EFI_HANDLE DriverImageHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -71,7 +69,6 @@ EFIAPI
|
|||||||
GetDriver (
|
GetDriver (
|
||||||
IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL *This,
|
IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL *This,
|
||||||
IN OUT EFI_HANDLE *DriverImageHandle
|
IN OUT EFI_HANDLE *DriverImageHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,8 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciEnumerator (
|
PciEnumerator (
|
||||||
IN EFI_HANDLE Controller
|
IN EFI_HANDLE Controller
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enumerate PCI root bridge
|
Enumerate PCI root bridge
|
||||||
@ -46,8 +45,7 @@ EFI_STATUS
|
|||||||
PciRootBridgeEnumerator (
|
PciRootBridgeEnumerator (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
|
||||||
IN PCI_IO_DEVICE *RootBridgeDev
|
IN PCI_IO_DEVICE *RootBridgeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is used to process option rom on a certain root bridge
|
This routine is used to process option rom on a certain root bridge
|
||||||
@ -63,8 +61,7 @@ ProcessOptionRom (
|
|||||||
IN PCI_IO_DEVICE *Bridge,
|
IN PCI_IO_DEVICE *Bridge,
|
||||||
IN UINT64 RomBase,
|
IN UINT64 RomBase,
|
||||||
IN UINT64 MaxLength
|
IN UINT64 MaxLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is used to assign bus number to the given PCI bus system
|
This routine is used to assign bus number to the given PCI bus system
|
||||||
@ -80,8 +77,7 @@ PciAssignBusNumber (
|
|||||||
IN PCI_IO_DEVICE *Bridge,
|
IN PCI_IO_DEVICE *Bridge,
|
||||||
IN UINT8 StartBusNumber,
|
IN UINT8 StartBusNumber,
|
||||||
OUT UINT8 *SubBusNumber
|
OUT UINT8 *SubBusNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is used to determine the root bridge attribute by interfacing
|
This routine is used to determine the root bridge attribute by interfacing
|
||||||
@ -97,8 +93,7 @@ EFI_STATUS
|
|||||||
DetermineRootBridgeAttributes (
|
DetermineRootBridgeAttributes (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
|
||||||
IN PCI_IO_DEVICE *RootBridgeDev
|
IN PCI_IO_DEVICE *RootBridgeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get Max Option Rom size on this bridge
|
Get Max Option Rom size on this bridge
|
||||||
@ -109,8 +104,7 @@ DetermineRootBridgeAttributes (
|
|||||||
UINT64
|
UINT64
|
||||||
GetMaxOptionRomSize (
|
GetMaxOptionRomSize (
|
||||||
IN PCI_IO_DEVICE *Bridge
|
IN PCI_IO_DEVICE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process attributes of devices on this host bridge
|
Process attributes of devices on this host bridge
|
||||||
@ -124,8 +118,7 @@ GetMaxOptionRomSize (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciHostBridgeDeviceAttribute (
|
PciHostBridgeDeviceAttribute (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get resource allocation status from the ACPI pointer
|
Get resource allocation status from the ACPI pointer
|
||||||
@ -147,8 +140,7 @@ GetResourceAllocationStatus (
|
|||||||
OUT UINT64 *PMem32ResStatus,
|
OUT UINT64 *PMem32ResStatus,
|
||||||
OUT UINT64 *Mem64ResStatus,
|
OUT UINT64 *Mem64ResStatus,
|
||||||
OUT UINT64 *PMem64ResStatus
|
OUT UINT64 *PMem64ResStatus
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove a PCI device from device pool and mark its bar
|
Remove a PCI device from device pool and mark its bar
|
||||||
@ -161,8 +153,7 @@ GetResourceAllocationStatus (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
RejectPciDevice (
|
RejectPciDevice (
|
||||||
IN PCI_IO_DEVICE *PciDevice
|
IN PCI_IO_DEVICE *PciDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Determine whethter a PCI device can be rejected
|
Determine whethter a PCI device can be rejected
|
||||||
@ -174,8 +165,7 @@ RejectPciDevice (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsRejectiveDevice (
|
IsRejectiveDevice (
|
||||||
IN PCI_RESOURCE_NODE *PciResNode
|
IN PCI_RESOURCE_NODE *PciResNode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compare two resource node and get the larger resource consumer
|
Compare two resource node and get the larger resource consumer
|
||||||
@ -189,8 +179,7 @@ PCI_RESOURCE_NODE *
|
|||||||
GetLargerConsumerDevice (
|
GetLargerConsumerDevice (
|
||||||
IN PCI_RESOURCE_NODE *PciResNode1,
|
IN PCI_RESOURCE_NODE *PciResNode1,
|
||||||
IN PCI_RESOURCE_NODE *PciResNode2
|
IN PCI_RESOURCE_NODE *PciResNode2
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the max resource consumer in the host resource pool
|
Get the max resource consumer in the host resource pool
|
||||||
@ -202,8 +191,7 @@ GetLargerConsumerDevice (
|
|||||||
PCI_RESOURCE_NODE *
|
PCI_RESOURCE_NODE *
|
||||||
GetMaxResourceConsumerDevice (
|
GetMaxResourceConsumerDevice (
|
||||||
IN PCI_RESOURCE_NODE *ResPool
|
IN PCI_RESOURCE_NODE *ResPool
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Adjust host bridge allocation so as to reduce resource requirement
|
Adjust host bridge allocation so as to reduce resource requirement
|
||||||
@ -231,8 +219,7 @@ PciHostBridgeAdjustAllocation (
|
|||||||
IN UINT64 PMem32ResStatus,
|
IN UINT64 PMem32ResStatus,
|
||||||
IN UINT64 Mem64ResStatus,
|
IN UINT64 Mem64ResStatus,
|
||||||
IN UINT64 PMem64ResStatus
|
IN UINT64 PMem64ResStatus
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Summary requests for all resource type, and contruct ACPI resource
|
Summary requests for all resource type, and contruct ACPI resource
|
||||||
@ -255,8 +242,7 @@ ConstructAcpiResourceRequestor (
|
|||||||
IN PCI_RESOURCE_NODE *Mem64Node,
|
IN PCI_RESOURCE_NODE *Mem64Node,
|
||||||
IN PCI_RESOURCE_NODE *PMem64Node,
|
IN PCI_RESOURCE_NODE *PMem64Node,
|
||||||
OUT VOID **pConfig
|
OUT VOID **pConfig
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get resource base from a acpi configuration descriptor.
|
Get resource base from a acpi configuration descriptor.
|
||||||
@ -278,8 +264,7 @@ GetResourceBase (
|
|||||||
OUT UINT64 *PMem32Base,
|
OUT UINT64 *PMem32Base,
|
||||||
OUT UINT64 *Mem64Base,
|
OUT UINT64 *Mem64Base,
|
||||||
OUT UINT64 *PMem64Base
|
OUT UINT64 *PMem64Base
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enumerate pci bridge, allocate resource and determine attribute
|
Enumerate pci bridge, allocate resource and determine attribute
|
||||||
@ -293,8 +278,7 @@ GetResourceBase (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciBridgeEnumerator (
|
PciBridgeEnumerator (
|
||||||
IN PCI_IO_DEVICE *BridgeDev
|
IN PCI_IO_DEVICE *BridgeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allocate all kinds of resource for bridge
|
Allocate all kinds of resource for bridge
|
||||||
@ -307,8 +291,7 @@ PciBridgeEnumerator (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciBridgeResourceAllocator (
|
PciBridgeResourceAllocator (
|
||||||
IN PCI_IO_DEVICE *Bridge
|
IN PCI_IO_DEVICE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get resource base address for a pci bridge device
|
Get resource base address for a pci bridge device
|
||||||
@ -330,8 +313,7 @@ GetResourceBaseFromBridge (
|
|||||||
OUT UINT64 *PMem32Base,
|
OUT UINT64 *PMem32Base,
|
||||||
OUT UINT64 *Mem64Base,
|
OUT UINT64 *Mem64Base,
|
||||||
OUT UINT64 *PMem64Base
|
OUT UINT64 *PMem64Base
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process Option Rom on this host bridge
|
Process Option Rom on this host bridge
|
||||||
@ -344,8 +326,7 @@ GetResourceBaseFromBridge (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciHostBridgeP2CProcess (
|
PciHostBridgeP2CProcess (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
These are the notifications from the PCI bus driver that it is about to enter a certain
|
These are the notifications from the PCI bus driver that it is about to enter a certain
|
||||||
@ -413,8 +394,7 @@ EFI_STATUS
|
|||||||
NotifyPhase (
|
NotifyPhase (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc,
|
||||||
EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PHASE Phase
|
EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PHASE Phase
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Provides the hooks from the PCI bus driver to every PCI controller (device/function) at various
|
Provides the hooks from the PCI bus driver to every PCI controller (device/function) at various
|
||||||
@ -450,8 +430,7 @@ PreprocessController (
|
|||||||
IN UINT8 Device,
|
IN UINT8 Device,
|
||||||
IN UINT8 Func,
|
IN UINT8 Func,
|
||||||
IN EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE Phase
|
IN EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE Phase
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Hot plug request notify.
|
Hot plug request notify.
|
||||||
@ -475,8 +454,7 @@ PciHotPlugRequestNotify (
|
|||||||
IN EFI_DEVICE_PATH_PROTOCOL * RemainingDevicePath OPTIONAL,
|
IN EFI_DEVICE_PATH_PROTOCOL * RemainingDevicePath OPTIONAL,
|
||||||
IN OUT UINT8 *NumberOfChildren,
|
IN OUT UINT8 *NumberOfChildren,
|
||||||
IN OUT EFI_HANDLE * ChildHandleBuffer
|
IN OUT EFI_HANDLE * ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Search hostbridge according to given handle
|
Search hostbridge according to given handle
|
||||||
@ -486,8 +464,7 @@ PciHotPlugRequestNotify (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
SearchHostBridgeHandle (
|
SearchHostBridgeHandle (
|
||||||
IN EFI_HANDLE RootBridgeHandle
|
IN EFI_HANDLE RootBridgeHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add host bridge handle to global variable for enumating.
|
Add host bridge handle to global variable for enumating.
|
||||||
@ -497,7 +474,6 @@ SearchHostBridgeHandle (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AddHostBridgeEnumerator (
|
AddHostBridgeEnumerator (
|
||||||
IN EFI_HANDLE HostBridgeHandle
|
IN EFI_HANDLE HostBridgeHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,8 +34,7 @@ PciDevicePresent (
|
|||||||
UINT8 Bus,
|
UINT8 Bus,
|
||||||
UINT8 Device,
|
UINT8 Device,
|
||||||
UINT8 Func
|
UINT8 Func
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Collect all the resource information under this root bridge
|
Collect all the resource information under this root bridge
|
||||||
@ -49,8 +48,7 @@ EFI_STATUS
|
|||||||
PciPciDeviceInfoCollector (
|
PciPciDeviceInfoCollector (
|
||||||
IN PCI_IO_DEVICE *Bridge,
|
IN PCI_IO_DEVICE *Bridge,
|
||||||
UINT8 StartBusNumber
|
UINT8 StartBusNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Seach required device and get PCI device info block
|
Seach required device and get PCI device info block
|
||||||
@ -70,8 +68,7 @@ PciSearchDevice (
|
|||||||
UINT8 Device,
|
UINT8 Device,
|
||||||
UINT8 Func,
|
UINT8 Func,
|
||||||
PCI_IO_DEVICE **PciDevice
|
PCI_IO_DEVICE **PciDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create PCI private data for PCI device
|
Create PCI private data for PCI device
|
||||||
@ -91,8 +88,7 @@ GatherDeviceInfo (
|
|||||||
UINT8 Bus,
|
UINT8 Bus,
|
||||||
UINT8 Device,
|
UINT8 Device,
|
||||||
UINT8 Func
|
UINT8 Func
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create private data for bridge device's PPB.
|
Create private data for bridge device's PPB.
|
||||||
@ -112,8 +108,7 @@ GatherPpbInfo (
|
|||||||
UINT8 Bus,
|
UINT8 Bus,
|
||||||
UINT8 Device,
|
UINT8 Device,
|
||||||
UINT8 Func
|
UINT8 Func
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create private data for hotplug bridge device
|
Create private data for hotplug bridge device
|
||||||
@ -133,8 +128,7 @@ GatherP2CInfo (
|
|||||||
UINT8 Bus,
|
UINT8 Bus,
|
||||||
UINT8 Device,
|
UINT8 Device,
|
||||||
UINT8 Func
|
UINT8 Func
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create device path for pci deivce
|
Create device path for pci deivce
|
||||||
@ -148,8 +142,7 @@ EFI_DEVICE_PATH_PROTOCOL *
|
|||||||
CreatePciDevicePath (
|
CreatePciDevicePath (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check the bar is existed or not.
|
Check the bar is existed or not.
|
||||||
@ -169,8 +162,7 @@ BarExisted (
|
|||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
OUT UINT32 *BarLengthValue,
|
OUT UINT32 *BarLengthValue,
|
||||||
OUT UINT32 *OriginalBarValue
|
OUT UINT32 *OriginalBarValue
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test whether the device can support attributes
|
Test whether the device can support attributes
|
||||||
@ -190,8 +182,7 @@ PciTestSupportedAttribute (
|
|||||||
IN UINT16 *BridgeControl,
|
IN UINT16 *BridgeControl,
|
||||||
IN UINT16 *OldCommand,
|
IN UINT16 *OldCommand,
|
||||||
IN UINT16 *OldBridgeControl
|
IN UINT16 *OldBridgeControl
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the supported or current attributes of a PCI device
|
Set the supported or current attributes of a PCI device
|
||||||
@ -208,8 +199,7 @@ PciSetDeviceAttribute (
|
|||||||
IN UINT16 Command,
|
IN UINT16 Command,
|
||||||
IN UINT16 BridgeControl,
|
IN UINT16 BridgeControl,
|
||||||
IN UINTN Option
|
IN UINTN Option
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Determine if the device can support Fast Back to Back attribute
|
Determine if the device can support Fast Back to Back attribute
|
||||||
@ -221,8 +211,7 @@ EFI_STATUS
|
|||||||
GetFastBackToBackSupport (
|
GetFastBackToBackSupport (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
IN UINT8 StatusIndex
|
IN UINT8 StatusIndex
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Determine the related attributes of all devices under a Root Bridge
|
Determine the related attributes of all devices under a Root Bridge
|
||||||
@ -233,8 +222,7 @@ GetFastBackToBackSupport (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DetermineDeviceAttribute (
|
DetermineDeviceAttribute (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is used to update the bar information for those incompatible PCI device
|
This routine is used to update the bar information for those incompatible PCI device
|
||||||
@ -245,8 +233,7 @@ DetermineDeviceAttribute (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UpdatePciInfo (
|
UpdatePciInfo (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine will update the alignment with the new alignment
|
This routine will update the alignment with the new alignment
|
||||||
@ -259,8 +246,7 @@ VOID
|
|||||||
SetNewAlign (
|
SetNewAlign (
|
||||||
IN UINT64 *Alignment,
|
IN UINT64 *Alignment,
|
||||||
IN UINT64 NewAlignment
|
IN UINT64 NewAlignment
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Parse PCI bar bit.
|
Parse PCI bar bit.
|
||||||
@ -276,8 +262,7 @@ PciParseBar (
|
|||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN UINTN BarIndex
|
IN UINTN BarIndex
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is used to initialize the bar of a PCI device
|
This routine is used to initialize the bar of a PCI device
|
||||||
@ -288,8 +273,7 @@ PciParseBar (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializePciDevice (
|
InitializePciDevice (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Init PPB for bridge device
|
Init PPB for bridge device
|
||||||
@ -299,8 +283,7 @@ InitializePciDevice (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializePpb (
|
InitializePpb (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Init private data for Hotplug bridge device
|
Init private data for Hotplug bridge device
|
||||||
@ -310,8 +293,7 @@ InitializePpb (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializeP2C (
|
InitializeP2C (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create and initiliaze general PCI I/O device instance for
|
Create and initiliaze general PCI I/O device instance for
|
||||||
@ -332,8 +314,7 @@ CreatePciIoDevice (
|
|||||||
UINT8 Bus,
|
UINT8 Bus,
|
||||||
UINT8 Device,
|
UINT8 Device,
|
||||||
UINT8 Func
|
UINT8 Func
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is used to enumerate entire pci bus system
|
This routine is used to enumerate entire pci bus system
|
||||||
@ -347,8 +328,7 @@ CreatePciIoDevice (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciEnumeratorLight (
|
PciEnumeratorLight (
|
||||||
IN EFI_HANDLE Controller
|
IN EFI_HANDLE Controller
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get bus range.
|
Get bus range.
|
||||||
@ -367,14 +347,12 @@ PciGetBusRange (
|
|||||||
OUT UINT16 *MinBus,
|
OUT UINT16 *MinBus,
|
||||||
OUT UINT16 *MaxBus,
|
OUT UINT16 *MaxBus,
|
||||||
OUT UINT16 *BusRange
|
OUT UINT16 *BusRange
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
StartManagingRootBridge (
|
StartManagingRootBridge (
|
||||||
IN PCI_IO_DEVICE *RootBridgeDev
|
IN PCI_IO_DEVICE *RootBridgeDev
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine can be used to check whether a PCI device should be rejected when light enumeration
|
This routine can be used to check whether a PCI device should be rejected when light enumeration
|
||||||
@ -388,7 +366,6 @@ StartManagingRootBridge (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsPciDeviceRejected (
|
IsPciDeviceRejected (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -43,8 +43,7 @@ EFIAPI
|
|||||||
PciHPCInitialized (
|
PciHPCInitialized (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compare two device path
|
Compare two device path
|
||||||
@ -59,8 +58,7 @@ BOOLEAN
|
|||||||
EfiCompareDevicePath (
|
EfiCompareDevicePath (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath1,
|
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath1,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath2
|
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath2
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Init hot plug support and root hot plug private data.
|
Init hot plug support and root hot plug private data.
|
||||||
@ -69,8 +67,7 @@ EfiCompareDevicePath (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializeHotPlugSupport (
|
InitializeHotPlugSupport (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test whether PCI device is hot plug bus.
|
Test whether PCI device is hot plug bus.
|
||||||
@ -83,8 +80,7 @@ InitializeHotPlugSupport (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
IsPciHotPlugBus (
|
IsPciHotPlugBus (
|
||||||
PCI_IO_DEVICE *PciIoDevice
|
PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test whether device path is for root pci hot plug bus
|
Test whether device path is for root pci hot plug bus
|
||||||
@ -99,8 +95,7 @@ BOOLEAN
|
|||||||
IsRootPciHotPlugBus (
|
IsRootPciHotPlugBus (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *HpbDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *HpbDevicePath,
|
||||||
OUT UINTN *HpIndex
|
OUT UINTN *HpIndex
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test whether device path is for root pci hot plug controller
|
Test whether device path is for root pci hot plug controller
|
||||||
@ -115,8 +110,7 @@ BOOLEAN
|
|||||||
IsRootPciHotPlugController (
|
IsRootPciHotPlugController (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *HpcDevicePath,
|
||||||
OUT UINTN *HpIndex
|
OUT UINTN *HpIndex
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wrapper for creating event object for HPC
|
Wrapper for creating event object for HPC
|
||||||
@ -130,8 +124,7 @@ EFI_STATUS
|
|||||||
CreateEventForHpc (
|
CreateEventForHpc (
|
||||||
IN UINTN HpIndex,
|
IN UINTN HpIndex,
|
||||||
OUT EFI_EVENT *Event
|
OUT EFI_EVENT *Event
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wait for all root HPC initialized.
|
Wait for all root HPC initialized.
|
||||||
@ -141,8 +134,7 @@ CreateEventForHpc (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
AllRootHPCInitialized (
|
AllRootHPCInitialized (
|
||||||
IN UINTN TimeoutInMicroSeconds
|
IN UINTN TimeoutInMicroSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check HPC capability register block
|
Check HPC capability register block
|
||||||
@ -155,8 +147,7 @@ AllRootHPCInitialized (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
IsSHPC (
|
IsSHPC (
|
||||||
PCI_IO_DEVICE *PciIoDevice
|
PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get resource padding for hot plug bus
|
Get resource padding for hot plug bus
|
||||||
@ -169,7 +160,6 @@ IsSHPC (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
GetResourcePaddingForHpb (
|
GetResourcePaddingForHpb (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,8 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializePciIoInstance (
|
InitializePciIoInstance (
|
||||||
PCI_IO_DEVICE *PciIoDevice
|
PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Verifies access to a PCI Base Address Register (BAR)
|
Verifies access to a PCI Base Address Register (BAR)
|
||||||
@ -50,8 +49,7 @@ PciIoVerifyBarAccess (
|
|||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
UINT64 *Offset
|
UINT64 *Offset
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Verifies access to a PCI Config Header
|
Verifies access to a PCI Config Header
|
||||||
@ -71,8 +69,7 @@ PciIoVerifyConfigAccess (
|
|||||||
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
IN EFI_PCI_IO_PROTOCOL_WIDTH Width,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN UINT64 *Offset
|
IN UINT64 *Offset
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads from the I/O space of a PCI Root Bridge. Returns when either the polling exit criteria is
|
Reads from the I/O space of a PCI Root Bridge. Returns when either the polling exit criteria is
|
||||||
@ -104,8 +101,7 @@ PciIoPollMem (
|
|||||||
IN UINT64 Value,
|
IN UINT64 Value,
|
||||||
IN UINT64 Delay,
|
IN UINT64 Delay,
|
||||||
OUT UINT64 *Result
|
OUT UINT64 *Result
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads from the I/O space of a PCI Root Bridge. Returns when either the polling exit criteria is
|
Reads from the I/O space of a PCI Root Bridge. Returns when either the polling exit criteria is
|
||||||
@ -136,8 +132,7 @@ PciIoPollIo (
|
|||||||
IN UINT64 Value,
|
IN UINT64 Value,
|
||||||
IN UINT64 Delay,
|
IN UINT64 Delay,
|
||||||
OUT UINT64 *Result
|
OUT UINT64 *Result
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
||||||
@ -168,8 +163,7 @@ PciIoMemRead (
|
|||||||
IN UINT64 Offset,
|
IN UINT64 Offset,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN OUT VOID *Buffer
|
IN OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
||||||
@ -200,8 +194,7 @@ PciIoMemWrite (
|
|||||||
IN UINT64 Offset,
|
IN UINT64 Offset,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN OUT VOID *Buffer
|
IN OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
||||||
@ -232,8 +225,7 @@ PciIoIoRead (
|
|||||||
IN UINT64 Offset,
|
IN UINT64 Offset,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN OUT VOID *Buffer
|
IN OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
Enable a PCI driver to access PCI controller registers in the PCI memory or I/O space.
|
||||||
@ -264,8 +256,7 @@ PciIoIoWrite (
|
|||||||
IN UINT64 Offset,
|
IN UINT64 Offset,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN OUT VOID *Buffer
|
IN OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enable a PCI driver to access PCI controller registers in PCI configuration space.
|
Enable a PCI driver to access PCI controller registers in PCI configuration space.
|
||||||
@ -293,8 +284,7 @@ PciIoConfigRead (
|
|||||||
IN UINT32 Offset,
|
IN UINT32 Offset,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN OUT VOID *Buffer
|
IN OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enable a PCI driver to access PCI controller registers in PCI configuration space.
|
Enable a PCI driver to access PCI controller registers in PCI configuration space.
|
||||||
@ -322,8 +312,7 @@ PciIoConfigWrite (
|
|||||||
IN UINT32 Offset,
|
IN UINT32 Offset,
|
||||||
IN UINTN Count,
|
IN UINTN Count,
|
||||||
IN OUT VOID *Buffer
|
IN OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Enables a PCI driver to copy one region of PCI memory space to another region of PCI
|
Enables a PCI driver to copy one region of PCI memory space to another region of PCI
|
||||||
@ -363,8 +352,7 @@ PciIoCopyMem (
|
|||||||
IN UINT8 SrcBarIndex,
|
IN UINT8 SrcBarIndex,
|
||||||
IN UINT64 SrcOffset,
|
IN UINT64 SrcOffset,
|
||||||
IN UINTN Count
|
IN UINTN Count
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Provides the PCI controller-Cspecific addresses needed to access system memory.
|
Provides the PCI controller-Cspecific addresses needed to access system memory.
|
||||||
@ -394,8 +382,7 @@ PciIoMap (
|
|||||||
IN OUT UINTN *NumberOfBytes,
|
IN OUT UINTN *NumberOfBytes,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *DeviceAddress,
|
OUT EFI_PHYSICAL_ADDRESS *DeviceAddress,
|
||||||
OUT VOID **Mapping
|
OUT VOID **Mapping
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Completes the Map() operation and releases any corresponding resources.
|
Completes the Map() operation and releases any corresponding resources.
|
||||||
@ -412,8 +399,7 @@ EFIAPI
|
|||||||
PciIoUnmap (
|
PciIoUnmap (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN VOID *Mapping
|
IN VOID *Mapping
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allocates pages that are suitable for an EfiPciIoOperationBusMasterCommonBuffer
|
Allocates pages that are suitable for an EfiPciIoOperationBusMasterCommonBuffer
|
||||||
@ -444,8 +430,7 @@ PciIoAllocateBuffer (
|
|||||||
IN UINTN Pages,
|
IN UINTN Pages,
|
||||||
OUT VOID **HostAddress,
|
OUT VOID **HostAddress,
|
||||||
IN UINT64 Attributes
|
IN UINT64 Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Frees memory that was allocated with AllocateBuffer().
|
Frees memory that was allocated with AllocateBuffer().
|
||||||
@ -465,8 +450,7 @@ PciIoFreeBuffer (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *This,
|
IN EFI_PCI_IO_PROTOCOL *This,
|
||||||
IN UINTN Pages,
|
IN UINTN Pages,
|
||||||
IN VOID *HostAddress
|
IN VOID *HostAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Flushes all PCI posted write transactions from a PCI host bridge to system memory.
|
Flushes all PCI posted write transactions from a PCI host bridge to system memory.
|
||||||
@ -483,8 +467,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PciIoFlush (
|
PciIoFlush (
|
||||||
IN EFI_PCI_IO_PROTOCOL *This
|
IN EFI_PCI_IO_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves this PCI controller's current PCI bus number, device number, and function number.
|
Retrieves this PCI controller's current PCI bus number, device number, and function number.
|
||||||
@ -507,8 +490,7 @@ PciIoGetLocation (
|
|||||||
OUT UINTN *Bus,
|
OUT UINTN *Bus,
|
||||||
OUT UINTN *Device,
|
OUT UINTN *Device,
|
||||||
OUT UINTN *Function
|
OUT UINTN *Function
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check BAR type for PCI resource.
|
Check BAR type for PCI resource.
|
||||||
@ -525,8 +507,7 @@ CheckBarType (
|
|||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
UINT8 BarIndex,
|
UINT8 BarIndex,
|
||||||
PCI_BAR_TYPE BarType
|
PCI_BAR_TYPE BarType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set/Disable new attributes to a Root Bridge
|
Set/Disable new attributes to a Root Bridge
|
||||||
@ -543,8 +524,7 @@ ModifyRootBridgeAttributes (
|
|||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
IN UINT64 Attributes,
|
IN UINT64 Attributes,
|
||||||
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation
|
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check whether this device can be enable/disable to snoop
|
Check whether this device can be enable/disable to snoop
|
||||||
@ -559,8 +539,7 @@ EFI_STATUS
|
|||||||
SupportPaletteSnoopAttributes (
|
SupportPaletteSnoopAttributes (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation
|
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs an operation on the attributes that this PCI controller supports. The operations include
|
Performs an operation on the attributes that this PCI controller supports. The operations include
|
||||||
@ -588,8 +567,7 @@ PciIoAttributes (
|
|||||||
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
|
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
|
||||||
IN UINT64 Attributes,
|
IN UINT64 Attributes,
|
||||||
OUT UINT64 *Result OPTIONAL
|
OUT UINT64 *Result OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the attributes that this PCI controller supports setting on a BAR using
|
Gets the attributes that this PCI controller supports setting on a BAR using
|
||||||
@ -620,8 +598,7 @@ PciIoGetBarAttributes (
|
|||||||
IN UINT8 BarIndex,
|
IN UINT8 BarIndex,
|
||||||
OUT UINT64 *Supports, OPTIONAL
|
OUT UINT64 *Supports, OPTIONAL
|
||||||
OUT VOID **Resources OPTIONAL
|
OUT VOID **Resources OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the attributes for a range of a BAR on a PCI controller.
|
Sets the attributes for a range of a BAR on a PCI controller.
|
||||||
@ -655,8 +632,7 @@ PciIoSetBarAttributes (
|
|||||||
IN UINT8 BarIndex,
|
IN UINT8 BarIndex,
|
||||||
IN OUT UINT64 *Offset,
|
IN OUT UINT64 *Offset,
|
||||||
IN OUT UINT64 *Length
|
IN OUT UINT64 *Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Program parent bridge's attribute recurrently.
|
Program parent bridge's attribute recurrently.
|
||||||
@ -678,8 +654,7 @@ UpStreamBridgesAttributes (
|
|||||||
IN PCI_IO_DEVICE *PciIoDevice,
|
IN PCI_IO_DEVICE *PciIoDevice,
|
||||||
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
|
IN EFI_PCI_IO_PROTOCOL_ATTRIBUTE_OPERATION Operation,
|
||||||
IN UINT64 Attributes
|
IN UINT64 Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test whether two Pci device has same parent bridge.
|
Test whether two Pci device has same parent bridge.
|
||||||
@ -693,7 +668,6 @@ BOOLEAN
|
|||||||
PciDevicesOnTheSamePath (
|
PciDevicesOnTheSamePath (
|
||||||
IN PCI_IO_DEVICE *PciDevice1,
|
IN PCI_IO_DEVICE *PciDevice1,
|
||||||
IN PCI_IO_DEVICE *PciDevice2
|
IN PCI_IO_DEVICE *PciDevice2
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -56,8 +56,7 @@ typedef struct {
|
|||||||
void
|
void
|
||||||
InstallHotPlugRequestProtocol (
|
InstallHotPlugRequestProtocol (
|
||||||
IN EFI_STATUS *Status
|
IN EFI_STATUS *Status
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Install protocol gEfiPciHotplugDeviceGuid into hotplug device
|
Install protocol gEfiPciHotplugDeviceGuid into hotplug device
|
||||||
@ -69,8 +68,7 @@ InstallHotPlugRequestProtocol (
|
|||||||
VOID
|
VOID
|
||||||
InstallPciHotplugGuid (
|
InstallPciHotplugGuid (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
UnInstall protocol gEfiPciHotplugDeviceGuid into hotplug device
|
UnInstall protocol gEfiPciHotplugDeviceGuid into hotplug device
|
||||||
@ -82,8 +80,7 @@ InstallPciHotplugGuid (
|
|||||||
VOID
|
VOID
|
||||||
UninstallPciHotplugGuid (
|
UninstallPciHotplugGuid (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieve the BAR information via PciIo interface
|
Retrieve the BAR information via PciIo interface
|
||||||
@ -93,8 +90,7 @@ UninstallPciHotplugGuid (
|
|||||||
VOID
|
VOID
|
||||||
GetBackPcCardBar (
|
GetBackPcCardBar (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove rejected pci device from specific root bridge
|
Remove rejected pci device from specific root bridge
|
||||||
@ -109,8 +105,7 @@ EFI_STATUS
|
|||||||
RemoveRejectedPciDevices (
|
RemoveRejectedPciDevices (
|
||||||
EFI_HANDLE RootBridgeHandle,
|
EFI_HANDLE RootBridgeHandle,
|
||||||
IN PCI_IO_DEVICE *Bridge
|
IN PCI_IO_DEVICE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wrapper function for allocating resource for pci host bridge.
|
Wrapper function for allocating resource for pci host bridge.
|
||||||
@ -121,20 +116,17 @@ RemoveRejectedPciDevices (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciHostBridgeResourceAllocator (
|
PciHostBridgeResourceAllocator (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (
|
PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (
|
PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wapper function of scanning pci bus and assign bus number to the given PCI bus system
|
Wapper function of scanning pci bus and assign bus number to the given PCI bus system
|
||||||
@ -154,8 +146,7 @@ PciScanBus (
|
|||||||
IN UINT8 StartBusNumber,
|
IN UINT8 StartBusNumber,
|
||||||
OUT UINT8 *SubBusNumber,
|
OUT UINT8 *SubBusNumber,
|
||||||
OUT UINT8 *PaddedBusRange
|
OUT UINT8 *PaddedBusRange
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciScanBus_WithHotPlugDeviceSupport (
|
PciScanBus_WithHotPlugDeviceSupport (
|
||||||
@ -163,8 +154,7 @@ PciScanBus_WithHotPlugDeviceSupport (
|
|||||||
IN UINT8 StartBusNumber,
|
IN UINT8 StartBusNumber,
|
||||||
OUT UINT8 *SubBusNumber,
|
OUT UINT8 *SubBusNumber,
|
||||||
OUT UINT8 *PaddedBusRange
|
OUT UINT8 *PaddedBusRange
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciScanBus_WithoutHotPlugDeviceSupport (
|
PciScanBus_WithoutHotPlugDeviceSupport (
|
||||||
@ -172,8 +162,7 @@ PciScanBus_WithoutHotPlugDeviceSupport (
|
|||||||
IN UINT8 StartBusNumber,
|
IN UINT8 StartBusNumber,
|
||||||
OUT UINT8 *SubBusNumber,
|
OUT UINT8 *SubBusNumber,
|
||||||
OUT UINT8 *PaddedBusRange
|
OUT UINT8 *PaddedBusRange
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process Option Rom on this host bridge
|
Process Option Rom on this host bridge
|
||||||
@ -186,8 +175,7 @@ PciScanBus_WithoutHotPlugDeviceSupport (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciRootBridgeP2CProcess (
|
PciRootBridgeP2CProcess (
|
||||||
IN PCI_IO_DEVICE *Bridge
|
IN PCI_IO_DEVICE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process Option Rom on this host bridge
|
Process Option Rom on this host bridge
|
||||||
@ -200,8 +188,7 @@ PciRootBridgeP2CProcess (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciHostBridgeP2CProcess (
|
PciHostBridgeP2CProcess (
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to enumerate the entire host bridge
|
This function is used to enumerate the entire host bridge
|
||||||
@ -217,8 +204,7 @@ PciHostBridgeP2CProcess (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciHostBridgeEnumerator (
|
PciHostBridgeEnumerator (
|
||||||
EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read PCI configuration space through EFI_PCI_IO_PROTOCOL.
|
Read PCI configuration space through EFI_PCI_IO_PROTOCOL.
|
||||||
|
@ -23,8 +23,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
GetOpRomInfo (
|
GetOpRomInfo (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Load option rom image for specified PCI device
|
Load option rom image for specified PCI device
|
||||||
@ -39,8 +38,7 @@ EFI_STATUS
|
|||||||
LoadOpRomImage (
|
LoadOpRomImage (
|
||||||
IN PCI_IO_DEVICE *PciDevice,
|
IN PCI_IO_DEVICE *PciDevice,
|
||||||
IN UINT64 RomBase
|
IN UINT64 RomBase
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
enable/disable oprom decode
|
enable/disable oprom decode
|
||||||
@ -59,8 +57,7 @@ RomDecode (
|
|||||||
IN UINT8 RomBarIndex,
|
IN UINT8 RomBarIndex,
|
||||||
IN UINT32 RomBar,
|
IN UINT32 RomBar,
|
||||||
IN BOOLEAN Enable
|
IN BOOLEAN Enable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process the oprom image.
|
Process the oprom image.
|
||||||
@ -70,7 +67,6 @@ RomDecode (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ProcessOpRomImage (
|
ProcessOpRomImage (
|
||||||
PCI_IO_DEVICE *PciDevice
|
PCI_IO_DEVICE *PciDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -27,7 +27,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ResetPowerManagementFeature (
|
ResetPowerManagementFeature (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -71,8 +71,7 @@ EFI_STATUS
|
|||||||
SkipVGAAperture (
|
SkipVGAAperture (
|
||||||
OUT UINT64 *Start,
|
OUT UINT64 *Start,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to skip ISA aliasing aperture
|
This function is used to skip ISA aliasing aperture
|
||||||
@ -86,8 +85,7 @@ EFI_STATUS
|
|||||||
SkipIsaAliasAperture (
|
SkipIsaAliasAperture (
|
||||||
OUT UINT64 *Start,
|
OUT UINT64 *Start,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function inserts a resource node into the resource list.
|
This function inserts a resource node into the resource list.
|
||||||
@ -102,8 +100,7 @@ EFI_STATUS
|
|||||||
InsertResourceNode (
|
InsertResourceNode (
|
||||||
PCI_RESOURCE_NODE *Bridge,
|
PCI_RESOURCE_NODE *Bridge,
|
||||||
PCI_RESOURCE_NODE *ResNode
|
PCI_RESOURCE_NODE *ResNode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -130,8 +127,7 @@ MergeResourceTree (
|
|||||||
PCI_RESOURCE_NODE *Dst,
|
PCI_RESOURCE_NODE *Dst,
|
||||||
PCI_RESOURCE_NODE *Res,
|
PCI_RESOURCE_NODE *Res,
|
||||||
BOOLEAN TypeMerge
|
BOOLEAN TypeMerge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to calculate the IO16 aperture
|
This function is used to calculate the IO16 aperture
|
||||||
@ -144,8 +140,7 @@ MergeResourceTree (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CalculateApertureIo16 (
|
CalculateApertureIo16 (
|
||||||
IN PCI_RESOURCE_NODE *Bridge
|
IN PCI_RESOURCE_NODE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to calculate the resource aperture
|
This function is used to calculate the resource aperture
|
||||||
@ -158,8 +153,7 @@ CalculateApertureIo16 (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CalculateResourceAperture (
|
CalculateResourceAperture (
|
||||||
IN PCI_RESOURCE_NODE *Bridge
|
IN PCI_RESOURCE_NODE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get IO/Memory resource infor for given PCI device
|
Get IO/Memory resource infor for given PCI device
|
||||||
@ -181,8 +175,7 @@ GetResourceFromDevice (
|
|||||||
PCI_RESOURCE_NODE *PMem32Node,
|
PCI_RESOURCE_NODE *PMem32Node,
|
||||||
PCI_RESOURCE_NODE *Mem64Node,
|
PCI_RESOURCE_NODE *Mem64Node,
|
||||||
PCI_RESOURCE_NODE *PMem64Node
|
PCI_RESOURCE_NODE *PMem64Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to create a resource node
|
This function is used to create a resource node
|
||||||
@ -202,8 +195,7 @@ CreateResourceNode (
|
|||||||
IN UINT8 Bar,
|
IN UINT8 Bar,
|
||||||
IN PCI_BAR_TYPE ResType,
|
IN PCI_BAR_TYPE ResType,
|
||||||
IN PCI_RESOURCE_USAGE ResUsage
|
IN PCI_RESOURCE_USAGE ResUsage
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is used to extract resource request from
|
This routine is used to extract resource request from
|
||||||
@ -226,8 +218,7 @@ CreateResourceMap (
|
|||||||
IN PCI_RESOURCE_NODE *PMem32Node,
|
IN PCI_RESOURCE_NODE *PMem32Node,
|
||||||
IN PCI_RESOURCE_NODE *Mem64Node,
|
IN PCI_RESOURCE_NODE *Mem64Node,
|
||||||
IN PCI_RESOURCE_NODE *PMem64Node
|
IN PCI_RESOURCE_NODE *PMem64Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to do the resource padding for a specific platform
|
This function is used to do the resource padding for a specific platform
|
||||||
@ -249,8 +240,7 @@ ResourcePaddingPolicy (
|
|||||||
PCI_RESOURCE_NODE *PMem32Node,
|
PCI_RESOURCE_NODE *PMem32Node,
|
||||||
PCI_RESOURCE_NODE *Mem64Node,
|
PCI_RESOURCE_NODE *Mem64Node,
|
||||||
PCI_RESOURCE_NODE *PMem64Node
|
PCI_RESOURCE_NODE *PMem64Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to degrade resource if the upstream bridge
|
This function is used to degrade resource if the upstream bridge
|
||||||
@ -275,8 +265,7 @@ DegradeResource (
|
|||||||
IN PCI_RESOURCE_NODE *PMem32Node,
|
IN PCI_RESOURCE_NODE *PMem32Node,
|
||||||
IN PCI_RESOURCE_NODE *Mem64Node,
|
IN PCI_RESOURCE_NODE *Mem64Node,
|
||||||
IN PCI_RESOURCE_NODE *PMem64Node
|
IN PCI_RESOURCE_NODE *PMem64Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test whether bridge device support decode resource
|
Test whether bridge device support decode resource
|
||||||
@ -291,8 +280,7 @@ BOOLEAN
|
|||||||
BridgeSupportResourceDecode (
|
BridgeSupportResourceDecode (
|
||||||
IN PCI_IO_DEVICE *Bridge,
|
IN PCI_IO_DEVICE *Bridge,
|
||||||
IN UINT32 Decode
|
IN UINT32 Decode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is used to program the resource allocated
|
This function is used to program the resource allocated
|
||||||
@ -308,8 +296,7 @@ EFI_STATUS
|
|||||||
ProgramResource (
|
ProgramResource (
|
||||||
IN UINT64 Base,
|
IN UINT64 Base,
|
||||||
IN PCI_RESOURCE_NODE *Bridge
|
IN PCI_RESOURCE_NODE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Program Bar register.
|
Program Bar register.
|
||||||
@ -323,8 +310,7 @@ EFI_STATUS
|
|||||||
ProgramBar (
|
ProgramBar (
|
||||||
IN UINT64 Base,
|
IN UINT64 Base,
|
||||||
IN PCI_RESOURCE_NODE *Node
|
IN PCI_RESOURCE_NODE *Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Program PPB apperture
|
Program PPB apperture
|
||||||
@ -338,8 +324,7 @@ EFI_STATUS
|
|||||||
ProgramPpbApperture (
|
ProgramPpbApperture (
|
||||||
IN UINT64 Base,
|
IN UINT64 Base,
|
||||||
IN PCI_RESOURCE_NODE *Node
|
IN PCI_RESOURCE_NODE *Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Program parent bridge for oprom
|
Program parent bridge for oprom
|
||||||
@ -355,8 +340,7 @@ ProgrameUpstreamBridgeForRom (
|
|||||||
IN PCI_IO_DEVICE *PciDevice,
|
IN PCI_IO_DEVICE *PciDevice,
|
||||||
IN UINT32 OptionRomBase,
|
IN UINT32 OptionRomBase,
|
||||||
IN BOOLEAN Enable
|
IN BOOLEAN Enable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test whether resource exists for a bridge
|
Test whether resource exists for a bridge
|
||||||
@ -368,8 +352,7 @@ ProgrameUpstreamBridgeForRom (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
ResourceRequestExisted (
|
ResourceRequestExisted (
|
||||||
IN PCI_RESOURCE_NODE *Bridge
|
IN PCI_RESOURCE_NODE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize resource pool structure.
|
Initialize resource pool structure.
|
||||||
@ -381,8 +364,7 @@ EFI_STATUS
|
|||||||
InitializeResourcePool (
|
InitializeResourcePool (
|
||||||
PCI_RESOURCE_NODE *ResourcePool,
|
PCI_RESOURCE_NODE *ResourcePool,
|
||||||
PCI_BAR_TYPE ResourceType
|
PCI_BAR_TYPE ResourceType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get all resource information for given Pci device
|
Get all resource information for given Pci device
|
||||||
@ -414,8 +396,7 @@ GetResourceMap (
|
|||||||
PCI_RESOURCE_NODE *PMem32Pool,
|
PCI_RESOURCE_NODE *PMem32Pool,
|
||||||
PCI_RESOURCE_NODE *Mem64Pool,
|
PCI_RESOURCE_NODE *Mem64Pool,
|
||||||
PCI_RESOURCE_NODE *PMem64Pool
|
PCI_RESOURCE_NODE *PMem64Pool
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destory given resource tree
|
Destory given resource tree
|
||||||
@ -427,8 +408,7 @@ GetResourceMap (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DestroyResourceTree (
|
DestroyResourceTree (
|
||||||
IN PCI_RESOURCE_NODE *Bridge
|
IN PCI_RESOURCE_NODE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Record the reserved resource and insert to reserved list.
|
Record the reserved resource and insert to reserved list.
|
||||||
@ -444,8 +424,7 @@ RecordReservedResource (
|
|||||||
IN UINT64 Length,
|
IN UINT64 Length,
|
||||||
IN PCI_BAR_TYPE ResType,
|
IN PCI_BAR_TYPE ResType,
|
||||||
IN PCI_IO_DEVICE *Bridge
|
IN PCI_IO_DEVICE *Bridge
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Insert resource padding for P2C
|
Insert resource padding for P2C
|
||||||
@ -467,8 +446,7 @@ ResourcePaddingForCardBusBridge (
|
|||||||
PCI_RESOURCE_NODE *PMem32Node,
|
PCI_RESOURCE_NODE *PMem32Node,
|
||||||
PCI_RESOURCE_NODE *Mem64Node,
|
PCI_RESOURCE_NODE *Mem64Node,
|
||||||
PCI_RESOURCE_NODE *PMem64Node
|
PCI_RESOURCE_NODE *PMem64Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Program P2C register for given resource node
|
Program P2C register for given resource node
|
||||||
@ -482,8 +460,7 @@ EFI_STATUS
|
|||||||
ProgramP2C (
|
ProgramP2C (
|
||||||
IN UINT64 Base,
|
IN UINT64 Base,
|
||||||
IN PCI_RESOURCE_NODE *Node
|
IN PCI_RESOURCE_NODE *Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create padding resource node.
|
Create padding resource node.
|
||||||
@ -506,8 +483,7 @@ ApplyResourcePadding (
|
|||||||
PCI_RESOURCE_NODE *PMem32Node,
|
PCI_RESOURCE_NODE *PMem32Node,
|
||||||
PCI_RESOURCE_NODE *Mem64Node,
|
PCI_RESOURCE_NODE *Mem64Node,
|
||||||
PCI_RESOURCE_NODE *PMem64Node
|
PCI_RESOURCE_NODE *PMem64Node
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get padding resource for PPB
|
Get padding resource for PPB
|
||||||
@ -519,8 +495,7 @@ ApplyResourcePadding (
|
|||||||
VOID
|
VOID
|
||||||
GetResourcePaddingPpb (
|
GetResourcePaddingPpb (
|
||||||
IN PCI_IO_DEVICE *PciIoDevice
|
IN PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset and all bus number from specific bridge.
|
Reset and all bus number from specific bridge.
|
||||||
@ -532,7 +507,6 @@ EFI_STATUS
|
|||||||
ResetAllPpbBusNumber (
|
ResetAllPpbBusNumber (
|
||||||
IN PCI_IO_DEVICE *Bridge,
|
IN PCI_IO_DEVICE *Bridge,
|
||||||
IN UINT8 StartBusNumber
|
IN UINT8 StartBusNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -35,8 +35,7 @@ PciRomAddImageMapping (
|
|||||||
IN UINT8 Func,
|
IN UINT8 Func,
|
||||||
IN UINT64 RomAddress,
|
IN UINT64 RomAddress,
|
||||||
IN UINT64 RomLength
|
IN UINT64 RomLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
/**
|
/**
|
||||||
Load all option rom image to PCI driver list.
|
Load all option rom image to PCI driver list.
|
||||||
|
|
||||||
@ -49,8 +48,7 @@ PciRomGetRomResourceFromPciOptionRomTable (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,
|
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *PciRootBridgeIo,
|
||||||
PCI_IO_DEVICE *PciIoDevice
|
PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get Option rom driver's mapping for PCI device.
|
Get Option rom driver's mapping for PCI device.
|
||||||
@ -61,7 +59,6 @@ PciRomGetRomResourceFromPciOptionRomTable (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PciRomGetImageMapping (
|
PciRomGetImageMapping (
|
||||||
PCI_IO_DEVICE *PciIoDevice
|
PCI_IO_DEVICE *PciIoDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -64,8 +64,7 @@ EFIAPI
|
|||||||
PeimInitializeVariableServices (
|
PeimInitializeVariableServices (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -76,8 +75,7 @@ PeiGetVariable (
|
|||||||
OUT UINT32 *Attributes OPTIONAL,
|
OUT UINT32 *Attributes OPTIONAL,
|
||||||
IN OUT UINTN *DataSize,
|
IN OUT UINTN *DataSize,
|
||||||
OUT VOID *Data
|
OUT VOID *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -88,8 +86,7 @@ PeiGetVariable2 (
|
|||||||
OUT UINT32 *Attributes,
|
OUT UINT32 *Attributes,
|
||||||
IN OUT UINTN *DataSize,
|
IN OUT UINTN *DataSize,
|
||||||
OUT VOID *Data
|
OUT VOID *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -98,8 +95,7 @@ PeiGetNextVariableName2 (
|
|||||||
IN OUT UINTN *VariableNameSize,
|
IN OUT UINTN *VariableNameSize,
|
||||||
IN OUT CHAR16 *VariableName,
|
IN OUT CHAR16 *VariableName,
|
||||||
IN OUT EFI_GUID *VariableGuid
|
IN OUT EFI_GUID *VariableGuid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -108,8 +104,7 @@ PeiGetNextVariableName (
|
|||||||
IN OUT UINTN *VariableNameSize,
|
IN OUT UINTN *VariableNameSize,
|
||||||
IN OUT CHAR16 *VariableName,
|
IN OUT CHAR16 *VariableName,
|
||||||
IN OUT EFI_GUID *VendorGuid
|
IN OUT EFI_GUID *VendorGuid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get one variable by the index count.
|
Get one variable by the index count.
|
||||||
|
@ -46,7 +46,6 @@ PreparePackages (
|
|||||||
IN UINTN NumberOfPackages,
|
IN UINTN NumberOfPackages,
|
||||||
IN CONST EFI_GUID *Guid OPTIONAL,
|
IN CONST EFI_GUID *Guid OPTIONAL,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -79,8 +79,7 @@ EFI_STATUS
|
|||||||
IN EFI_HANDLE HostBridge,
|
IN EFI_HANDLE HostBridge,
|
||||||
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PHASE Phase,
|
IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PHASE Phase,
|
||||||
IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
|
IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -115,8 +114,7 @@ EFI_STATUS
|
|||||||
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS PciAddress,
|
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS PciAddress,
|
||||||
IN EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE Phase,
|
IN EFI_PCI_CONTROLLER_RESOURCE_ALLOCATION_PHASE Phase,
|
||||||
IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
|
IN EFI_PCI_CHIPSET_EXECUTION_PHASE ChipsetPhase
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -136,8 +134,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_PCI_PLATFORM_GET_PLATFORM_POLICY)(
|
(EFIAPI *EFI_PCI_PLATFORM_GET_PLATFORM_POLICY)(
|
||||||
IN EFI_PCI_PLATFORM_PROTOCOL *This,
|
IN EFI_PCI_PLATFORM_PROTOCOL *This,
|
||||||
OUT EFI_PCI_PLATFORM_POLICY *PciPolicy
|
OUT EFI_PCI_PLATFORM_POLICY *PciPolicy
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -174,8 +171,7 @@ EFI_STATUS
|
|||||||
IN EFI_HANDLE PciHandle,
|
IN EFI_HANDLE PciHandle,
|
||||||
OUT VOID **RomImage,
|
OUT VOID **RomImage,
|
||||||
OUT UINTN *RomSize
|
OUT UINTN *RomSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -107,8 +107,7 @@ EFI_STATUS
|
|||||||
IN UINTN SourceSize,
|
IN UINTN SourceSize,
|
||||||
OUT EFI_HANDLE *ImageHandle,
|
OUT EFI_HANDLE *ImageHandle,
|
||||||
IN BOOLEAN LegacyIA32Binary OPTIONAL
|
IN BOOLEAN LegacyIA32Binary OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove a given driver SMRAM. This is the equivalent of performing
|
Remove a given driver SMRAM. This is the equivalent of performing
|
||||||
@ -128,8 +127,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_SMM_UNREGISTER_HANDLER)(
|
(EFIAPI *EFI_SMM_UNREGISTER_HANDLER)(
|
||||||
IN EFI_SMM_BASE_PROTOCOL *This,
|
IN EFI_SMM_BASE_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ImageHandle
|
IN EFI_HANDLE ImageHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The SMM Inter-module Communicate Service Communicate() function
|
The SMM Inter-module Communicate Service Communicate() function
|
||||||
@ -154,8 +152,7 @@ EFI_STATUS
|
|||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN OUT VOID *CommunicationBuffer,
|
IN OUT VOID *CommunicationBuffer,
|
||||||
IN OUT UINTN *SourceSize
|
IN OUT UINTN *SourceSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Register a callback to execute within SMM.
|
Register a callback to execute within SMM.
|
||||||
@ -186,8 +183,7 @@ EFI_STATUS
|
|||||||
IN EFI_SMM_CALLBACK_ENTRY_POINT CallbackAddress,
|
IN EFI_SMM_CALLBACK_ENTRY_POINT CallbackAddress,
|
||||||
IN BOOLEAN MakeLast OPTIONAL,
|
IN BOOLEAN MakeLast OPTIONAL,
|
||||||
IN BOOLEAN FloatingPointSave OPTIONAL
|
IN BOOLEAN FloatingPointSave OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The SmmAllocatePool() function allocates a memory region of Size bytes from memory of
|
The SmmAllocatePool() function allocates a memory region of Size bytes from memory of
|
||||||
@ -216,8 +212,7 @@ EFI_STATUS
|
|||||||
IN EFI_MEMORY_TYPE PoolType,
|
IN EFI_MEMORY_TYPE PoolType,
|
||||||
IN UINTN Size,
|
IN UINTN Size,
|
||||||
OUT VOID **Buffer
|
OUT VOID **Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The SmmFreePool() function returns the memory specified by Buffer to the system.
|
The SmmFreePool() function returns the memory specified by Buffer to the system.
|
||||||
@ -237,8 +232,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_SMM_FREE_POOL)(
|
(EFIAPI *EFI_SMM_FREE_POOL)(
|
||||||
IN EFI_SMM_BASE_PROTOCOL *This,
|
IN EFI_SMM_BASE_PROTOCOL *This,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine tells caller if execution context is SMM or not.
|
This routine tells caller if execution context is SMM or not.
|
||||||
@ -254,8 +248,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_SMM_INSIDE_OUT)(
|
(EFIAPI *EFI_SMM_INSIDE_OUT)(
|
||||||
IN EFI_SMM_BASE_PROTOCOL *This,
|
IN EFI_SMM_BASE_PROTOCOL *This,
|
||||||
OUT BOOLEAN *InSmm
|
OUT BOOLEAN *InSmm
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The GetSmstLocation() function returns the locatin of the System Management
|
The GetSmstLocation() function returns the locatin of the System Management
|
||||||
@ -276,8 +269,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_SMM_GET_SMST_LOCATION)(
|
(EFIAPI *EFI_SMM_GET_SMST_LOCATION)(
|
||||||
IN EFI_SMM_BASE_PROTOCOL *This,
|
IN EFI_SMM_BASE_PROTOCOL *This,
|
||||||
IN OUT EFI_SMM_SYSTEM_TABLE **Smst
|
IN OUT EFI_SMM_SYSTEM_TABLE **Smst
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -30,8 +30,7 @@ VOID
|
|||||||
EhcDumpQtd (
|
EhcDumpQtd (
|
||||||
IN EHC_QTD *Qtd,
|
IN EHC_QTD *Qtd,
|
||||||
IN CHAR8 *Msg
|
IN CHAR8 *Msg
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -49,8 +48,7 @@ EhcDumpQh (
|
|||||||
IN EHC_QH *Qh,
|
IN EHC_QH *Qh,
|
||||||
IN CHAR8 *Msg,
|
IN CHAR8 *Msg,
|
||||||
IN BOOLEAN DumpBuf
|
IN BOOLEAN DumpBuf
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -66,7 +64,6 @@ VOID
|
|||||||
EhcDumpBuf (
|
EhcDumpBuf (
|
||||||
IN UINT8 *Buf,
|
IN UINT8 *Buf,
|
||||||
IN UINTN Len
|
IN UINTN Len
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -128,8 +128,7 @@ UINT32
|
|||||||
EhcReadCapRegister (
|
EhcReadCapRegister (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN UINT32 Offset
|
IN UINT32 Offset
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -145,8 +144,7 @@ UINT32
|
|||||||
EhcReadOpReg (
|
EhcReadOpReg (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN UINT32 Offset
|
IN UINT32 Offset
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -164,8 +162,7 @@ EhcWriteOpReg (
|
|||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN UINT32 Offset,
|
IN UINT32 Offset,
|
||||||
IN UINT32 Data
|
IN UINT32 Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -180,8 +177,7 @@ EhcWriteOpReg (
|
|||||||
VOID
|
VOID
|
||||||
EhcClearLegacySupport (
|
EhcClearLegacySupport (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -200,8 +196,7 @@ EFI_STATUS
|
|||||||
EhcSetAndWaitDoorBell (
|
EhcSetAndWaitDoorBell (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN UINT32 Timeout
|
IN UINT32 Timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -215,8 +210,7 @@ EhcSetAndWaitDoorBell (
|
|||||||
VOID
|
VOID
|
||||||
EhcAckAllInterrupt (
|
EhcAckAllInterrupt (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -232,8 +226,7 @@ EhcAckAllInterrupt (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
EhcIsHalt (
|
EhcIsHalt (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -248,8 +241,7 @@ EhcIsHalt (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
EhcIsSysError (
|
EhcIsSysError (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -266,8 +258,7 @@ EFI_STATUS
|
|||||||
EhcResetHC (
|
EhcResetHC (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN UINT32 Timeout
|
IN UINT32 Timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -284,8 +275,7 @@ EFI_STATUS
|
|||||||
EhcHaltHC (
|
EhcHaltHC (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN UINT32 Timeout
|
IN UINT32 Timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -302,8 +292,7 @@ EFI_STATUS
|
|||||||
EhcRunHC (
|
EhcRunHC (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN UINT32 Timeout
|
IN UINT32 Timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -325,7 +314,6 @@ EhcRunHC (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EhcInitHC (
|
EhcInitHC (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,8 +29,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EhcInitSched (
|
EhcInitSched (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,8 +43,7 @@ EhcInitSched (
|
|||||||
VOID
|
VOID
|
||||||
EhcFreeSched (
|
EhcFreeSched (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,8 +63,7 @@ VOID
|
|||||||
EhcLinkQhToAsync (
|
EhcLinkQhToAsync (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN EHC_QH *Qh
|
IN EHC_QH *Qh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -83,8 +80,7 @@ VOID
|
|||||||
EhcUnlinkQhFromAsync (
|
EhcUnlinkQhFromAsync (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN EHC_QH *Qh
|
IN EHC_QH *Qh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -102,8 +98,7 @@ VOID
|
|||||||
EhcLinkQhToPeriod (
|
EhcLinkQhToPeriod (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN EHC_QH *Qh
|
IN EHC_QH *Qh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -120,8 +115,7 @@ VOID
|
|||||||
EhcUnlinkQhFromPeriod (
|
EhcUnlinkQhFromPeriod (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN EHC_QH *Qh
|
IN EHC_QH *Qh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -142,8 +136,7 @@ EhcExecTransfer (
|
|||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN URB *Urb,
|
IN URB *Urb,
|
||||||
IN UINTN TimeOut
|
IN UINTN TimeOut
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -165,8 +158,7 @@ EhciDelAsyncIntTransfer (
|
|||||||
IN UINT8 DevAddr,
|
IN UINT8 DevAddr,
|
||||||
IN UINT8 EpNum,
|
IN UINT8 EpNum,
|
||||||
OUT UINT8 *DataToggle
|
OUT UINT8 *DataToggle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -180,8 +172,7 @@ EhciDelAsyncIntTransfer (
|
|||||||
VOID
|
VOID
|
||||||
EhciDelAllAsyncIntTransfers (
|
EhciDelAllAsyncIntTransfers (
|
||||||
IN USB2_HC_DEV *Ehc
|
IN USB2_HC_DEV *Ehc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -197,7 +188,6 @@ VOID
|
|||||||
EhcMoniteAsyncRequests (
|
EhcMoniteAsyncRequests (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -261,8 +261,7 @@ EhcCreateQtd (
|
|||||||
IN UINT8 PktId,
|
IN UINT8 PktId,
|
||||||
IN UINT8 Toggle,
|
IN UINT8 Toggle,
|
||||||
IN UINTN MaxPacket
|
IN UINTN MaxPacket
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -279,8 +278,7 @@ EHC_QH *
|
|||||||
EhcCreateQh (
|
EhcCreateQh (
|
||||||
IN USB2_HC_DEV *Ehci,
|
IN USB2_HC_DEV *Ehci,
|
||||||
IN USB_ENDPOINT *Ep
|
IN USB_ENDPOINT *Ep
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -296,8 +294,7 @@ VOID
|
|||||||
EhcFreeUrb (
|
EhcFreeUrb (
|
||||||
IN USB2_HC_DEV *Ehc,
|
IN USB2_HC_DEV *Ehc,
|
||||||
IN URB *Urb
|
IN URB *Urb
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -337,6 +334,5 @@ EhcCreateUrb (
|
|||||||
IN EFI_ASYNC_USB_TRANSFER_CALLBACK Callback,
|
IN EFI_ASYNC_USB_TRANSFER_CALLBACK Callback,
|
||||||
IN VOID *Context,
|
IN VOID *Context,
|
||||||
IN UINTN Interval
|
IN UINTN Interval
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -91,8 +91,7 @@ UsbHcInitMemPool (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN BOOLEAN Check4G,
|
IN BOOLEAN Check4G,
|
||||||
IN UINT32 Which4G
|
IN UINT32 Which4G
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -107,8 +106,7 @@ UsbHcInitMemPool (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UsbHcFreeMemPool (
|
UsbHcFreeMemPool (
|
||||||
IN USBHC_MEM_POOL *Pool
|
IN USBHC_MEM_POOL *Pool
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -125,8 +123,7 @@ VOID *
|
|||||||
UsbHcAllocateMem (
|
UsbHcAllocateMem (
|
||||||
IN USBHC_MEM_POOL *Pool,
|
IN USBHC_MEM_POOL *Pool,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -144,6 +141,5 @@ UsbHcFreeMem (
|
|||||||
IN USBHC_MEM_POOL *Pool,
|
IN USBHC_MEM_POOL *Pool,
|
||||||
IN VOID *Mem,
|
IN VOID *Mem,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -28,8 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
VOID
|
VOID
|
||||||
UhciDumpQh (
|
UhciDumpQh (
|
||||||
IN UHCI_QH_SW *QhSw
|
IN UHCI_QH_SW *QhSw
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,7 +42,6 @@ UhciDumpQh (
|
|||||||
VOID
|
VOID
|
||||||
UhciDumpTds (
|
UhciDumpTds (
|
||||||
IN UHCI_TD_SW *TdSw
|
IN UHCI_TD_SW *TdSw
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -107,8 +107,7 @@ VOID
|
|||||||
UhciLinkTdToQh (
|
UhciLinkTdToQh (
|
||||||
IN UHCI_QH_SW *Qh,
|
IN UHCI_QH_SW *Qh,
|
||||||
IN UHCI_TD_SW *Td
|
IN UHCI_TD_SW *Td
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -124,8 +123,7 @@ VOID
|
|||||||
UhciUnlinkTdFromQh (
|
UhciUnlinkTdFromQh (
|
||||||
IN UHCI_QH_SW *Qh,
|
IN UHCI_QH_SW *Qh,
|
||||||
IN UHCI_TD_SW *Td
|
IN UHCI_TD_SW *Td
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -146,8 +144,7 @@ UhciMapUserRequest (
|
|||||||
IN OUT VOID *Request,
|
IN OUT VOID *Request,
|
||||||
OUT UINT8 **MappedAddr,
|
OUT UINT8 **MappedAddr,
|
||||||
OUT VOID **Map
|
OUT VOID **Map
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -174,8 +171,7 @@ UhciMapUserData (
|
|||||||
OUT UINT8 *PktId,
|
OUT UINT8 *PktId,
|
||||||
OUT UINT8 **MappedAddr,
|
OUT UINT8 **MappedAddr,
|
||||||
OUT VOID **Map
|
OUT VOID **Map
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -191,8 +187,7 @@ VOID
|
|||||||
UhciDestoryTds (
|
UhciDestoryTds (
|
||||||
IN USB_HC_DEV *Uhc,
|
IN USB_HC_DEV *Uhc,
|
||||||
IN UHCI_TD_SW *FirstTd
|
IN UHCI_TD_SW *FirstTd
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,8 +203,7 @@ UHCI_QH_SW *
|
|||||||
UhciCreateQh (
|
UhciCreateQh (
|
||||||
IN USB_HC_DEV *Uhc,
|
IN USB_HC_DEV *Uhc,
|
||||||
IN UINTN Interval
|
IN UINTN Interval
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -237,8 +231,7 @@ UhciCreateCtrlTds (
|
|||||||
IN UINTN DataLen,
|
IN UINTN DataLen,
|
||||||
IN UINT8 MaxPacket,
|
IN UINT8 MaxPacket,
|
||||||
IN BOOLEAN IsLow
|
IN BOOLEAN IsLow
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -268,7 +261,6 @@ UhciCreateBulkOrIntTds (
|
|||||||
IN OUT UINT8 *DataToggle,
|
IN OUT UINT8 *DataToggle,
|
||||||
IN UINT8 MaxPacket,
|
IN UINT8 MaxPacket,
|
||||||
IN BOOLEAN IsLow
|
IN BOOLEAN IsLow
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -111,8 +111,7 @@ UINT16
|
|||||||
UhciReadReg (
|
UhciReadReg (
|
||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN UINT32 Offset
|
IN UINT32 Offset
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -131,8 +130,7 @@ UhciWriteReg (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN UINT32 Offset,
|
IN UINT32 Offset,
|
||||||
IN UINT16 Data
|
IN UINT16 Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -151,8 +149,7 @@ UhciSetRegBit (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN UINT32 Offset,
|
IN UINT32 Offset,
|
||||||
IN UINT16 Bit
|
IN UINT16 Bit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -171,8 +168,7 @@ UhciClearRegBit (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN UINT32 Offset,
|
IN UINT32 Offset,
|
||||||
IN UINT16 Bit
|
IN UINT16 Bit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -187,8 +183,7 @@ UhciClearRegBit (
|
|||||||
VOID
|
VOID
|
||||||
UhciAckAllInterrupt (
|
UhciAckAllInterrupt (
|
||||||
IN USB_HC_DEV *Uhc
|
IN USB_HC_DEV *Uhc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -205,8 +200,7 @@ EFI_STATUS
|
|||||||
UhciStopHc (
|
UhciStopHc (
|
||||||
IN USB_HC_DEV *Uhc,
|
IN USB_HC_DEV *Uhc,
|
||||||
IN UINTN Timeout
|
IN UINTN Timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -222,8 +216,7 @@ UhciStopHc (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
UhciIsHcWorking (
|
UhciIsHcWorking (
|
||||||
IN EFI_PCI_IO_PROTOCOL *PciIo
|
IN EFI_PCI_IO_PROTOCOL *PciIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -240,8 +233,7 @@ VOID
|
|||||||
UhciSetFrameListBaseAddr (
|
UhciSetFrameListBaseAddr (
|
||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN VOID *Addr
|
IN VOID *Addr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -255,6 +247,5 @@ UhciSetFrameListBaseAddr (
|
|||||||
VOID
|
VOID
|
||||||
UhciTurnOffUsbEmulation (
|
UhciTurnOffUsbEmulation (
|
||||||
IN EFI_PCI_IO_PROTOCOL *PciIo
|
IN EFI_PCI_IO_PROTOCOL *PciIo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -96,8 +96,7 @@ struct _UHCI_ASYNC_REQUEST{
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UhciInitFrameList (
|
UhciInitFrameList (
|
||||||
IN USB_HC_DEV *Uhc
|
IN USB_HC_DEV *Uhc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destory FrameList buffer.
|
Destory FrameList buffer.
|
||||||
@ -110,8 +109,7 @@ UhciInitFrameList (
|
|||||||
VOID
|
VOID
|
||||||
UhciDestoryFrameList (
|
UhciDestoryFrameList (
|
||||||
IN USB_HC_DEV *Uhc
|
IN USB_HC_DEV *Uhc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -126,8 +124,7 @@ UhciDestoryFrameList (
|
|||||||
UINTN
|
UINTN
|
||||||
UhciConvertPollRate (
|
UhciConvertPollRate (
|
||||||
IN UINTN Interval
|
IN UINTN Interval
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -144,8 +141,7 @@ VOID
|
|||||||
UhciLinkQhToFrameList (
|
UhciLinkQhToFrameList (
|
||||||
UINT32 *FrameBase,
|
UINT32 *FrameBase,
|
||||||
UHCI_QH_SW *Qh
|
UHCI_QH_SW *Qh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -163,8 +159,7 @@ VOID
|
|||||||
UhciUnlinkQhFromFrameList (
|
UhciUnlinkQhFromFrameList (
|
||||||
UINT32 *FrameBase,
|
UINT32 *FrameBase,
|
||||||
UHCI_QH_SW *Qh
|
UHCI_QH_SW *Qh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -189,8 +184,7 @@ UhciExecuteTransfer (
|
|||||||
IN UINTN TimeOut,
|
IN UINTN TimeOut,
|
||||||
IN BOOLEAN IsLow,
|
IN BOOLEAN IsLow,
|
||||||
OUT UHCI_QH_RESULT *QhResult
|
OUT UHCI_QH_RESULT *QhResult
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -228,8 +222,7 @@ UhciCreateAsyncReq (
|
|||||||
IN EFI_ASYNC_USB_TRANSFER_CALLBACK Callback,
|
IN EFI_ASYNC_USB_TRANSFER_CALLBACK Callback,
|
||||||
IN VOID *Context,
|
IN VOID *Context,
|
||||||
IN BOOLEAN IsLow
|
IN BOOLEAN IsLow
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -251,8 +244,7 @@ UhciRemoveAsyncReq (
|
|||||||
IN UINT8 DevAddr,
|
IN UINT8 DevAddr,
|
||||||
IN UINT8 EndPoint,
|
IN UINT8 EndPoint,
|
||||||
OUT UINT8 *Toggle
|
OUT UINT8 *Toggle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -266,8 +258,7 @@ UhciRemoveAsyncReq (
|
|||||||
VOID
|
VOID
|
||||||
UhciFreeAllAsyncReq (
|
UhciFreeAllAsyncReq (
|
||||||
IN USB_HC_DEV *Uhc
|
IN USB_HC_DEV *Uhc
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -283,7 +274,6 @@ VOID
|
|||||||
UhciMonitorAsyncReqList (
|
UhciMonitorAsyncReqList (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -89,8 +89,7 @@ UsbHcInitMemPool (
|
|||||||
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
IN EFI_PCI_IO_PROTOCOL *PciIo,
|
||||||
IN BOOLEAN Check4G,
|
IN BOOLEAN Check4G,
|
||||||
IN UINT32 Which4G
|
IN UINT32 Which4G
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -105,8 +104,7 @@ UsbHcInitMemPool (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UsbHcFreeMemPool (
|
UsbHcFreeMemPool (
|
||||||
IN USBHC_MEM_POOL *Pool
|
IN USBHC_MEM_POOL *Pool
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -124,8 +122,7 @@ VOID *
|
|||||||
UsbHcAllocateMem (
|
UsbHcAllocateMem (
|
||||||
IN USBHC_MEM_POOL *Pool,
|
IN USBHC_MEM_POOL *Pool,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -144,6 +141,5 @@ UsbHcFreeMem (
|
|||||||
IN USBHC_MEM_POOL *Pool,
|
IN USBHC_MEM_POOL *Pool,
|
||||||
IN VOID *Mem,
|
IN VOID *Mem,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -60,8 +60,7 @@ EFIAPI
|
|||||||
ScsiioToPassThruPacket (
|
ScsiioToPassThruPacket (
|
||||||
IN EFI_SCSI_IO_SCSI_REQUEST_PACKET *Packet,
|
IN EFI_SCSI_IO_SCSI_REQUEST_PACKET *Packet,
|
||||||
IN OUT EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *CommandPacket
|
IN OUT EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *CommandPacket
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
@ -70,16 +69,14 @@ EFIAPI
|
|||||||
PassThruToScsiioPacket (
|
PassThruToScsiioPacket (
|
||||||
IN EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *ScsiPacket,
|
IN EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *ScsiPacket,
|
||||||
IN OUT EFI_SCSI_IO_SCSI_REQUEST_PACKET *Packet
|
IN OUT EFI_SCSI_IO_SCSI_REQUEST_PACKET *Packet
|
||||||
)
|
);
|
||||||
;
|
|
||||||
STATIC
|
STATIC
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
NotifyFunction (
|
NotifyFunction (
|
||||||
EFI_EVENT Event,
|
EFI_EVENT Event,
|
||||||
VOID *Context
|
VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The user Entry Point for module ScsiBus. The user code starts with this function.
|
The user Entry Point for module ScsiBus. The user code starts with this function.
|
||||||
|
@ -225,8 +225,7 @@ EFIAPI
|
|||||||
USBKeyboardResetEx (
|
USBKeyboardResetEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the next keystroke from the input device. The WaitForKey Event can
|
Reads the next keystroke from the input device. The WaitForKey Event can
|
||||||
@ -246,8 +245,7 @@ EFIAPI
|
|||||||
USBKeyboardReadKeyStrokeEx (
|
USBKeyboardReadKeyStrokeEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
OUT EFI_KEY_DATA *KeyData
|
OUT EFI_KEY_DATA *KeyData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set certain state for the input device.
|
Set certain state for the input device.
|
||||||
@ -266,8 +264,7 @@ EFIAPI
|
|||||||
USBKeyboardSetState (
|
USBKeyboardSetState (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Register a notification function for a particular keystroke for the input device.
|
Register a notification function for a particular keystroke for the input device.
|
||||||
@ -291,8 +288,7 @@ USBKeyboardRegisterKeyNotify (
|
|||||||
IN EFI_KEY_DATA *KeyData,
|
IN EFI_KEY_DATA *KeyData,
|
||||||
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
||||||
OUT EFI_HANDLE *NotifyHandle
|
OUT EFI_HANDLE *NotifyHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove a registered notification function from a particular keystroke.
|
Remove a registered notification function from a particular keystroke.
|
||||||
@ -311,8 +307,7 @@ EFIAPI
|
|||||||
USBKeyboardUnregisterKeyNotify (
|
USBKeyboardUnregisterKeyNotify (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_HANDLE NotificationHandle
|
IN EFI_HANDLE NotificationHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -36,8 +36,7 @@ PeiLoadImageLoadImageWrapper (
|
|||||||
OUT UINT64 *ImageSizeArg, OPTIONAL
|
OUT UINT64 *ImageSizeArg, OPTIONAL
|
||||||
OUT EFI_PHYSICAL_ADDRESS *EntryPoint,
|
OUT EFI_PHYSICAL_ADDRESS *EntryPoint,
|
||||||
OUT UINT32 *AuthenticationState
|
OUT UINT32 *AuthenticationState
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
STATIC EFI_PEI_LOAD_FILE_PPI mPeiLoadImagePpi = {
|
STATIC EFI_PEI_LOAD_FILE_PPI mPeiLoadImagePpi = {
|
||||||
PeiLoadImageLoadImageWrapper
|
PeiLoadImageLoadImageWrapper
|
||||||
|
@ -236,8 +236,7 @@ PeiCore (
|
|||||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
||||||
IN CONST EFI_PEI_PPI_DESCRIPTOR *PpList,
|
IN CONST EFI_PEI_PPI_DESCRIPTOR *PpList,
|
||||||
IN VOID *Data
|
IN VOID *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Dispatcher support functions
|
// Dispatcher support functions
|
||||||
@ -267,8 +266,7 @@ BOOLEAN
|
|||||||
PeimDispatchReadiness (
|
PeimDispatchReadiness (
|
||||||
IN EFI_PEI_SERVICES **PeiServices,
|
IN EFI_PEI_SERVICES **PeiServices,
|
||||||
IN VOID *DependencyExpression
|
IN VOID *DependencyExpression
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Conduct PEIM dispatch.
|
Conduct PEIM dispatch.
|
||||||
@ -284,8 +282,7 @@ VOID
|
|||||||
PeiDispatcher (
|
PeiDispatcher (
|
||||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
||||||
IN PEI_CORE_INSTANCE *PrivateData
|
IN PEI_CORE_INSTANCE *PrivateData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize the Dispatcher's data members
|
Initialize the Dispatcher's data members
|
||||||
@ -303,8 +300,7 @@ InitializeDispatcherData (
|
|||||||
IN PEI_CORE_INSTANCE *PrivateData,
|
IN PEI_CORE_INSTANCE *PrivateData,
|
||||||
IN PEI_CORE_INSTANCE *OldCoreData,
|
IN PEI_CORE_INSTANCE *OldCoreData,
|
||||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData
|
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine parses the Dependency Expression, if available, and
|
This routine parses the Dependency Expression, if available, and
|
||||||
@ -324,8 +320,7 @@ DepexSatisfied (
|
|||||||
IN PEI_CORE_INSTANCE *Private,
|
IN PEI_CORE_INSTANCE *Private,
|
||||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN UINTN PeimCount
|
IN UINTN PeimCount
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// PPI support functions
|
// PPI support functions
|
||||||
@ -343,8 +338,7 @@ VOID
|
|||||||
InitializePpiServices (
|
InitializePpiServices (
|
||||||
IN PEI_CORE_INSTANCE *PrivateData,
|
IN PEI_CORE_INSTANCE *PrivateData,
|
||||||
IN PEI_CORE_INSTANCE *OldCoreData
|
IN PEI_CORE_INSTANCE *OldCoreData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -365,8 +359,7 @@ ConvertPpiPointers (
|
|||||||
IN UINTN OldCheckingBottom,
|
IN UINTN OldCheckingBottom,
|
||||||
IN UINTN OldCheckingTop,
|
IN UINTN OldCheckingTop,
|
||||||
IN INTN Fixup
|
IN INTN Fixup
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -386,8 +379,7 @@ EFIAPI
|
|||||||
PeiInstallPpi (
|
PeiInstallPpi (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList
|
IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -409,8 +401,7 @@ PeiReInstallPpi (
|
|||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN CONST EFI_PEI_PPI_DESCRIPTOR *OldPpi,
|
IN CONST EFI_PEI_PPI_DESCRIPTOR *OldPpi,
|
||||||
IN CONST EFI_PEI_PPI_DESCRIPTOR *NewPpi
|
IN CONST EFI_PEI_PPI_DESCRIPTOR *NewPpi
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -436,8 +427,7 @@ PeiLocatePpi (
|
|||||||
IN UINTN Instance,
|
IN UINTN Instance,
|
||||||
IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor,
|
IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor,
|
||||||
IN OUT VOID **Ppi
|
IN OUT VOID **Ppi
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -457,8 +447,7 @@ EFIAPI
|
|||||||
PeiNotifyPpi (
|
PeiNotifyPpi (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN CONST EFI_PEI_NOTIFY_DESCRIPTOR *NotifyList
|
IN CONST EFI_PEI_NOTIFY_DESCRIPTOR *NotifyList
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -470,8 +459,7 @@ PeiNotifyPpi (
|
|||||||
VOID
|
VOID
|
||||||
ProcessNotifyList (
|
ProcessNotifyList (
|
||||||
IN PEI_CORE_INSTANCE *PrivateData
|
IN PEI_CORE_INSTANCE *PrivateData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -493,8 +481,7 @@ DispatchNotify (
|
|||||||
IN INTN InstallStopIndex,
|
IN INTN InstallStopIndex,
|
||||||
IN INTN NotifyStartIndex,
|
IN INTN NotifyStartIndex,
|
||||||
IN INTN NotifyStopIndex
|
IN INTN NotifyStopIndex
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Boot mode support functions
|
// Boot mode support functions
|
||||||
@ -514,8 +501,7 @@ EFIAPI
|
|||||||
PeiGetBootMode (
|
PeiGetBootMode (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN OUT EFI_BOOT_MODE *BootMode
|
IN OUT EFI_BOOT_MODE *BootMode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This service enables PEIMs to update the boot mode variable.
|
This service enables PEIMs to update the boot mode variable.
|
||||||
@ -532,8 +518,7 @@ EFIAPI
|
|||||||
PeiSetBootMode (
|
PeiSetBootMode (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN EFI_BOOT_MODE BootMode
|
IN EFI_BOOT_MODE BootMode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Security support functions
|
// Security support functions
|
||||||
@ -551,8 +536,7 @@ VOID
|
|||||||
InitializeSecurityServices (
|
InitializeSecurityServices (
|
||||||
IN EFI_PEI_SERVICES **PeiServices,
|
IN EFI_PEI_SERVICES **PeiServices,
|
||||||
IN PEI_CORE_INSTANCE *OldCoreData
|
IN PEI_CORE_INSTANCE *OldCoreData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Verify a Firmware volume
|
Verify a Firmware volume
|
||||||
@ -566,8 +550,7 @@ InitializeSecurityServices (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
VerifyFv (
|
VerifyFv (
|
||||||
IN EFI_FIRMWARE_VOLUME_HEADER *CurrentFvAddress
|
IN EFI_FIRMWARE_VOLUME_HEADER *CurrentFvAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -587,8 +570,7 @@ VerifyPeim (
|
|||||||
IN PEI_CORE_INSTANCE *PrivateData,
|
IN PEI_CORE_INSTANCE *PrivateData,
|
||||||
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
||||||
IN EFI_PEI_FILE_HANDLE FileHandle
|
IN EFI_PEI_FILE_HANDLE FileHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -608,8 +590,7 @@ EFIAPI
|
|||||||
PeiGetHobList (
|
PeiGetHobList (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN OUT VOID **HobList
|
IN OUT VOID **HobList
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add a new HOB to the HOB List.
|
Add a new HOB to the HOB List.
|
||||||
@ -632,8 +613,7 @@ PeiCreateHob (
|
|||||||
IN UINT16 Type,
|
IN UINT16 Type,
|
||||||
IN UINT16 Length,
|
IN UINT16 Length,
|
||||||
IN OUT VOID **Hob
|
IN OUT VOID **Hob
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -651,8 +631,7 @@ PeiCoreBuildHobHandoffInfoTable (
|
|||||||
IN EFI_BOOT_MODE BootMode,
|
IN EFI_BOOT_MODE BootMode,
|
||||||
IN EFI_PHYSICAL_ADDRESS MemoryBegin,
|
IN EFI_PHYSICAL_ADDRESS MemoryBegin,
|
||||||
IN UINT64 MemoryLength
|
IN UINT64 MemoryLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -681,8 +660,7 @@ PeiFfsFindNextFile (
|
|||||||
IN UINT8 SearchType,
|
IN UINT8 SearchType,
|
||||||
IN EFI_PEI_FV_HANDLE FwVolHeader,
|
IN EFI_PEI_FV_HANDLE FwVolHeader,
|
||||||
IN OUT EFI_PEI_FILE_HANDLE *FileHeader
|
IN OUT EFI_PEI_FILE_HANDLE *FileHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Given the input file pointer, search for the next matching section in the
|
Given the input file pointer, search for the next matching section in the
|
||||||
@ -705,8 +683,7 @@ PeiFfsFindSectionData (
|
|||||||
IN EFI_SECTION_TYPE SectionType,
|
IN EFI_SECTION_TYPE SectionType,
|
||||||
IN EFI_PEI_FILE_HANDLE FfsFileHeader,
|
IN EFI_PEI_FILE_HANDLE FfsFileHeader,
|
||||||
IN OUT VOID **SectionData
|
IN OUT VOID **SectionData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
search the firmware volumes by index
|
search the firmware volumes by index
|
||||||
@ -725,8 +702,7 @@ PeiFvFindNextVolume (
|
|||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN UINTN Instance,
|
IN UINTN Instance,
|
||||||
IN OUT EFI_PEI_FV_HANDLE *FwVolHeader
|
IN OUT EFI_PEI_FV_HANDLE *FwVolHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Memory support functions
|
// Memory support functions
|
||||||
@ -748,8 +724,7 @@ InitializeMemoryServices (
|
|||||||
IN PEI_CORE_INSTANCE *PrivateData,
|
IN PEI_CORE_INSTANCE *PrivateData,
|
||||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
||||||
IN PEI_CORE_INSTANCE *OldCoreData
|
IN PEI_CORE_INSTANCE *OldCoreData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -769,8 +744,7 @@ PeiInstallPeiMemory (
|
|||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN EFI_PHYSICAL_ADDRESS MemoryBegin,
|
IN EFI_PHYSICAL_ADDRESS MemoryBegin,
|
||||||
IN UINT64 MemoryLength
|
IN UINT64 MemoryLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -797,8 +771,7 @@ PeiAllocatePages (
|
|||||||
IN EFI_MEMORY_TYPE MemoryType,
|
IN EFI_MEMORY_TYPE MemoryType,
|
||||||
IN UINTN Pages,
|
IN UINTN Pages,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *Memory
|
OUT EFI_PHYSICAL_ADDRESS *Memory
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -820,8 +793,7 @@ PeiAllocatePool (
|
|||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN UINTN Size,
|
IN UINTN Size,
|
||||||
OUT VOID **Buffer
|
OUT VOID **Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -844,8 +816,7 @@ PeiLoadImage (
|
|||||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *EntryPoint,
|
OUT EFI_PHYSICAL_ADDRESS *EntryPoint,
|
||||||
OUT UINT32 *AuthenticationState
|
OUT UINT32 *AuthenticationState
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -872,8 +843,7 @@ PeiReportStatusCode (
|
|||||||
IN UINT32 Instance,
|
IN UINT32 Instance,
|
||||||
IN CONST EFI_GUID *CallerId,
|
IN CONST EFI_GUID *CallerId,
|
||||||
IN CONST EFI_STATUS_CODE_DATA *Data OPTIONAL
|
IN CONST EFI_STATUS_CODE_DATA *Data OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -891,8 +861,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiResetSystem (
|
PeiResetSystem (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -907,8 +876,7 @@ VOID
|
|||||||
PeiInitializeFv (
|
PeiInitializeFv (
|
||||||
IN PEI_CORE_INSTANCE *PrivateData,
|
IN PEI_CORE_INSTANCE *PrivateData,
|
||||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData
|
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process Firmware Volum Information once FvInfoPPI install.
|
Process Firmware Volum Information once FvInfoPPI install.
|
||||||
@ -926,8 +894,7 @@ FirmwareVolmeInfoPpiNotifyCallback (
|
|||||||
IN EFI_PEI_SERVICES **PeiServices,
|
IN EFI_PEI_SERVICES **PeiServices,
|
||||||
IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,
|
IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor,
|
||||||
IN VOID *Ppi
|
IN VOID *Ppi
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -948,8 +915,7 @@ PeiFfsFindFileByName (
|
|||||||
IN CONST EFI_GUID *FileName,
|
IN CONST EFI_GUID *FileName,
|
||||||
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
||||||
OUT EFI_PEI_FILE_HANDLE *FileHandle
|
OUT EFI_PEI_FILE_HANDLE *FileHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -968,8 +934,7 @@ EFIAPI
|
|||||||
PeiFfsGetFileInfo (
|
PeiFfsGetFileInfo (
|
||||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
OUT EFI_FV_FILE_INFO *FileInfo
|
OUT EFI_FV_FILE_INFO *FileInfo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -986,8 +951,7 @@ EFIAPI
|
|||||||
PeiFfsGetVolumeInfo (
|
PeiFfsGetVolumeInfo (
|
||||||
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
IN EFI_PEI_FV_HANDLE VolumeHandle,
|
||||||
OUT EFI_FV_INFO *VolumeInfo
|
OUT EFI_FV_INFO *VolumeInfo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine enable a PEIM to register itself to shadow when PEI Foundation
|
This routine enable a PEIM to register itself to shadow when PEI Foundation
|
||||||
@ -1004,8 +968,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiRegisterForShadow (
|
PeiRegisterForShadow (
|
||||||
IN EFI_PEI_FILE_HANDLE FileHandle
|
IN EFI_PEI_FILE_HANDLE FileHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Given the input file pointer, search for the next matching file in the
|
Given the input file pointer, search for the next matching file in the
|
||||||
@ -1031,8 +994,7 @@ PeiFindFileEx (
|
|||||||
IN EFI_FV_FILETYPE SearchType,
|
IN EFI_FV_FILETYPE SearchType,
|
||||||
IN OUT EFI_PEI_FILE_HANDLE *FileHandle,
|
IN OUT EFI_PEI_FILE_HANDLE *FileHandle,
|
||||||
IN OUT EFI_PEI_FV_HANDLE *AprioriFile OPTIONAL
|
IN OUT EFI_PEI_FV_HANDLE *AprioriFile OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize image service that install PeiLoadFilePpi.
|
Initialize image service that install PeiLoadFilePpi.
|
||||||
@ -1048,8 +1010,7 @@ VOID
|
|||||||
InitializeImageServices (
|
InitializeImageServices (
|
||||||
IN PEI_CORE_INSTANCE *PrivateData,
|
IN PEI_CORE_INSTANCE *PrivateData,
|
||||||
IN PEI_CORE_INSTANCE *OldCoreData
|
IN PEI_CORE_INSTANCE *OldCoreData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get Fv image from the FV type file, then install FV INFO ppi, Build FV hob.
|
Get Fv image from the FV type file, then install FV INFO ppi, Build FV hob.
|
||||||
|
@ -53,8 +53,7 @@ RuntimeDriverCalculateCrc32 (
|
|||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN UINTN DataSize,
|
IN UINTN DataSize,
|
||||||
OUT UINT32 *CrcOut
|
OUT UINT32 *CrcOut
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Determines the new virtual address that is to be used on subsequent memory accesses.
|
Determines the new virtual address that is to be used on subsequent memory accesses.
|
||||||
@ -75,8 +74,7 @@ EFIAPI
|
|||||||
RuntimeDriverConvertPointer (
|
RuntimeDriverConvertPointer (
|
||||||
IN UINTN DebugDisposition,
|
IN UINTN DebugDisposition,
|
||||||
IN OUT VOID **ConvertAddress
|
IN OUT VOID **ConvertAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Changes the runtime addressing mode of EFI firmware from physical to virtual.
|
Changes the runtime addressing mode of EFI firmware from physical to virtual.
|
||||||
@ -104,8 +102,7 @@ RuntimeDriverSetVirtualAddressMap (
|
|||||||
IN UINTN DescriptorSize,
|
IN UINTN DescriptorSize,
|
||||||
IN UINT32 DescriptorVersion,
|
IN UINT32 DescriptorVersion,
|
||||||
IN EFI_MEMORY_DESCRIPTOR *VirtualMap
|
IN EFI_MEMORY_DESCRIPTOR *VirtualMap
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize CRC32 table.
|
Initialize CRC32 table.
|
||||||
@ -114,8 +111,7 @@ RuntimeDriverSetVirtualAddressMap (
|
|||||||
VOID
|
VOID
|
||||||
RuntimeDriverInitializeCrc32Table (
|
RuntimeDriverInitializeCrc32Table (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Install Runtime AP. This code includes the EfiRuntimeLib, but it only
|
Install Runtime AP. This code includes the EfiRuntimeLib, but it only
|
||||||
@ -134,7 +130,6 @@ EFIAPI
|
|||||||
RuntimeDriverInitialize (
|
RuntimeDriverInitialize (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,8 +29,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
SupportCapsuleImage (
|
SupportCapsuleImage (
|
||||||
IN EFI_CAPSULE_HEADER *CapsuleHeader
|
IN EFI_CAPSULE_HEADER *CapsuleHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The firmware implements to process the capsule image.
|
The firmware implements to process the capsule image.
|
||||||
@ -44,8 +43,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
ProcessCapsuleImage (
|
ProcessCapsuleImage (
|
||||||
IN EFI_CAPSULE_HEADER *CapsuleHeader
|
IN EFI_CAPSULE_HEADER *CapsuleHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -35,8 +35,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibCreateHiiDriverHandle (
|
HiiLibCreateHiiDriverHandle (
|
||||||
OUT EFI_HANDLE *DriverHandle
|
OUT EFI_HANDLE *DriverHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Destroy the Driver Handle created by CreateHiiDriverHandle().
|
Destroy the Driver Handle created by CreateHiiDriverHandle().
|
||||||
@ -52,8 +51,7 @@ VOID
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibDestroyHiiDriverHandle (
|
HiiLibDestroyHiiDriverHandle (
|
||||||
IN EFI_HANDLE DriverHandle
|
IN EFI_HANDLE DriverHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,8 +37,7 @@ CreateBannerOpCode (
|
|||||||
IN UINT16 LineNumber,
|
IN UINT16 LineNumber,
|
||||||
IN UINT8 Alignment,
|
IN UINT8 Alignment,
|
||||||
IN OUT EFI_HII_UPDATE_DATA *Data
|
IN OUT EFI_HII_UPDATE_DATA *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function allows the caller to update a form that has
|
This function allows the caller to update a form that has
|
||||||
@ -71,8 +70,7 @@ IfrLibUpdateForm (
|
|||||||
IN UINT16 Label,
|
IN UINT16 Label,
|
||||||
IN BOOLEAN Insert,
|
IN BOOLEAN Insert,
|
||||||
IN EFI_HII_UPDATE_DATA *Data
|
IN EFI_HII_UPDATE_DATA *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Extract formset class for given HII handle.
|
Extract formset class for given HII handle.
|
||||||
@ -100,8 +98,7 @@ IfrLibExtractClassFromHiiHandle (
|
|||||||
OUT UINT16 *Class,
|
OUT UINT16 *Class,
|
||||||
OUT EFI_STRING_ID *FormSetTitle,
|
OUT EFI_STRING_ID *FormSetTitle,
|
||||||
OUT EFI_STRING_ID *FormSetHelp
|
OUT EFI_STRING_ID *FormSetHelp
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Configure the buffer accrording to ConfigBody strings in the format of
|
Configure the buffer accrording to ConfigBody strings in the format of
|
||||||
@ -124,8 +121,7 @@ IfrLibExtractDefault(
|
|||||||
IN UINTN *BufferSize,
|
IN UINTN *BufferSize,
|
||||||
UINTN Number,
|
UINTN Number,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1048,8 +1048,7 @@ EFIAPI
|
|||||||
DevPathVendor (
|
DevPathVendor (
|
||||||
IN OUT POOL_PRINT *Str,
|
IN OUT POOL_PRINT *Str,
|
||||||
IN VOID *DevPath
|
IN VOID *DevPath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Concatenates a formatted unicode string to allocated pool.
|
Concatenates a formatted unicode string to allocated pool.
|
||||||
@ -1070,7 +1069,6 @@ CatPrint (
|
|||||||
IN OUT POOL_PRINT *Str,
|
IN OUT POOL_PRINT *Str,
|
||||||
IN CHAR16 *fmt,
|
IN CHAR16 *fmt,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -59,8 +59,7 @@ VOID
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PlatformBdsInit (
|
PlatformBdsInit (
|
||||||
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
|
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The function will excute with as the platform policy, current policy
|
The function will excute with as the platform policy, current policy
|
||||||
@ -78,8 +77,7 @@ PlatformBdsPolicyBehavior (
|
|||||||
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
|
IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
|
||||||
IN LIST_ENTRY *DriverOptionList,
|
IN LIST_ENTRY *DriverOptionList,
|
||||||
IN LIST_ENTRY *BootOptionList
|
IN LIST_ENTRY *BootOptionList
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Hook point after a boot attempt fails.
|
Hook point after a boot attempt fails.
|
||||||
@ -97,8 +95,7 @@ PlatformBdsBootFail (
|
|||||||
IN EFI_STATUS Status,
|
IN EFI_STATUS Status,
|
||||||
IN CHAR16 *ExitData,
|
IN CHAR16 *ExitData,
|
||||||
IN UINTN ExitDataSize
|
IN UINTN ExitDataSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Hook point after a boot attempt succeeds. We don't expect a boot option to
|
Hook point after a boot attempt succeeds. We don't expect a boot option to
|
||||||
@ -113,8 +110,7 @@ VOID
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PlatformBdsBootSuccess (
|
PlatformBdsBootSuccess (
|
||||||
IN BDS_COMMON_OPTION *Option
|
IN BDS_COMMON_OPTION *Option
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -127,6 +123,5 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PlatformBdsLockNonUpdatableFlash (
|
PlatformBdsLockNonUpdatableFlash (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,8 +26,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiRecoverFirmware (
|
PeiRecoverFirmware (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -26,8 +26,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
AcpiS3ResumeOs (
|
AcpiS3ResumeOs (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -49,8 +49,7 @@ EFI_STATUS
|
|||||||
OUT EFI_CONSOLE_CONTROL_SCREEN_MODE *Mode,
|
OUT EFI_CONSOLE_CONTROL_SCREEN_MODE *Mode,
|
||||||
OUT BOOLEAN *GopUgaExists, OPTIONAL
|
OUT BOOLEAN *GopUgaExists, OPTIONAL
|
||||||
OUT BOOLEAN *StdInLocked OPTIONAL
|
OUT BOOLEAN *StdInLocked OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the current video mode to either text or graphics.
|
Set the current video mode to either text or graphics.
|
||||||
@ -68,8 +67,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE)(
|
(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_SET_MODE)(
|
||||||
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
||||||
OUT EFI_CONSOLE_CONTROL_SCREEN_MODE Mode
|
OUT EFI_CONSOLE_CONTROL_SCREEN_MODE Mode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy the Password and enable state variable and then arm the periodic timer
|
Copy the Password and enable state variable and then arm the periodic timer
|
||||||
@ -84,8 +82,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN)(
|
(EFIAPI *EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN)(
|
||||||
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
||||||
IN CHAR16 *Password
|
IN CHAR16 *Password
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
struct _EFI_CONSOLE_CONTROL_PROTOCOL {
|
struct _EFI_CONSOLE_CONTROL_PROTOCOL {
|
||||||
EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE GetMode;
|
EFI_CONSOLE_CONTROL_PROTOCOL_GET_MODE GetMode;
|
||||||
|
@ -47,8 +47,7 @@ EFI_STATUS
|
|||||||
IN EFI_DISK_INFO_PROTOCOL * This,
|
IN EFI_DISK_INFO_PROTOCOL * This,
|
||||||
IN OUT VOID *InquiryData,
|
IN OUT VOID *InquiryData,
|
||||||
IN OUT UINT32 *IntquiryDataSize
|
IN OUT UINT32 *IntquiryDataSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -71,8 +70,7 @@ EFI_STATUS
|
|||||||
IN EFI_DISK_INFO_PROTOCOL * This,
|
IN EFI_DISK_INFO_PROTOCOL * This,
|
||||||
IN OUT VOID *IdentifyData,
|
IN OUT VOID *IdentifyData,
|
||||||
IN OUT UINT32 *IdentifyDataSize
|
IN OUT UINT32 *IdentifyDataSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -97,8 +95,7 @@ EFI_STATUS
|
|||||||
IN OUT VOID *SenseData,
|
IN OUT VOID *SenseData,
|
||||||
IN OUT UINT32 *SenseDataSize,
|
IN OUT UINT32 *SenseDataSize,
|
||||||
OUT UINT8 *SenseDataNumber
|
OUT UINT8 *SenseDataNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return the results of the Request Sense command to a drive in SenseData.
|
Return the results of the Request Sense command to a drive in SenseData.
|
||||||
@ -118,8 +115,7 @@ EFI_STATUS
|
|||||||
IN EFI_DISK_INFO_PROTOCOL * This,
|
IN EFI_DISK_INFO_PROTOCOL * This,
|
||||||
OUT UINT32 *IdeChannel,
|
OUT UINT32 *IdeChannel,
|
||||||
OUT UINT32 *IdeDevice
|
OUT UINT32 *IdeDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// GUIDs for EFI_DISK_INFO_PROTOCOL.Interface. Defines the format of the
|
// GUIDs for EFI_DISK_INFO_PROTOCOL.Interface. Defines the format of the
|
||||||
|
@ -60,8 +60,7 @@ EFI_STATUS
|
|||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN UINTN *NumBytes,
|
IN UINTN *NumBytes,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Protocol declaration
|
// Protocol declaration
|
||||||
|
@ -49,8 +49,7 @@ EFI_STATUS
|
|||||||
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
||||||
IN EXTENDMEM_COVERAGE_LEVEL Level,
|
IN EXTENDMEM_COVERAGE_LEVEL Level,
|
||||||
OUT BOOLEAN *RequireSoftECCInit
|
OUT BOOLEAN *RequireSoftECCInit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -81,8 +80,7 @@ EFI_STATUS
|
|||||||
OUT UINT64 *TotalMemorySize,
|
OUT UINT64 *TotalMemorySize,
|
||||||
OUT BOOLEAN *ErrorOut,
|
OUT BOOLEAN *ErrorOut,
|
||||||
IN BOOLEAN IfTestAbort
|
IN BOOLEAN IfTestAbort
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -99,8 +97,7 @@ typedef
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_MEMORY_TEST_FINISHED)(
|
(EFIAPI *EFI_MEMORY_TEST_FINISHED)(
|
||||||
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This
|
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Provide capability to test compatible range which used by some sepcial
|
Provide capability to test compatible range which used by some sepcial
|
||||||
@ -120,8 +117,7 @@ EFI_STATUS
|
|||||||
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
||||||
IN EFI_PHYSICAL_ADDRESS StartAddress,
|
IN EFI_PHYSICAL_ADDRESS StartAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
struct _EFI_GENERIC_MEMORY_TEST_PROTOCOL {
|
struct _EFI_GENERIC_MEMORY_TEST_PROTOCOL {
|
||||||
EFI_MEMORY_TEST_INIT MemoryTestInit;
|
EFI_MEMORY_TEST_INIT MemoryTestInit;
|
||||||
|
@ -63,8 +63,7 @@ BdsDeleteAllInvalidLegacyBootOptions (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BdsAddNonExistingLegacyBootOptions (
|
BdsAddNonExistingLegacyBootOptions (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
|
@ -467,8 +467,7 @@ typedef struct _STRING_DEPOSITORY {
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BOpt_FindFileSystem (
|
BOpt_FindFileSystem (
|
||||||
IN BMM_CALLBACK_DATA *CallbackData
|
IN BMM_CALLBACK_DATA *CallbackData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Find files under current directory
|
Find files under current directory
|
||||||
@ -486,8 +485,7 @@ EFI_STATUS
|
|||||||
BOpt_FindFiles (
|
BOpt_FindFiles (
|
||||||
IN BMM_CALLBACK_DATA *CallbackData,
|
IN BMM_CALLBACK_DATA *CallbackData,
|
||||||
IN BM_MENU_ENTRY *MenuEntry
|
IN BM_MENU_ENTRY *MenuEntry
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -503,8 +501,7 @@ BOpt_FindFiles (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BOpt_FindDrivers (
|
BOpt_FindDrivers (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -776,8 +773,7 @@ FreeAllConsoles (
|
|||||||
VOID
|
VOID
|
||||||
ChangeVariableDevicePath (
|
ChangeVariableDevicePath (
|
||||||
IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN OUT EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update the multi-instance device path of Terminal Device based on
|
Update the multi-instance device path of Terminal Device based on
|
||||||
|
@ -79,8 +79,7 @@ BootManagerCallback (
|
|||||||
IN UINT8 Type,
|
IN UINT8 Type,
|
||||||
IN EFI_IFR_TYPE_VALUE *Value,
|
IN EFI_IFR_TYPE_VALUE *Value,
|
||||||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -92,8 +91,7 @@ BootManagerCallback (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializeBootManager (
|
InitializeBootManager (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This funtion invokees Boot Manager. If all devices have not a chance to be connected,
|
This funtion invokees Boot Manager. If all devices have not a chance to be connected,
|
||||||
@ -105,7 +103,6 @@ InitializeBootManager (
|
|||||||
VOID
|
VOID
|
||||||
CallBootManager (
|
CallBootManager (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -98,8 +98,7 @@ DeviceManagerCallback (
|
|||||||
IN UINT8 Type,
|
IN UINT8 Type,
|
||||||
IN EFI_IFR_TYPE_VALUE *Value,
|
IN EFI_IFR_TYPE_VALUE *Value,
|
||||||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -112,8 +111,7 @@ DeviceManagerCallback (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializeDeviceManager (
|
InitializeDeviceManager (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -131,7 +129,6 @@ InitializeDeviceManager (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CallDeviceManager (
|
CallDeviceManager (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -53,8 +53,7 @@ EFI_STATUS
|
|||||||
RegisterHotkey (
|
RegisterHotkey (
|
||||||
IN EFI_KEY_OPTION *KeyOption,
|
IN EFI_KEY_OPTION *KeyOption,
|
||||||
OUT UINT16 *KeyOptionNumber
|
OUT UINT16 *KeyOptionNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -70,8 +69,7 @@ RegisterHotkey (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UnregisterHotkey (
|
UnregisterHotkey (
|
||||||
IN UINT16 KeyOptionNumber
|
IN UINT16 KeyOptionNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,7 +85,6 @@ UnregisterHotkey (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializeHotkeyService (
|
InitializeHotkeyService (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,7 +34,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
VOID
|
VOID
|
||||||
InitializeHwErrRecSupport (
|
InitializeHwErrRecSupport (
|
||||||
IN UINT16 HwErrRecSupportLevel
|
IN UINT16 HwErrRecSupportLevel
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -27,7 +27,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
VOID
|
VOID
|
||||||
InitializeLanguage (
|
InitializeLanguage (
|
||||||
BOOLEAN LangCodesSettingRequired
|
BOOLEAN LangCodesSettingRequired
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif // _LANGUAGE_H_
|
#endif // _LANGUAGE_H_
|
||||||
|
@ -272,8 +272,7 @@ EFIAPI
|
|||||||
ConSplitterDriverEntry (
|
ConSplitterDriverEntry (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Construct console input devices' private data.
|
Construct console input devices' private data.
|
||||||
@ -289,8 +288,7 @@ ConSplitterDriverEntry (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ConSplitterTextInConstructor (
|
ConSplitterTextInConstructor (
|
||||||
TEXT_IN_SPLITTER_PRIVATE_DATA *Private
|
TEXT_IN_SPLITTER_PRIVATE_DATA *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Construct console output devices' private data.
|
Construct console output devices' private data.
|
||||||
@ -305,8 +303,7 @@ ConSplitterTextInConstructor (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ConSplitterTextOutConstructor (
|
ConSplitterTextOutConstructor (
|
||||||
TEXT_OUT_SPLITTER_PRIVATE_DATA *Private
|
TEXT_OUT_SPLITTER_PRIVATE_DATA *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Driver Binding Functions
|
// Driver Binding Functions
|
||||||
@ -330,8 +327,7 @@ ConSplitterConInDriverBindingSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test to see if Simple Pointer protocol could be supported on the ControllerHandle.
|
Test to see if Simple Pointer protocol could be supported on the ControllerHandle.
|
||||||
@ -351,8 +347,7 @@ ConSplitterSimplePointerDriverBindingSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test to see if Console Out Device could be supported on the ControllerHandle.
|
Test to see if Console Out Device could be supported on the ControllerHandle.
|
||||||
@ -372,8 +367,7 @@ ConSplitterConOutDriverBindingSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test to see if Standard Error Device could be supported on the ControllerHandle.
|
Test to see if Standard Error Device could be supported on the ControllerHandle.
|
||||||
@ -393,8 +387,7 @@ ConSplitterStdErrDriverBindingSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start Console In Consplitter on device handle.
|
Start Console In Consplitter on device handle.
|
||||||
@ -414,8 +407,7 @@ ConSplitterConInDriverBindingStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start Simple Pointer Consplitter on device handle.
|
Start Simple Pointer Consplitter on device handle.
|
||||||
@ -435,8 +427,7 @@ ConSplitterSimplePointerDriverBindingStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start Console Out Consplitter on device handle.
|
Start Console Out Consplitter on device handle.
|
||||||
@ -456,8 +447,7 @@ ConSplitterConOutDriverBindingStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start Standard Error Consplitter on device handle.
|
Start Standard Error Consplitter on device handle.
|
||||||
@ -477,8 +467,7 @@ ConSplitterStdErrDriverBindingStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stop Console In ConSplitter on ControllerHandle by closing Console In Devcice GUID.
|
Stop Console In ConSplitter on ControllerHandle by closing Console In Devcice GUID.
|
||||||
@ -500,8 +489,7 @@ ConSplitterConInDriverBindingStop (
|
|||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stop Simple Pointer protocol ConSplitter on ControllerHandle by closing
|
Stop Simple Pointer protocol ConSplitter on ControllerHandle by closing
|
||||||
@ -524,8 +512,7 @@ ConSplitterSimplePointerDriverBindingStop (
|
|||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stop Console Out ConSplitter on ControllerHandle by closing Console Out Devcice GUID.
|
Stop Console Out ConSplitter on ControllerHandle by closing Console Out Devcice GUID.
|
||||||
@ -547,8 +534,7 @@ ConSplitterConOutDriverBindingStop (
|
|||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stop Standard Error ConSplitter on ControllerHandle by closing Standard Error GUID.
|
Stop Standard Error ConSplitter on ControllerHandle by closing Standard Error GUID.
|
||||||
@ -570,8 +556,7 @@ ConSplitterStdErrDriverBindingStop (
|
|||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -592,8 +577,7 @@ ConSplitterAbsolutePointerDriverBindingSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start Absolute Pointer Consplitter on device handle.
|
Start Absolute Pointer Consplitter on device handle.
|
||||||
@ -613,8 +597,7 @@ ConSplitterAbsolutePointerDriverBindingStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stop Absolute Pointer protocol ConSplitter on ControllerHandle by closing
|
Stop Absolute Pointer protocol ConSplitter on ControllerHandle by closing
|
||||||
@ -637,8 +620,7 @@ ConSplitterAbsolutePointerDriverBindingStop (
|
|||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add Absolute Pointer Device in Consplitter Absolute Pointer list.
|
Add Absolute Pointer Device in Consplitter Absolute Pointer list.
|
||||||
@ -654,8 +636,7 @@ EFI_STATUS
|
|||||||
ConSplitterAbsolutePointerAddDevice (
|
ConSplitterAbsolutePointerAddDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_ABSOLUTE_POINTER_PROTOCOL *AbsolutePointer
|
IN EFI_ABSOLUTE_POINTER_PROTOCOL *AbsolutePointer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove Absolute Pointer Device in Consplitter Absolute Pointer list.
|
Remove Absolute Pointer Device in Consplitter Absolute Pointer list.
|
||||||
@ -671,8 +652,7 @@ EFI_STATUS
|
|||||||
ConSplitterAbsolutePointerDeleteDevice (
|
ConSplitterAbsolutePointerDeleteDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_ABSOLUTE_POINTER_PROTOCOL *AbsolutePointer
|
IN EFI_ABSOLUTE_POINTER_PROTOCOL *AbsolutePointer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Absolute Pointer protocol interfaces
|
// Absolute Pointer protocol interfaces
|
||||||
@ -695,8 +675,7 @@ EFIAPI
|
|||||||
ConSplitterAbsolutePointerReset (
|
ConSplitterAbsolutePointerReset (
|
||||||
IN EFI_ABSOLUTE_POINTER_PROTOCOL *This,
|
IN EFI_ABSOLUTE_POINTER_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -719,8 +698,7 @@ EFIAPI
|
|||||||
ConSplitterAbsolutePointerGetState (
|
ConSplitterAbsolutePointerGetState (
|
||||||
IN EFI_ABSOLUTE_POINTER_PROTOCOL *This,
|
IN EFI_ABSOLUTE_POINTER_PROTOCOL *This,
|
||||||
IN OUT EFI_ABSOLUTE_POINTER_STATE *State
|
IN OUT EFI_ABSOLUTE_POINTER_STATE *State
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This event agregates all the events of the pointer devices in the splitter.
|
This event agregates all the events of the pointer devices in the splitter.
|
||||||
@ -740,8 +718,7 @@ EFIAPI
|
|||||||
ConSplitterAbsolutePointerWaitForInput (
|
ConSplitterAbsolutePointerWaitForInput (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a Unicode string that is the user readable name of the driver.
|
Retrieves a Unicode string that is the user readable name of the driver.
|
||||||
@ -1000,8 +977,7 @@ ConSplitterAbsolutePointerComponentNameGetControllerName (
|
|||||||
IN EFI_HANDLE ChildHandle OPTIONAL,
|
IN EFI_HANDLE ChildHandle OPTIONAL,
|
||||||
IN CHAR8 *Language,
|
IN CHAR8 *Language,
|
||||||
OUT CHAR16 **ControllerName
|
OUT CHAR16 **ControllerName
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a Unicode string that is the user readable name of the controller
|
Retrieves a Unicode string that is the user readable name of the controller
|
||||||
@ -1179,8 +1155,7 @@ EFI_STATUS
|
|||||||
ConSplitterTextInAddDevice (
|
ConSplitterTextInAddDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove Simple Text Device in Consplitter Absolute Pointer list.
|
Remove Simple Text Device in Consplitter Absolute Pointer list.
|
||||||
@ -1196,8 +1171,7 @@ EFI_STATUS
|
|||||||
ConSplitterTextInDeleteDevice (
|
ConSplitterTextInDeleteDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *TextIn
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// SimplePointer Constuctor/Destructor functions
|
// SimplePointer Constuctor/Destructor functions
|
||||||
@ -1217,8 +1191,7 @@ EFI_STATUS
|
|||||||
ConSplitterSimplePointerAddDevice (
|
ConSplitterSimplePointerAddDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_SIMPLE_POINTER_PROTOCOL *SimplePointer
|
IN EFI_SIMPLE_POINTER_PROTOCOL *SimplePointer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove Simple Pointer Device in Consplitter Absolute Pointer list.
|
Remove Simple Pointer Device in Consplitter Absolute Pointer list.
|
||||||
@ -1234,8 +1207,7 @@ EFI_STATUS
|
|||||||
ConSplitterSimplePointerDeleteDevice (
|
ConSplitterSimplePointerDeleteDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_SIMPLE_POINTER_PROTOCOL *SimplePointer
|
IN EFI_SIMPLE_POINTER_PROTOCOL *SimplePointer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// TextOut Constuctor/Destructor functions
|
// TextOut Constuctor/Destructor functions
|
||||||
@ -1259,8 +1231,7 @@ ConSplitterTextOutAddDevice (
|
|||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *TextOut,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *TextOut,
|
||||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput,
|
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput,
|
||||||
IN EFI_UGA_DRAW_PROTOCOL *UgaDraw
|
IN EFI_UGA_DRAW_PROTOCOL *UgaDraw
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove Text Out Device in Consplitter Text Out list.
|
Remove Text Out Device in Consplitter Text Out list.
|
||||||
@ -1276,8 +1247,7 @@ EFI_STATUS
|
|||||||
ConSplitterTextOutDeleteDevice (
|
ConSplitterTextOutDeleteDevice (
|
||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *TextOut
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *TextOut
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// TextIn I/O Functions
|
// TextIn I/O Functions
|
||||||
@ -1299,8 +1269,7 @@ EFIAPI
|
|||||||
ConSplitterTextInReset (
|
ConSplitterTextInReset (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the next keystroke from the input device. The WaitForKey Event can
|
Reads the next keystroke from the input device. The WaitForKey Event can
|
||||||
@ -1321,8 +1290,7 @@ EFIAPI
|
|||||||
ConSplitterTextInReadKeyStroke (
|
ConSplitterTextInReadKeyStroke (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
||||||
OUT EFI_INPUT_KEY *Key
|
OUT EFI_INPUT_KEY *Key
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add Text Input Ex Device in Consplitter Text Input Ex list.
|
Add Text Input Ex Device in Consplitter Text Input Ex list.
|
||||||
@ -1338,8 +1306,7 @@ EFI_STATUS
|
|||||||
ConSplitterTextInExAddDevice (
|
ConSplitterTextInExAddDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInEx
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInEx
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove Simple Text Ex Device in Consplitter Absolute Pointer list.
|
Remove Simple Text Ex Device in Consplitter Absolute Pointer list.
|
||||||
@ -1355,8 +1322,7 @@ EFI_STATUS
|
|||||||
ConSplitterTextInExDeleteDevice (
|
ConSplitterTextInExDeleteDevice (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInEx
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *TextInEx
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Simple Text Input Ex protocol function prototypes
|
// Simple Text Input Ex protocol function prototypes
|
||||||
@ -1379,8 +1345,7 @@ EFIAPI
|
|||||||
ConSplitterTextInResetEx (
|
ConSplitterTextInResetEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1404,8 +1369,7 @@ EFIAPI
|
|||||||
ConSplitterTextInReadKeyStrokeEx (
|
ConSplitterTextInReadKeyStrokeEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
OUT EFI_KEY_DATA *KeyData
|
OUT EFI_KEY_DATA *KeyData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1428,8 +1392,7 @@ EFIAPI
|
|||||||
ConSplitterTextInSetState (
|
ConSplitterTextInSetState (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1458,8 +1421,7 @@ ConSplitterTextInRegisterKeyNotify (
|
|||||||
IN EFI_KEY_DATA *KeyData,
|
IN EFI_KEY_DATA *KeyData,
|
||||||
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
||||||
OUT EFI_HANDLE *NotifyHandle
|
OUT EFI_HANDLE *NotifyHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1480,8 +1442,7 @@ EFIAPI
|
|||||||
ConSplitterTextInUnregisterKeyNotify (
|
ConSplitterTextInUnregisterKeyNotify (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_HANDLE NotificationHandle
|
IN EFI_HANDLE NotificationHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This event agregates all the events of the ConIn devices in the spliter.
|
This event agregates all the events of the ConIn devices in the spliter.
|
||||||
@ -1501,8 +1462,7 @@ EFIAPI
|
|||||||
ConSplitterTextInWaitForKey (
|
ConSplitterTextInWaitForKey (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
/**
|
/**
|
||||||
Return TRUE if StdIn is locked. The ConIn device on the virtual handle is
|
Return TRUE if StdIn is locked. The ConIn device on the virtual handle is
|
||||||
the only device locked.
|
the only device locked.
|
||||||
@ -1516,8 +1476,7 @@ ConSplitterTextInWaitForKey (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
ConSpliterConssoleControlStdInLocked (
|
ConSpliterConssoleControlStdInLocked (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
/**
|
/**
|
||||||
This timer event will fire when StdIn is locked. It will check the key
|
This timer event will fire when StdIn is locked. It will check the key
|
||||||
sequence on StdIn to see if it matches the password. Any error in the
|
sequence on StdIn to see if it matches the password. Any error in the
|
||||||
@ -1536,8 +1495,7 @@ EFIAPI
|
|||||||
ConSpliterConsoleControlLockStdInEvent (
|
ConSpliterConsoleControlLockStdInEvent (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
If Password is NULL unlock the password state variable and set the event
|
If Password is NULL unlock the password state variable and set the event
|
||||||
@ -1557,8 +1515,7 @@ EFIAPI
|
|||||||
ConSpliterConsoleControlLockStdIn (
|
ConSpliterConsoleControlLockStdIn (
|
||||||
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
||||||
IN CHAR16 *Password
|
IN CHAR16 *Password
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the next keystroke from the input device. The WaitForKey Event can
|
Reads the next keystroke from the input device. The WaitForKey Event can
|
||||||
@ -1578,8 +1535,7 @@ EFIAPI
|
|||||||
ConSplitterTextInPrivateReadKeyStroke (
|
ConSplitterTextInPrivateReadKeyStroke (
|
||||||
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_IN_SPLITTER_PRIVATE_DATA *Private,
|
||||||
OUT EFI_INPUT_KEY *Key
|
OUT EFI_INPUT_KEY *Key
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset the input device and optionaly run diagnostics
|
Reset the input device and optionaly run diagnostics
|
||||||
@ -1597,8 +1553,7 @@ EFIAPI
|
|||||||
ConSplitterSimplePointerReset (
|
ConSplitterSimplePointerReset (
|
||||||
IN EFI_SIMPLE_POINTER_PROTOCOL *This,
|
IN EFI_SIMPLE_POINTER_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the next keystroke from the input device. The WaitForKey Event can
|
Reads the next keystroke from the input device. The WaitForKey Event can
|
||||||
@ -1619,8 +1574,7 @@ EFIAPI
|
|||||||
ConSplitterSimplePointerGetState (
|
ConSplitterSimplePointerGetState (
|
||||||
IN EFI_SIMPLE_POINTER_PROTOCOL *This,
|
IN EFI_SIMPLE_POINTER_PROTOCOL *This,
|
||||||
IN OUT EFI_SIMPLE_POINTER_STATE *State
|
IN OUT EFI_SIMPLE_POINTER_STATE *State
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This event agregates all the events of the ConIn devices in the spliter.
|
This event agregates all the events of the ConIn devices in the spliter.
|
||||||
@ -1640,8 +1594,7 @@ EFIAPI
|
|||||||
ConSplitterSimplePointerWaitForInput (
|
ConSplitterSimplePointerWaitForInput (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// TextOut I/O Functions
|
// TextOut I/O Functions
|
||||||
@ -1664,8 +1617,7 @@ EFIAPI
|
|||||||
ConSplitterTextOutReset (
|
ConSplitterTextOutReset (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write a Unicode string to the output device.
|
Write a Unicode string to the output device.
|
||||||
@ -1691,8 +1643,7 @@ EFIAPI
|
|||||||
ConSplitterTextOutOutputString (
|
ConSplitterTextOutOutputString (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Verifies that all characters in a Unicode string can be output to the
|
Verifies that all characters in a Unicode string can be output to the
|
||||||
@ -1714,8 +1665,7 @@ EFIAPI
|
|||||||
ConSplitterTextOutTestString (
|
ConSplitterTextOutTestString (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns information for an available text mode that the output device(s)
|
Returns information for an available text mode that the output device(s)
|
||||||
@ -1741,8 +1691,7 @@ ConSplitterTextOutQueryMode (
|
|||||||
IN UINTN ModeNumber,
|
IN UINTN ModeNumber,
|
||||||
OUT UINTN *Columns,
|
OUT UINTN *Columns,
|
||||||
OUT UINTN *Rows
|
OUT UINTN *Rows
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the output device(s) to a specified mode.
|
Sets the output device(s) to a specified mode.
|
||||||
@ -1761,8 +1710,7 @@ EFIAPI
|
|||||||
ConSplitterTextOutSetMode (
|
ConSplitterTextOutSetMode (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN ModeNumber
|
IN UINTN ModeNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the background and foreground colors for the OutputString () and
|
Sets the background and foreground colors for the OutputString () and
|
||||||
@ -1786,8 +1734,7 @@ EFIAPI
|
|||||||
ConSplitterTextOutSetAttribute (
|
ConSplitterTextOutSetAttribute (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN Attribute
|
IN UINTN Attribute
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clears the output device(s) display to the currently selected background
|
Clears the output device(s) display to the currently selected background
|
||||||
@ -1805,8 +1752,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
ConSplitterTextOutClearScreen (
|
ConSplitterTextOutClearScreen (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the current coordinates of the cursor position
|
Sets the current coordinates of the cursor position
|
||||||
@ -1833,8 +1779,7 @@ ConSplitterTextOutSetCursorPosition (
|
|||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN Column,
|
IN UINTN Column,
|
||||||
IN UINTN Row
|
IN UINTN Row
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1856,8 +1801,7 @@ EFIAPI
|
|||||||
ConSplitterTextOutEnableCursor (
|
ConSplitterTextOutEnableCursor (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN Visible
|
IN BOOLEAN Visible
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Take the passed in Buffer of size SizeOfCount and grow the buffer
|
Take the passed in Buffer of size SizeOfCount and grow the buffer
|
||||||
@ -1879,8 +1823,7 @@ ConSplitterGrowBuffer (
|
|||||||
IN UINTN SizeOfCount,
|
IN UINTN SizeOfCount,
|
||||||
IN UINTN *Count,
|
IN UINTN *Count,
|
||||||
IN OUT VOID **Buffer
|
IN OUT VOID **Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return the current video mode information. Also returns info about existence
|
Return the current video mode information. Also returns info about existence
|
||||||
@ -1903,8 +1846,7 @@ ConSpliterConsoleControlGetMode (
|
|||||||
OUT EFI_CONSOLE_CONTROL_SCREEN_MODE *Mode,
|
OUT EFI_CONSOLE_CONTROL_SCREEN_MODE *Mode,
|
||||||
OUT BOOLEAN *GopExists,
|
OUT BOOLEAN *GopExists,
|
||||||
OUT BOOLEAN *StdInLocked
|
OUT BOOLEAN *StdInLocked
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the current mode to either text or graphics. Graphics is
|
Set the current mode to either text or graphics. Graphics is
|
||||||
@ -1923,8 +1865,7 @@ EFIAPI
|
|||||||
ConSpliterConsoleControlSetMode (
|
ConSpliterConsoleControlSetMode (
|
||||||
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
IN EFI_CONSOLE_CONTROL_PROTOCOL *This,
|
||||||
IN EFI_CONSOLE_CONTROL_SCREEN_MODE Mode
|
IN EFI_CONSOLE_CONTROL_SCREEN_MODE Mode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return the current video mode information.
|
Return the current video mode information.
|
||||||
@ -1951,8 +1892,7 @@ ConSpliterGraphicsOutputQueryMode (
|
|||||||
IN UINT32 ModeNumber,
|
IN UINT32 ModeNumber,
|
||||||
OUT UINTN *SizeOfInfo,
|
OUT UINTN *SizeOfInfo,
|
||||||
OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **Info
|
OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **Info
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Graphics output protocol interface to set video mode.
|
Graphics output protocol interface to set video mode.
|
||||||
@ -1971,8 +1911,7 @@ EFIAPI
|
|||||||
ConSpliterGraphicsOutputSetMode (
|
ConSpliterGraphicsOutputSetMode (
|
||||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL * This,
|
IN EFI_GRAPHICS_OUTPUT_PROTOCOL * This,
|
||||||
IN UINT32 ModeNumber
|
IN UINT32 ModeNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The following table defines actions for BltOperations.
|
The following table defines actions for BltOperations.
|
||||||
@ -2033,8 +1972,7 @@ ConSpliterGraphicsOutputBlt (
|
|||||||
IN UINTN Width,
|
IN UINTN Width,
|
||||||
IN UINTN Height,
|
IN UINTN Height,
|
||||||
IN UINTN Delta OPTIONAL
|
IN UINTN Delta OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write data from the buffer to video display based on Graphics Output setting.
|
Write data from the buffer to video display based on Graphics Output setting.
|
||||||
@ -2055,8 +1993,7 @@ DevNullGopSync (
|
|||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput,
|
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput,
|
||||||
IN EFI_UGA_DRAW_PROTOCOL *UgaDraw
|
IN EFI_UGA_DRAW_PROTOCOL *UgaDraw
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return the current video mode information.
|
Return the current video mode information.
|
||||||
@ -2080,8 +2017,7 @@ ConSpliterUgaDrawGetMode (
|
|||||||
OUT UINT32 *VerticalResolution,
|
OUT UINT32 *VerticalResolution,
|
||||||
OUT UINT32 *ColorDepth,
|
OUT UINT32 *ColorDepth,
|
||||||
OUT UINT32 *RefreshRate
|
OUT UINT32 *RefreshRate
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Return the current video mode information.
|
Return the current video mode information.
|
||||||
@ -2105,8 +2041,7 @@ ConSpliterUgaDrawSetMode (
|
|||||||
IN UINT32 VerticalResolution,
|
IN UINT32 VerticalResolution,
|
||||||
IN UINT32 ColorDepth,
|
IN UINT32 ColorDepth,
|
||||||
IN UINT32 RefreshRate
|
IN UINT32 RefreshRate
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The following table defines actions for BltOperations.
|
The following table defines actions for BltOperations.
|
||||||
@ -2167,8 +2102,7 @@ ConSpliterUgaDrawBlt (
|
|||||||
IN UINTN Width,
|
IN UINTN Width,
|
||||||
IN UINTN Height,
|
IN UINTN Height,
|
||||||
IN UINTN Delta OPTIONAL
|
IN UINTN Delta OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write data from the buffer to video display based on UGA Draw setting.
|
Write data from the buffer to video display based on UGA Draw setting.
|
||||||
@ -2188,8 +2122,7 @@ DevNullUgaSync (
|
|||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput,
|
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput,
|
||||||
IN EFI_UGA_DRAW_PROTOCOL *UgaDraw
|
IN EFI_UGA_DRAW_PROTOCOL *UgaDraw
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write a Unicode string to the output device.
|
Write a Unicode string to the output device.
|
||||||
@ -2215,8 +2148,7 @@ EFI_STATUS
|
|||||||
DevNullTextOutOutputString (
|
DevNullTextOutOutputString (
|
||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the output device(s) to a specified mode.
|
Sets the output device(s) to a specified mode.
|
||||||
@ -2235,8 +2167,7 @@ EFI_STATUS
|
|||||||
DevNullTextOutSetMode (
|
DevNullTextOutSetMode (
|
||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN UINTN ModeNumber
|
IN UINTN ModeNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clears the output device(s) display to the currently selected background
|
Clears the output device(s) display to the currently selected background
|
||||||
@ -2253,8 +2184,7 @@ DevNullTextOutSetMode (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DevNullTextOutClearScreen (
|
DevNullTextOutClearScreen (
|
||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the current coordinates of the cursor position.
|
Sets the current coordinates of the cursor position.
|
||||||
@ -2278,8 +2208,7 @@ DevNullTextOutSetCursorPosition (
|
|||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN UINTN Column,
|
IN UINTN Column,
|
||||||
IN UINTN Row
|
IN UINTN Row
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements SIMPLE_TEXT_OUTPUT.EnableCursor().
|
Implements SIMPLE_TEXT_OUTPUT.EnableCursor().
|
||||||
@ -2296,8 +2225,7 @@ EFI_STATUS
|
|||||||
DevNullTextOutEnableCursor (
|
DevNullTextOutEnableCursor (
|
||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private,
|
||||||
IN BOOLEAN Visible
|
IN BOOLEAN Visible
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Take the DevNull TextOut device and update the Simple Text Out on every
|
Take the DevNull TextOut device and update the Simple Text Out on every
|
||||||
@ -2312,7 +2240,6 @@ DevNullTextOutEnableCursor (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DevNullSyncStdOut (
|
DevNullSyncStdOut (
|
||||||
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private
|
IN TEXT_OUT_SPLITTER_PRIVATE_DATA *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -525,8 +525,7 @@ GraphicsConsoleControllerDriverStop (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EfiLocateHiiProtocol (
|
EfiLocateHiiProtocol (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -181,8 +181,7 @@ EFIAPI
|
|||||||
InitializeTerminal (
|
InitializeTerminal (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_INPUT_PROTOCOL.Reset().
|
Implements EFI_SIMPLE_TEXT_INPUT_PROTOCOL.Reset().
|
||||||
@ -201,8 +200,7 @@ EFIAPI
|
|||||||
TerminalConInReset (
|
TerminalConInReset (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -223,8 +221,7 @@ EFIAPI
|
|||||||
TerminalConInReadKeyStroke (
|
TerminalConInReadKeyStroke (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This,
|
||||||
OUT EFI_INPUT_KEY *Key
|
OUT EFI_INPUT_KEY *Key
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check if the key already has been registered.
|
Check if the key already has been registered.
|
||||||
@ -244,8 +241,7 @@ BOOLEAN
|
|||||||
IsKeyRegistered (
|
IsKeyRegistered (
|
||||||
IN EFI_KEY_DATA *RegsiteredData,
|
IN EFI_KEY_DATA *RegsiteredData,
|
||||||
IN EFI_KEY_DATA *InputData
|
IN EFI_KEY_DATA *InputData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Event notification function for EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.WaitForKeyEx event
|
Event notification function for EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.WaitForKeyEx event
|
||||||
@ -262,8 +258,7 @@ EFIAPI
|
|||||||
TerminalConInWaitForKeyEx (
|
TerminalConInWaitForKeyEx (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Simple Text Input Ex protocol prototypes
|
// Simple Text Input Ex protocol prototypes
|
||||||
@ -285,8 +280,7 @@ EFIAPI
|
|||||||
TerminalConInResetEx (
|
TerminalConInResetEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the next keystroke from the input device. The WaitForKey Event can
|
Reads the next keystroke from the input device. The WaitForKey Event can
|
||||||
@ -309,8 +303,7 @@ EFIAPI
|
|||||||
TerminalConInReadKeyStrokeEx (
|
TerminalConInReadKeyStrokeEx (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
OUT EFI_KEY_DATA *KeyData
|
OUT EFI_KEY_DATA *KeyData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set certain state for the input device.
|
Set certain state for the input device.
|
||||||
@ -332,8 +325,7 @@ EFIAPI
|
|||||||
TerminalConInSetState (
|
TerminalConInSetState (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
IN EFI_KEY_TOGGLE_STATE *KeyToggleState
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Register a notification function for a particular keystroke for the input device.
|
Register a notification function for a particular keystroke for the input device.
|
||||||
@ -361,8 +353,7 @@ TerminalConInRegisterKeyNotify (
|
|||||||
IN EFI_KEY_DATA *KeyData,
|
IN EFI_KEY_DATA *KeyData,
|
||||||
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
||||||
OUT EFI_HANDLE *NotifyHandle
|
OUT EFI_HANDLE *NotifyHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove a registered notification function from a particular keystroke.
|
Remove a registered notification function from a particular keystroke.
|
||||||
@ -382,8 +373,7 @@ EFIAPI
|
|||||||
TerminalConInUnregisterKeyNotify (
|
TerminalConInUnregisterKeyNotify (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_HANDLE NotificationHandle
|
IN EFI_HANDLE NotificationHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Event notification function for EFI_SIMPLE_TEXT_INPUT_PROTOCOL.WaitForKey event
|
Event notification function for EFI_SIMPLE_TEXT_INPUT_PROTOCOL.WaitForKey event
|
||||||
@ -400,8 +390,7 @@ EFIAPI
|
|||||||
TerminalConInWaitForKey (
|
TerminalConInWaitForKey (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset().
|
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset().
|
||||||
@ -423,8 +412,7 @@ EFIAPI
|
|||||||
TerminalConOutReset (
|
TerminalConOutReset (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString().
|
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString().
|
||||||
@ -447,8 +435,7 @@ EFIAPI
|
|||||||
TerminalConOutOutputString (
|
TerminalConOutOutputString (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.TestString().
|
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.TestString().
|
||||||
@ -469,8 +456,7 @@ EFIAPI
|
|||||||
TerminalConOutTestString (
|
TerminalConOutTestString (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.QueryMode().
|
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.QueryMode().
|
||||||
@ -496,8 +482,7 @@ TerminalConOutQueryMode (
|
|||||||
IN UINTN ModeNumber,
|
IN UINTN ModeNumber,
|
||||||
OUT UINTN *Columns,
|
OUT UINTN *Columns,
|
||||||
OUT UINTN *Rows
|
OUT UINTN *Rows
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUT.SetMode().
|
Implements EFI_SIMPLE_TEXT_OUT.SetMode().
|
||||||
@ -518,8 +503,7 @@ EFIAPI
|
|||||||
TerminalConOutSetMode (
|
TerminalConOutSetMode (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN ModeNumber
|
IN UINTN ModeNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute().
|
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute().
|
||||||
@ -538,8 +522,7 @@ EFIAPI
|
|||||||
TerminalConOutSetAttribute (
|
TerminalConOutSetAttribute (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN Attribute
|
IN UINTN Attribute
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen().
|
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen().
|
||||||
@ -557,8 +540,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
TerminalConOutClearScreen (
|
TerminalConOutClearScreen (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetCursorPosition().
|
Implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetCursorPosition().
|
||||||
@ -579,8 +561,7 @@ TerminalConOutSetCursorPosition (
|
|||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN UINTN Column,
|
IN UINTN Column,
|
||||||
IN UINTN Row
|
IN UINTN Row
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Implements SIMPLE_TEXT_OUTPUT.EnableCursor().
|
Implements SIMPLE_TEXT_OUTPUT.EnableCursor().
|
||||||
@ -599,8 +580,7 @@ EFIAPI
|
|||||||
TerminalConOutEnableCursor (
|
TerminalConOutEnableCursor (
|
||||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
||||||
IN BOOLEAN Visible
|
IN BOOLEAN Visible
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Test to see if this driver supports Controller.
|
Test to see if this driver supports Controller.
|
||||||
@ -816,8 +796,7 @@ TerminalComponentNameGetControllerName (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
TerminalConInCheckForKey (
|
TerminalConInCheckForKey (
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update terminal device path in Console Device Environment Variables.
|
Update terminal device path in Console Device Environment Variables.
|
||||||
@ -832,8 +811,7 @@ VOID
|
|||||||
TerminalUpdateConsoleDevVariable (
|
TerminalUpdateConsoleDevVariable (
|
||||||
IN CHAR16 *VariableName,
|
IN CHAR16 *VariableName,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove console device variable.
|
Remove console device variable.
|
||||||
@ -848,8 +826,7 @@ VOID
|
|||||||
TerminalRemoveConsoleDevVariable (
|
TerminalRemoveConsoleDevVariable (
|
||||||
IN CHAR16 *VariableName,
|
IN CHAR16 *VariableName,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read the EFI variable (VendorGuid/Name) and return a dynamically allocated
|
Read the EFI variable (VendorGuid/Name) and return a dynamically allocated
|
||||||
@ -869,8 +846,7 @@ TerminalGetVariableAndSize (
|
|||||||
IN CHAR16 *Name,
|
IN CHAR16 *Name,
|
||||||
IN EFI_GUID *VendorGuid,
|
IN EFI_GUID *VendorGuid,
|
||||||
OUT UINTN *VariableSize
|
OUT UINTN *VariableSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Build termial device path according to terminal type.
|
Build termial device path according to terminal type.
|
||||||
@ -889,8 +865,7 @@ SetTerminalDevicePath (
|
|||||||
IN UINT8 TerminalType,
|
IN UINT8 TerminalType,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath,
|
||||||
OUT EFI_DEVICE_PATH_PROTOCOL **TerminalDevicePath
|
OUT EFI_DEVICE_PATH_PROTOCOL **TerminalDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize the Raw Data FIFO.
|
Initialize the Raw Data FIFO.
|
||||||
@ -903,8 +878,7 @@ SetTerminalDevicePath (
|
|||||||
VOID
|
VOID
|
||||||
InitializeRawFiFo (
|
InitializeRawFiFo (
|
||||||
IN TERMINAL_DEV *TerminalDevice
|
IN TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize the Unicode FIFO.
|
Initialize the Unicode FIFO.
|
||||||
@ -917,8 +891,7 @@ InitializeRawFiFo (
|
|||||||
VOID
|
VOID
|
||||||
InitializeUnicodeFiFo (
|
InitializeUnicodeFiFo (
|
||||||
IN TERMINAL_DEV *TerminalDevice
|
IN TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize the EFI Key FIFO.
|
Initialize the EFI Key FIFO.
|
||||||
@ -931,8 +904,7 @@ InitializeUnicodeFiFo (
|
|||||||
VOID
|
VOID
|
||||||
InitializeEfiKeyFiFo (
|
InitializeEfiKeyFiFo (
|
||||||
IN TERMINAL_DEV *TerminalDevice
|
IN TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get one key out of serial buffer.
|
Get one key out of serial buffer.
|
||||||
@ -950,8 +922,7 @@ EFI_STATUS
|
|||||||
GetOneKeyFromSerial (
|
GetOneKeyFromSerial (
|
||||||
EFI_SERIAL_IO_PROTOCOL *SerialIo,
|
EFI_SERIAL_IO_PROTOCOL *SerialIo,
|
||||||
UINT8 *Input
|
UINT8 *Input
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Insert one byte raw data into the Raw Data FIFO.
|
Insert one byte raw data into the Raw Data FIFO.
|
||||||
@ -968,8 +939,7 @@ BOOLEAN
|
|||||||
RawFiFoInsertOneKey (
|
RawFiFoInsertOneKey (
|
||||||
TERMINAL_DEV *TerminalDevice,
|
TERMINAL_DEV *TerminalDevice,
|
||||||
UINT8 Input
|
UINT8 Input
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove one pre-fetched key out of the Raw Data FIFO.
|
Remove one pre-fetched key out of the Raw Data FIFO.
|
||||||
@ -985,8 +955,7 @@ BOOLEAN
|
|||||||
RawFiFoRemoveOneKey (
|
RawFiFoRemoveOneKey (
|
||||||
TERMINAL_DEV *TerminalDevice,
|
TERMINAL_DEV *TerminalDevice,
|
||||||
UINT8 *Output
|
UINT8 *Output
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clarify whether Raw Data FIFO buffer is empty.
|
Clarify whether Raw Data FIFO buffer is empty.
|
||||||
@ -1000,8 +969,7 @@ RawFiFoRemoveOneKey (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsRawFiFoEmpty (
|
IsRawFiFoEmpty (
|
||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clarify whether Raw Data FIFO buffer is full.
|
Clarify whether Raw Data FIFO buffer is full.
|
||||||
@ -1015,8 +983,7 @@ IsRawFiFoEmpty (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsRawFiFoFull (
|
IsRawFiFoFull (
|
||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Insert one pre-fetched key into the FIFO buffer.
|
Insert one pre-fetched key into the FIFO buffer.
|
||||||
@ -1033,8 +1000,7 @@ BOOLEAN
|
|||||||
EfiKeyFiFoInsertOneKey (
|
EfiKeyFiFoInsertOneKey (
|
||||||
TERMINAL_DEV *TerminalDevice,
|
TERMINAL_DEV *TerminalDevice,
|
||||||
EFI_INPUT_KEY Key
|
EFI_INPUT_KEY Key
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove one pre-fetched key out of the FIFO buffer.
|
Remove one pre-fetched key out of the FIFO buffer.
|
||||||
@ -1050,8 +1016,7 @@ BOOLEAN
|
|||||||
EfiKeyFiFoRemoveOneKey (
|
EfiKeyFiFoRemoveOneKey (
|
||||||
TERMINAL_DEV *TerminalDevice,
|
TERMINAL_DEV *TerminalDevice,
|
||||||
EFI_INPUT_KEY *Output
|
EFI_INPUT_KEY *Output
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clarify whether FIFO buffer is empty.
|
Clarify whether FIFO buffer is empty.
|
||||||
@ -1065,8 +1030,7 @@ EfiKeyFiFoRemoveOneKey (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsEfiKeyFiFoEmpty (
|
IsEfiKeyFiFoEmpty (
|
||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clarify whether FIFO buffer is full.
|
Clarify whether FIFO buffer is full.
|
||||||
@ -1080,8 +1044,7 @@ IsEfiKeyFiFoEmpty (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsEfiKeyFiFoFull (
|
IsEfiKeyFiFoFull (
|
||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Insert one pre-fetched key into the Unicode FIFO buffer.
|
Insert one pre-fetched key into the Unicode FIFO buffer.
|
||||||
@ -1098,8 +1061,7 @@ BOOLEAN
|
|||||||
UnicodeFiFoInsertOneKey (
|
UnicodeFiFoInsertOneKey (
|
||||||
TERMINAL_DEV *TerminalDevice,
|
TERMINAL_DEV *TerminalDevice,
|
||||||
UINT16 Input
|
UINT16 Input
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove one pre-fetched key out of the Unicode FIFO buffer.
|
Remove one pre-fetched key out of the Unicode FIFO buffer.
|
||||||
@ -1115,8 +1077,7 @@ BOOLEAN
|
|||||||
UnicodeFiFoRemoveOneKey (
|
UnicodeFiFoRemoveOneKey (
|
||||||
TERMINAL_DEV *TerminalDevice,
|
TERMINAL_DEV *TerminalDevice,
|
||||||
UINT16 *Output
|
UINT16 *Output
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clarify whether Unicode FIFO buffer is empty.
|
Clarify whether Unicode FIFO buffer is empty.
|
||||||
@ -1130,8 +1091,7 @@ UnicodeFiFoRemoveOneKey (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsUnicodeFiFoEmpty (
|
IsUnicodeFiFoEmpty (
|
||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clarify whether Unicode FIFO buffer is full.
|
Clarify whether Unicode FIFO buffer is full.
|
||||||
@ -1145,8 +1105,7 @@ IsUnicodeFiFoEmpty (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsUnicodeFiFoFull (
|
IsUnicodeFiFoFull (
|
||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Count Unicode FIFO buffer.
|
Count Unicode FIFO buffer.
|
||||||
@ -1159,8 +1118,7 @@ IsUnicodeFiFoFull (
|
|||||||
UINT8
|
UINT8
|
||||||
UnicodeFiFoGetKeyCount (
|
UnicodeFiFoGetKeyCount (
|
||||||
TERMINAL_DEV *TerminalDevice
|
TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Translate raw data into Unicode (according to different encode), and
|
Translate raw data into Unicode (according to different encode), and
|
||||||
@ -1174,8 +1132,7 @@ UnicodeFiFoGetKeyCount (
|
|||||||
VOID
|
VOID
|
||||||
TranslateRawDataToEfiKey (
|
TranslateRawDataToEfiKey (
|
||||||
IN TERMINAL_DEV *TerminalDevice
|
IN TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// internal functions for PC ANSI
|
// internal functions for PC ANSI
|
||||||
@ -1193,8 +1150,7 @@ TranslateRawDataToEfiKey (
|
|||||||
VOID
|
VOID
|
||||||
AnsiRawDataToUnicode (
|
AnsiRawDataToUnicode (
|
||||||
IN TERMINAL_DEV *TerminalDevice
|
IN TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Converts a stream of Unicode characters from a terminal input device into EFI Keys that
|
Converts a stream of Unicode characters from a terminal input device into EFI Keys that
|
||||||
@ -1264,8 +1220,7 @@ AnsiRawDataToUnicode (
|
|||||||
VOID
|
VOID
|
||||||
UnicodeToEfiKey (
|
UnicodeToEfiKey (
|
||||||
IN TERMINAL_DEV *TerminalDevice
|
IN TERMINAL_DEV *TerminalDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check if input string is valid Ascii string, valid EFI control characters
|
Check if input string is valid Ascii string, valid EFI control characters
|
||||||
@ -1282,8 +1237,7 @@ EFI_STATUS
|
|||||||
AnsiTestString (
|
AnsiTestString (
|
||||||
IN TERMINAL_DEV *TerminalDevice,
|
IN TERMINAL_DEV *TerminalDevice,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// internal functions for VTUTF8
|
// internal functions for VTUTF8
|
||||||
@ -1301,8 +1255,7 @@ AnsiTestString (
|
|||||||
VOID
|
VOID
|
||||||
VTUTF8RawDataToUnicode (
|
VTUTF8RawDataToUnicode (
|
||||||
IN TERMINAL_DEV *VtUtf8Device
|
IN TERMINAL_DEV *VtUtf8Device
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check if input string is valid VT-UTF8 string.
|
Check if input string is valid VT-UTF8 string.
|
||||||
@ -1317,8 +1270,7 @@ EFI_STATUS
|
|||||||
VTUTF8TestString (
|
VTUTF8TestString (
|
||||||
IN TERMINAL_DEV *TerminalDevice,
|
IN TERMINAL_DEV *TerminalDevice,
|
||||||
IN CHAR16 *WString
|
IN CHAR16 *WString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Translate one Unicode character into VT-UTF8 characters.
|
Translate one Unicode character into VT-UTF8 characters.
|
||||||
@ -1343,8 +1295,7 @@ UnicodeToUtf8 (
|
|||||||
IN CHAR16 Unicode,
|
IN CHAR16 Unicode,
|
||||||
OUT UTF8_CHAR *Utf8Char,
|
OUT UTF8_CHAR *Utf8Char,
|
||||||
OUT UINT8 *ValidBytes
|
OUT UINT8 *ValidBytes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get one valid VT-UTF8 characters set from Raw Data FIFO.
|
Get one valid VT-UTF8 characters set from Raw Data FIFO.
|
||||||
@ -1362,8 +1313,7 @@ GetOneValidUtf8Char (
|
|||||||
IN TERMINAL_DEV *Utf8Device,
|
IN TERMINAL_DEV *Utf8Device,
|
||||||
OUT UTF8_CHAR *Utf8Char,
|
OUT UTF8_CHAR *Utf8Char,
|
||||||
OUT UINT8 *ValidBytes
|
OUT UINT8 *ValidBytes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Translate VT-UTF8 characters into one Unicode character.
|
Translate VT-UTF8 characters into one Unicode character.
|
||||||
@ -1387,8 +1337,7 @@ Utf8ToUnicode (
|
|||||||
IN UTF8_CHAR Utf8Char,
|
IN UTF8_CHAR Utf8Char,
|
||||||
IN UINT8 ValidBytes,
|
IN UINT8 ValidBytes,
|
||||||
OUT CHAR16 *UnicodeChar
|
OUT CHAR16 *UnicodeChar
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// functions for boxdraw unicode
|
// functions for boxdraw unicode
|
||||||
@ -1411,8 +1360,7 @@ TerminalIsValidTextGraphics (
|
|||||||
IN CHAR16 Graphic,
|
IN CHAR16 Graphic,
|
||||||
OUT CHAR8 *PcAnsi, OPTIONAL
|
OUT CHAR8 *PcAnsi, OPTIONAL
|
||||||
OUT CHAR8 *Ascii OPTIONAL
|
OUT CHAR8 *Ascii OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Detects if a valid ASCII char.
|
Detects if a valid ASCII char.
|
||||||
@ -1426,8 +1374,7 @@ TerminalIsValidTextGraphics (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
TerminalIsValidAscii (
|
TerminalIsValidAscii (
|
||||||
IN CHAR16 Ascii
|
IN CHAR16 Ascii
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Detects if a valid EFI control character.
|
Detects if a valid EFI control character.
|
||||||
@ -1441,7 +1388,6 @@ TerminalIsValidAscii (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
TerminalIsValidEfiCntlChar (
|
TerminalIsValidEfiCntlChar (
|
||||||
IN CHAR16 CharC
|
IN CHAR16 CharC
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -97,8 +97,7 @@ EFI_STATUS
|
|||||||
DebugPortEntryPoint (
|
DebugPortEntryPoint (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -106,8 +105,7 @@ DebugPortSupported (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -115,8 +113,7 @@ DebugPortStart (
|
|||||||
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
IN EFI_DRIVER_BINDING_PROTOCOL *This,
|
||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -125,8 +122,7 @@ DebugPortStop (
|
|||||||
IN EFI_HANDLE Controller,
|
IN EFI_HANDLE Controller,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer
|
IN EFI_HANDLE *ChildHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI Component Name Functions
|
// EFI Component Name Functions
|
||||||
@ -265,8 +261,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DebugPortReset (
|
DebugPortReset (
|
||||||
IN EFI_DEBUGPORT_PROTOCOL *This
|
IN EFI_DEBUGPORT_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -275,8 +270,7 @@ DebugPortRead (
|
|||||||
IN UINT32 Timeout,
|
IN UINT32 Timeout,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -285,14 +279,12 @@ DebugPortWrite (
|
|||||||
IN UINT32 Timeout,
|
IN UINT32 Timeout,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
DebugPortPoll (
|
DebugPortPoll (
|
||||||
IN EFI_DEBUGPORT_PROTOCOL *This
|
IN EFI_DEBUGPORT_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,8 +46,7 @@ typedef
|
|||||||
VOID
|
VOID
|
||||||
(*DEBUG_PROC) (
|
(*DEBUG_PROC) (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DESCRIPTOR OrigDesc;
|
DESCRIPTOR OrigDesc;
|
||||||
|
@ -49,8 +49,7 @@ typedef
|
|||||||
VOID
|
VOID
|
||||||
(*DEBUG_PROC) (
|
(*DEBUG_PROC) (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DESCRIPTOR OrigDesc;
|
DESCRIPTOR OrigDesc;
|
||||||
|
@ -150,8 +150,7 @@ EFIAPI
|
|||||||
InitializeFtwLite (
|
InitializeFtwLite (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Fault Tolerant Write Protocol API
|
// Fault Tolerant Write Protocol API
|
||||||
@ -189,8 +188,7 @@ FtwLiteWrite (
|
|||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN OUT UINTN *NumBytes,
|
IN OUT UINTN *NumBytes,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Internal functions
|
// Internal functions
|
||||||
@ -213,8 +211,7 @@ FtwLiteWrite (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FtwRestart (
|
FtwRestart (
|
||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Aborts all previous allocated writes.
|
Aborts all previous allocated writes.
|
||||||
@ -230,8 +227,7 @@ FtwRestart (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FtwAbort (
|
FtwAbort (
|
||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -252,8 +248,7 @@ EFI_STATUS
|
|||||||
FtwWriteRecord (
|
FtwWriteRecord (
|
||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
||||||
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb
|
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
To Erase one block. The size is FTW_BLOCK_SIZE
|
To Erase one block. The size is FTW_BLOCK_SIZE
|
||||||
@ -272,8 +267,7 @@ FtwEraseBlock (
|
|||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
||||||
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
||||||
EFI_LBA Lba
|
EFI_LBA Lba
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -299,8 +293,7 @@ FtwEraseBlock (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FtwEraseSpareBlock (
|
FtwEraseSpareBlock (
|
||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrive the proper FVB protocol interface by HANDLE.
|
Retrive the proper FVB protocol interface by HANDLE.
|
||||||
@ -318,8 +311,7 @@ EFI_STATUS
|
|||||||
FtwGetFvbByHandle (
|
FtwGetFvbByHandle (
|
||||||
IN EFI_HANDLE FvBlockHandle,
|
IN EFI_HANDLE FvBlockHandle,
|
||||||
OUT EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL **FvBlock
|
OUT EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL **FvBlock
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -337,8 +329,7 @@ EFI_STATUS
|
|||||||
GetFvbByAddress (
|
GetFvbByAddress (
|
||||||
IN EFI_PHYSICAL_ADDRESS Address,
|
IN EFI_PHYSICAL_ADDRESS Address,
|
||||||
OUT EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL **FvBlock
|
OUT EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL **FvBlock
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -357,8 +348,7 @@ IsInWorkingBlock (
|
|||||||
EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
||||||
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
||||||
EFI_LBA Lba
|
EFI_LBA Lba
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -378,8 +368,7 @@ IsBootBlock (
|
|||||||
EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
||||||
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
||||||
EFI_LBA Lba
|
EFI_LBA Lba
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy the content of spare block to a target block. Size is FTW_BLOCK_SIZE.
|
Copy the content of spare block to a target block. Size is FTW_BLOCK_SIZE.
|
||||||
@ -403,8 +392,7 @@ FlushSpareBlockToTargetBlock (
|
|||||||
EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
||||||
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *FvBlock,
|
||||||
EFI_LBA Lba
|
EFI_LBA Lba
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy the content of spare block to working block. Size is FTW_BLOCK_SIZE.
|
Copy the content of spare block to working block. Size is FTW_BLOCK_SIZE.
|
||||||
@ -428,8 +416,7 @@ FlushSpareBlockToTargetBlock (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FlushSpareBlockToWorkingBlock (
|
FlushSpareBlockToWorkingBlock (
|
||||||
EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copy the content of spare block to a boot block. Size is FTW_BLOCK_SIZE.
|
Copy the content of spare block to a boot block. Size is FTW_BLOCK_SIZE.
|
||||||
@ -450,8 +437,7 @@ FlushSpareBlockToWorkingBlock (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FlushSpareBlockToBootBlock (
|
FlushSpareBlockToBootBlock (
|
||||||
EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update a bit of state on a block device. The location of the bit is
|
Update a bit of state on a block device. The location of the bit is
|
||||||
@ -477,8 +463,7 @@ FtwUpdateFvState (
|
|||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN UINT8 NewBit
|
IN UINT8 NewBit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the last Write record pointer.
|
Get the last Write record pointer.
|
||||||
@ -497,8 +482,7 @@ EFI_STATUS
|
|||||||
FtwGetLastRecord (
|
FtwGetLastRecord (
|
||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
||||||
OUT EFI_FTW_LITE_RECORD **FtwLastRecord
|
OUT EFI_FTW_LITE_RECORD **FtwLastRecord
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@ -517,8 +501,7 @@ IsErasedFlashBuffer (
|
|||||||
IN BOOLEAN Polarity,
|
IN BOOLEAN Polarity,
|
||||||
IN UINT8 *Buffer,
|
IN UINT8 *Buffer,
|
||||||
IN UINTN BufferSize
|
IN UINTN BufferSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize a work space when there is no work space.
|
Initialize a work space when there is no work space.
|
||||||
@ -533,8 +516,7 @@ IsErasedFlashBuffer (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitWorkSpaceHeader (
|
InitWorkSpaceHeader (
|
||||||
IN EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER *WorkingHeader
|
IN EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER *WorkingHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read from working block to refresh the work space in memory.
|
Read from working block to refresh the work space in memory.
|
||||||
@ -549,8 +531,7 @@ InitWorkSpaceHeader (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
WorkSpaceRefresh (
|
WorkSpaceRefresh (
|
||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check to see if it is a valid work space.
|
Check to see if it is a valid work space.
|
||||||
@ -565,8 +546,7 @@ WorkSpaceRefresh (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsValidWorkSpace (
|
IsValidWorkSpace (
|
||||||
IN EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER *WorkingHeader
|
IN EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER *WorkingHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reclaim the work space on the working block.
|
Reclaim the work space on the working block.
|
||||||
@ -584,7 +564,6 @@ EFI_STATUS
|
|||||||
FtwReclaimWorkSpace (
|
FtwReclaimWorkSpace (
|
||||||
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
IN EFI_FTW_LITE_DEVICE *FtwLiteDevice,
|
||||||
IN BOOLEAN PreserveRecord
|
IN BOOLEAN PreserveRecord
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -305,8 +305,7 @@ typedef struct _HII_DATABASE_PRIVATE_DATA {
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsHiiHandleValid (
|
IsHiiHandleValid (
|
||||||
EFI_HII_HANDLE Handle
|
EFI_HII_HANDLE Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -338,8 +337,7 @@ IsFontInfoExisted (
|
|||||||
IN EFI_FONT_INFO_MASK *FontInfoMask, OPTIONAL
|
IN EFI_FONT_INFO_MASK *FontInfoMask, OPTIONAL
|
||||||
IN EFI_FONT_HANDLE FontHandle, OPTIONAL
|
IN EFI_FONT_HANDLE FontHandle, OPTIONAL
|
||||||
OUT HII_GLOBAL_FONT_INFO **GlobalFontInfo OPTIONAL
|
OUT HII_GLOBAL_FONT_INFO **GlobalFontInfo OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -362,8 +360,7 @@ GetSystemFont (
|
|||||||
IN HII_DATABASE_PRIVATE_DATA *Private,
|
IN HII_DATABASE_PRIVATE_DATA *Private,
|
||||||
OUT EFI_FONT_DISPLAY_INFO **FontInfo,
|
OUT EFI_FONT_DISPLAY_INFO **FontInfo,
|
||||||
OUT UINTN *FontInfoSize OPTIONAL
|
OUT UINTN *FontInfoSize OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -399,8 +396,7 @@ FindStringBlock (
|
|||||||
OUT UINT8 **StringBlockAddr, OPTIONAL
|
OUT UINT8 **StringBlockAddr, OPTIONAL
|
||||||
OUT UINTN *StringTextOffset, OPTIONAL
|
OUT UINTN *StringTextOffset, OPTIONAL
|
||||||
OUT EFI_STRING_ID *LastStringId OPTIONAL
|
OUT EFI_STRING_ID *LastStringId OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -431,8 +427,7 @@ FindGlyphBlock (
|
|||||||
OUT UINT8 **GlyphBuffer, OPTIONAL
|
OUT UINT8 **GlyphBuffer, OPTIONAL
|
||||||
OUT EFI_HII_GLYPH_INFO *Cell, OPTIONAL
|
OUT EFI_HII_GLYPH_INFO *Cell, OPTIONAL
|
||||||
OUT UINTN *GlyphBufferLen OPTIONAL
|
OUT UINTN *GlyphBufferLen OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI_HII_FONT_PROTOCOL protocol interfaces
|
// EFI_HII_FONT_PROTOCOL protocol interfaces
|
||||||
@ -506,8 +501,7 @@ HiiStringToImage (
|
|||||||
OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,
|
OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,
|
||||||
OUT UINTN *RowInfoArraySize OPTIONAL,
|
OUT UINTN *RowInfoArraySize OPTIONAL,
|
||||||
OUT UINTN *ColumnInfoArray OPTIONAL
|
OUT UINTN *ColumnInfoArray OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -586,8 +580,7 @@ HiiStringIdToImage (
|
|||||||
OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,
|
OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,
|
||||||
OUT UINTN *RowInfoArraySize OPTIONAL,
|
OUT UINTN *RowInfoArraySize OPTIONAL,
|
||||||
OUT UINTN *ColumnInfoArray OPTIONAL
|
OUT UINTN *ColumnInfoArray OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -620,8 +613,7 @@ HiiGetGlyph (
|
|||||||
IN CONST EFI_FONT_DISPLAY_INFO *StringInfo,
|
IN CONST EFI_FONT_DISPLAY_INFO *StringInfo,
|
||||||
OUT EFI_IMAGE_OUTPUT **Blt,
|
OUT EFI_IMAGE_OUTPUT **Blt,
|
||||||
OUT UINTN *Baseline OPTIONAL
|
OUT UINTN *Baseline OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -661,8 +653,7 @@ HiiGetFontInfo (
|
|||||||
IN CONST EFI_FONT_DISPLAY_INFO *StringInfoIn, OPTIONAL
|
IN CONST EFI_FONT_DISPLAY_INFO *StringInfoIn, OPTIONAL
|
||||||
OUT EFI_FONT_DISPLAY_INFO **StringInfoOut,
|
OUT EFI_FONT_DISPLAY_INFO **StringInfoOut,
|
||||||
IN CONST EFI_STRING String OPTIONAL
|
IN CONST EFI_STRING String OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI_HII_IMAGE_PROTOCOL interfaces
|
// EFI_HII_IMAGE_PROTOCOL interfaces
|
||||||
@ -694,8 +685,7 @@ HiiNewImage (
|
|||||||
IN EFI_HII_HANDLE PackageList,
|
IN EFI_HII_HANDLE PackageList,
|
||||||
OUT EFI_IMAGE_ID *ImageId,
|
OUT EFI_IMAGE_ID *ImageId,
|
||||||
IN CONST EFI_IMAGE_INPUT *Image
|
IN CONST EFI_IMAGE_INPUT *Image
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -726,8 +716,7 @@ HiiGetImage (
|
|||||||
IN EFI_HII_HANDLE PackageList,
|
IN EFI_HII_HANDLE PackageList,
|
||||||
IN EFI_IMAGE_ID ImageId,
|
IN EFI_IMAGE_ID ImageId,
|
||||||
OUT EFI_IMAGE_INPUT *Image
|
OUT EFI_IMAGE_INPUT *Image
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -753,8 +742,7 @@ HiiSetImage (
|
|||||||
IN EFI_HII_HANDLE PackageList,
|
IN EFI_HII_HANDLE PackageList,
|
||||||
IN EFI_IMAGE_ID ImageId,
|
IN EFI_IMAGE_ID ImageId,
|
||||||
IN CONST EFI_IMAGE_INPUT *Image
|
IN CONST EFI_IMAGE_INPUT *Image
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -795,8 +783,7 @@ HiiDrawImage (
|
|||||||
IN OUT EFI_IMAGE_OUTPUT **Blt,
|
IN OUT EFI_IMAGE_OUTPUT **Blt,
|
||||||
IN UINTN BltX,
|
IN UINTN BltX,
|
||||||
IN UINTN BltY
|
IN UINTN BltY
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -893,8 +880,7 @@ HiiNewString (
|
|||||||
IN CONST CHAR16 *LanguageName, OPTIONAL
|
IN CONST CHAR16 *LanguageName, OPTIONAL
|
||||||
IN CONST EFI_STRING String,
|
IN CONST EFI_STRING String,
|
||||||
IN CONST EFI_FONT_INFO *StringFontInfo OPTIONAL
|
IN CONST EFI_FONT_INFO *StringFontInfo OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -941,8 +927,7 @@ HiiGetString (
|
|||||||
OUT EFI_STRING String,
|
OUT EFI_STRING String,
|
||||||
IN OUT UINTN *StringSize,
|
IN OUT UINTN *StringSize,
|
||||||
OUT EFI_FONT_INFO **StringFontInfo OPTIONAL
|
OUT EFI_FONT_INFO **StringFontInfo OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -976,8 +961,7 @@ HiiSetString (
|
|||||||
IN CONST CHAR8 *Language,
|
IN CONST CHAR8 *Language,
|
||||||
IN CONST EFI_STRING String,
|
IN CONST EFI_STRING String,
|
||||||
IN CONST EFI_FONT_INFO *StringFontInfo OPTIONAL
|
IN CONST EFI_FONT_INFO *StringFontInfo OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1008,8 +992,7 @@ HiiGetLanguages (
|
|||||||
IN EFI_HII_HANDLE PackageList,
|
IN EFI_HII_HANDLE PackageList,
|
||||||
IN OUT CHAR8 *Languages,
|
IN OUT CHAR8 *Languages,
|
||||||
IN OUT UINTN *LanguagesSize
|
IN OUT UINTN *LanguagesSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1051,8 +1034,7 @@ HiiGetSecondaryLanguages (
|
|||||||
IN CONST CHAR8 *FirstLanguage,
|
IN CONST CHAR8 *FirstLanguage,
|
||||||
IN OUT CHAR8 *SecondaryLanguages,
|
IN OUT CHAR8 *SecondaryLanguages,
|
||||||
IN OUT UINTN *SecondaryLanguagesSize
|
IN OUT UINTN *SecondaryLanguagesSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI_HII_DATABASE_PROTOCOL protocol interfaces
|
// EFI_HII_DATABASE_PROTOCOL protocol interfaces
|
||||||
@ -1085,8 +1067,7 @@ HiiNewPackageList (
|
|||||||
IN CONST EFI_HII_PACKAGE_LIST_HEADER *PackageList,
|
IN CONST EFI_HII_PACKAGE_LIST_HEADER *PackageList,
|
||||||
IN CONST EFI_HANDLE DriverHandle,
|
IN CONST EFI_HANDLE DriverHandle,
|
||||||
OUT EFI_HII_HANDLE *Handle
|
OUT EFI_HII_HANDLE *Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1109,8 +1090,7 @@ EFIAPI
|
|||||||
HiiRemovePackageList (
|
HiiRemovePackageList (
|
||||||
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
||||||
IN EFI_HII_HANDLE Handle
|
IN EFI_HII_HANDLE Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1137,8 +1117,7 @@ HiiUpdatePackageList (
|
|||||||
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
||||||
IN EFI_HII_HANDLE Handle,
|
IN EFI_HII_HANDLE Handle,
|
||||||
IN CONST EFI_HII_PACKAGE_LIST_HEADER *PackageList
|
IN CONST EFI_HII_PACKAGE_LIST_HEADER *PackageList
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1183,8 +1162,7 @@ HiiListPackageLists (
|
|||||||
IN CONST EFI_GUID *PackageGuid,
|
IN CONST EFI_GUID *PackageGuid,
|
||||||
IN OUT UINTN *HandleBufferLength,
|
IN OUT UINTN *HandleBufferLength,
|
||||||
OUT EFI_HII_HANDLE *Handle
|
OUT EFI_HII_HANDLE *Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1221,8 +1199,7 @@ HiiExportPackageLists (
|
|||||||
IN EFI_HII_HANDLE Handle,
|
IN EFI_HII_HANDLE Handle,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT EFI_HII_PACKAGE_LIST_HEADER *Buffer
|
OUT EFI_HII_PACKAGE_LIST_HEADER *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1270,8 +1247,7 @@ HiiRegisterPackageNotify (
|
|||||||
IN CONST EFI_HII_DATABASE_NOTIFY PackageNotifyFn,
|
IN CONST EFI_HII_DATABASE_NOTIFY PackageNotifyFn,
|
||||||
IN EFI_HII_DATABASE_NOTIFY_TYPE NotifyType,
|
IN EFI_HII_DATABASE_NOTIFY_TYPE NotifyType,
|
||||||
OUT EFI_HANDLE *NotifyHandle
|
OUT EFI_HANDLE *NotifyHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1292,8 +1268,7 @@ EFIAPI
|
|||||||
HiiUnregisterPackageNotify (
|
HiiUnregisterPackageNotify (
|
||||||
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
||||||
IN EFI_HANDLE NotificationHandle
|
IN EFI_HANDLE NotificationHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1325,8 +1300,7 @@ HiiFindKeyboardLayouts (
|
|||||||
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
||||||
IN OUT UINT16 *KeyGuidBufferLength,
|
IN OUT UINT16 *KeyGuidBufferLength,
|
||||||
OUT EFI_GUID *KeyGuidBuffer
|
OUT EFI_GUID *KeyGuidBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1357,8 +1331,7 @@ HiiGetKeyboardLayout (
|
|||||||
IN CONST EFI_GUID *KeyGuid,
|
IN CONST EFI_GUID *KeyGuid,
|
||||||
IN OUT UINT16 *KeyboardLayoutLength,
|
IN OUT UINT16 *KeyboardLayoutLength,
|
||||||
OUT EFI_HII_KEYBOARD_LAYOUT *KeyboardLayout
|
OUT EFI_HII_KEYBOARD_LAYOUT *KeyboardLayout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1383,8 +1356,7 @@ EFIAPI
|
|||||||
HiiSetKeyboardLayout (
|
HiiSetKeyboardLayout (
|
||||||
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
||||||
IN CONST EFI_GUID *KeyGuid
|
IN CONST EFI_GUID *KeyGuid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1409,8 +1381,7 @@ HiiGetPackageListHandle (
|
|||||||
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
IN CONST EFI_HII_DATABASE_PROTOCOL *This,
|
||||||
IN EFI_HII_HANDLE PackageListHandle,
|
IN EFI_HII_HANDLE PackageListHandle,
|
||||||
OUT EFI_HANDLE *DriverHandle
|
OUT EFI_HANDLE *DriverHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI_HII_CONFIG_ROUTING_PROTOCOL interfaces
|
// EFI_HII_CONFIG_ROUTING_PROTOCOL interfaces
|
||||||
@ -1463,8 +1434,7 @@ HiiConfigRoutingExtractConfig (
|
|||||||
IN CONST EFI_STRING Request,
|
IN CONST EFI_STRING Request,
|
||||||
OUT EFI_STRING *Progress,
|
OUT EFI_STRING *Progress,
|
||||||
OUT EFI_STRING *Results
|
OUT EFI_STRING *Results
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1493,8 +1463,7 @@ EFIAPI
|
|||||||
HiiConfigRoutingExportConfig (
|
HiiConfigRoutingExportConfig (
|
||||||
IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
|
IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
|
||||||
OUT EFI_STRING *Results
|
OUT EFI_STRING *Results
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1528,8 +1497,7 @@ HiiConfigRoutingRouteConfig (
|
|||||||
IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
|
IN CONST EFI_HII_CONFIG_ROUTING_PROTOCOL *This,
|
||||||
IN CONST EFI_STRING Configuration,
|
IN CONST EFI_STRING Configuration,
|
||||||
OUT EFI_STRING *Progress
|
OUT EFI_STRING *Progress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1581,8 +1549,7 @@ HiiBlockToConfig (
|
|||||||
IN CONST UINTN BlockSize,
|
IN CONST UINTN BlockSize,
|
||||||
OUT EFI_STRING *Config,
|
OUT EFI_STRING *Config,
|
||||||
OUT EFI_STRING *Progress
|
OUT EFI_STRING *Progress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1639,8 +1606,7 @@ HiiConfigToBlock (
|
|||||||
IN OUT UINT8 *Block,
|
IN OUT UINT8 *Block,
|
||||||
IN OUT UINTN *BlockSize,
|
IN OUT UINTN *BlockSize,
|
||||||
OUT EFI_STRING *Progress
|
OUT EFI_STRING *Progress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1693,8 +1659,7 @@ HiiGetAltCfg (
|
|||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||||
IN CONST UINT16 *AltCfgId,
|
IN CONST UINT16 *AltCfgId,
|
||||||
OUT EFI_STRING *AltCfgResp
|
OUT EFI_STRING *AltCfgResp
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -79,8 +79,7 @@ InitializeMemoryTest (
|
|||||||
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
||||||
IN EXTENDMEM_COVERAGE_LEVEL Level,
|
IN EXTENDMEM_COVERAGE_LEVEL Level,
|
||||||
OUT BOOLEAN *RequireSoftECCInit
|
OUT BOOLEAN *RequireSoftECCInit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -90,15 +89,13 @@ GenPerformMemoryTest (
|
|||||||
OUT UINT64 *TotalMemorySize,
|
OUT UINT64 *TotalMemorySize,
|
||||||
OUT BOOLEAN *ErrorOut,
|
OUT BOOLEAN *ErrorOut,
|
||||||
IN BOOLEAN TestAbort
|
IN BOOLEAN TestAbort
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
GenMemoryTestFinished (
|
GenMemoryTestFinished (
|
||||||
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This
|
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -106,7 +103,6 @@ GenCompatibleRangeTest (
|
|||||||
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
IN EFI_GENERIC_MEMORY_TEST_PROTOCOL *This,
|
||||||
IN EFI_PHYSICAL_ADDRESS StartAddress,
|
IN EFI_PHYSICAL_ADDRESS StartAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,7 +41,6 @@ EFIAPI
|
|||||||
MonotonicCounterDriverInitialize (
|
MonotonicCounterDriverInitialize (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -48,8 +48,7 @@ typedef struct _MD5_CTX {
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
MD5Init (
|
MD5Init (
|
||||||
IN MD5_CTX *Md5Ctx
|
IN MD5_CTX *Md5Ctx
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
the external interface of Md5 algorithm
|
the external interface of Md5 algorithm
|
||||||
@ -69,8 +68,7 @@ MD5Update (
|
|||||||
IN MD5_CTX *Md5Ctx,
|
IN MD5_CTX *Md5Ctx,
|
||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN UINTN DataLen
|
IN UINTN DataLen
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
accumulate the MD5 value of every data segment and generate the finial
|
accumulate the MD5 value of every data segment and generate the finial
|
||||||
@ -88,7 +86,6 @@ EFI_STATUS
|
|||||||
MD5Final (
|
MD5Final (
|
||||||
IN MD5_CTX *Md5Ctx,
|
IN MD5_CTX *Md5Ctx,
|
||||||
OUT UINT8 *HashVal
|
OUT UINT8 *HashVal
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif // _MD5_H
|
#endif // _MD5_H
|
||||||
|
@ -188,16 +188,14 @@ PxebcBisStart (
|
|||||||
PXE_BASECODE_DEVICE *Private,
|
PXE_BASECODE_DEVICE *Private,
|
||||||
BIS_APPLICATION_HANDLE *BisAppHandle,
|
BIS_APPLICATION_HANDLE *BisAppHandle,
|
||||||
EFI_BIS_DATA **BisDataSigInfo
|
EFI_BIS_DATA **BisDataSigInfo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
PxebcBisStop (
|
PxebcBisStop (
|
||||||
EFI_BIS_PROTOCOL *Bis,
|
EFI_BIS_PROTOCOL *Bis,
|
||||||
BIS_APPLICATION_HANDLE BisAppHandle,
|
BIS_APPLICATION_HANDLE BisAppHandle,
|
||||||
EFI_BIS_DATA *BisDataSigInfo
|
EFI_BIS_DATA *BisDataSigInfo
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
PxebcBisVerify (
|
PxebcBisVerify (
|
||||||
@ -206,14 +204,12 @@ PxebcBisVerify (
|
|||||||
UINTN FileBufferLength,
|
UINTN FileBufferLength,
|
||||||
VOID *CredentialBuffer,
|
VOID *CredentialBuffer,
|
||||||
UINTN CredentialBufferLength
|
UINTN CredentialBufferLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
PxebcBisDetect (
|
PxebcBisDetect (
|
||||||
PXE_BASECODE_DEVICE *Private
|
PXE_BASECODE_DEVICE *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Global Variables
|
// Global Variables
|
||||||
@ -240,31 +236,27 @@ EFIAPI
|
|||||||
InitializeBCDriver (
|
InitializeBCDriver (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BcStart (
|
BcStart (
|
||||||
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
|
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
|
||||||
IN BOOLEAN UseIpv6
|
IN BOOLEAN UseIpv6
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BcStop (
|
BcStop (
|
||||||
IN EFI_PXE_BASE_CODE_PROTOCOL *This
|
IN EFI_PXE_BASE_CODE_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BcDhcp (
|
BcDhcp (
|
||||||
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
|
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
|
||||||
IN BOOLEAN SortOffers
|
IN BOOLEAN SortOffers
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -274,8 +266,7 @@ BcDiscover (
|
|||||||
IN UINT16 *Layer,
|
IN UINT16 *Layer,
|
||||||
IN BOOLEAN UseBis,
|
IN BOOLEAN UseBis,
|
||||||
IN EFI_PXE_BASE_CODE_DISCOVER_INFO * Info OPTIONAL
|
IN EFI_PXE_BASE_CODE_DISCOVER_INFO * Info OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -290,8 +281,7 @@ BcMtftp (
|
|||||||
IN UINT8 *Filename,
|
IN UINT8 *Filename,
|
||||||
IN EFI_PXE_BASE_CODE_MTFTP_INFO * Info OPTIONAL,
|
IN EFI_PXE_BASE_CODE_MTFTP_INFO * Info OPTIONAL,
|
||||||
IN BOOLEAN DontUseBuffer
|
IN BOOLEAN DontUseBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -307,8 +297,7 @@ BcUdpWrite (
|
|||||||
IN VOID *HeaderPtr, OPTIONAL
|
IN VOID *HeaderPtr, OPTIONAL
|
||||||
IN UINTN *BufferSize,
|
IN UINTN *BufferSize,
|
||||||
IN VOID *BufferPtr
|
IN VOID *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -323,8 +312,7 @@ BcUdpRead (
|
|||||||
IN VOID *HeaderPtr, OPTIONAL
|
IN VOID *HeaderPtr, OPTIONAL
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
IN VOID *BufferPtr
|
IN VOID *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -345,8 +333,7 @@ BcTcpWrite (
|
|||||||
IN VOID *HeaderPtr, OPTIONAL
|
IN VOID *HeaderPtr, OPTIONAL
|
||||||
IN UINTN *BufferSize,
|
IN UINTN *BufferSize,
|
||||||
IN VOID *BufferPtr
|
IN VOID *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -361,8 +348,7 @@ BcTcpRead (
|
|||||||
IN VOID *HeaderPtr, OPTIONAL
|
IN VOID *HeaderPtr, OPTIONAL
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
IN VOID *BufferPtr
|
IN VOID *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -370,16 +356,14 @@ BcArp (
|
|||||||
IN EFI_PXE_BASE_CODE_PROTOCOL * This,
|
IN EFI_PXE_BASE_CODE_PROTOCOL * This,
|
||||||
IN EFI_IP_ADDRESS * IpAddr,
|
IN EFI_IP_ADDRESS * IpAddr,
|
||||||
IN EFI_MAC_ADDRESS * MacAddr OPTIONAL
|
IN EFI_MAC_ADDRESS * MacAddr OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
BcIpFilter (
|
BcIpFilter (
|
||||||
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
|
IN EFI_PXE_BASE_CODE_PROTOCOL *This,
|
||||||
IN EFI_PXE_BASE_CODE_IP_FILTER *NewFilter
|
IN EFI_PXE_BASE_CODE_IP_FILTER *NewFilter
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -390,8 +374,7 @@ BcSetParameters (
|
|||||||
IN UINT8 *NewTTL, OPTIONAL
|
IN UINT8 *NewTTL, OPTIONAL
|
||||||
IN UINT8 *NewToS, OPTIONAL
|
IN UINT8 *NewToS, OPTIONAL
|
||||||
IN BOOLEAN *NewMakeCallback OPTIONAL
|
IN BOOLEAN *NewMakeCallback OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -399,8 +382,7 @@ BcSetStationIP (
|
|||||||
IN EFI_PXE_BASE_CODE_PROTOCOL * This,
|
IN EFI_PXE_BASE_CODE_PROTOCOL * This,
|
||||||
IN EFI_IP_ADDRESS * NewStationIp, OPTIONAL
|
IN EFI_IP_ADDRESS * NewStationIp, OPTIONAL
|
||||||
IN EFI_IP_ADDRESS * NewSubnetMask OPTIONAL
|
IN EFI_IP_ADDRESS * NewSubnetMask OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -418,8 +400,7 @@ BcSetPackets (
|
|||||||
IN EFI_PXE_BASE_CODE_PACKET * NewPxeDiscover, OPTIONAL
|
IN EFI_PXE_BASE_CODE_PACKET * NewPxeDiscover, OPTIONAL
|
||||||
IN EFI_PXE_BASE_CODE_PACKET * NewPxeReply, OPTIONAL
|
IN EFI_PXE_BASE_CODE_PACKET * NewPxeReply, OPTIONAL
|
||||||
IN EFI_PXE_BASE_CODE_PACKET * NewPxeBisReply OPTIONAL
|
IN EFI_PXE_BASE_CODE_PACKET * NewPxeBisReply OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -429,15 +410,13 @@ LoadFile (
|
|||||||
IN BOOLEAN BootPolicy,
|
IN BOOLEAN BootPolicy,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PxeBcLibGetSmbiosSystemGuidAndSerialNumber (
|
PxeBcLibGetSmbiosSystemGuidAndSerialNumber (
|
||||||
IN EFI_GUID *SystemGuid,
|
IN EFI_GUID *SystemGuid,
|
||||||
OUT CHAR8 **SystemSerialNumber
|
OUT CHAR8 **SystemSerialNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#include "Ip.h"
|
#include "Ip.h"
|
||||||
#include "Dhcp.h"
|
#include "Dhcp.h"
|
||||||
|
@ -431,8 +431,7 @@ EFI_STATUS
|
|||||||
IpFilter (
|
IpFilter (
|
||||||
PXE_BASECODE_DEVICE *Private,
|
PXE_BASECODE_DEVICE *Private,
|
||||||
IN EFI_PXE_BASE_CODE_IP_FILTER *Filter
|
IN EFI_PXE_BASE_CODE_IP_FILTER *Filter
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// //////////////////////////////////////////////////////////////////////
|
// //////////////////////////////////////////////////////////////////////
|
||||||
@ -452,8 +451,7 @@ UdpWrite (
|
|||||||
IN VOID *HeaderPtr, OPTIONAL
|
IN VOID *HeaderPtr, OPTIONAL
|
||||||
IN UINTN *BufferSizePtr,
|
IN UINTN *BufferSizePtr,
|
||||||
IN VOID *BufferPtr
|
IN VOID *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// /////////////////////////////////////////////////////////////////////
|
// /////////////////////////////////////////////////////////////////////
|
||||||
@ -473,22 +471,19 @@ UdpRead (
|
|||||||
IN OUT UINTN *BufferSizePtr,
|
IN OUT UINTN *BufferSizePtr,
|
||||||
IN VOID *BufferPtr,
|
IN VOID *BufferPtr,
|
||||||
IN EFI_EVENT TimeoutEvent
|
IN EFI_EVENT TimeoutEvent
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
IgmpLeaveGroup (
|
IgmpLeaveGroup (
|
||||||
PXE_BASECODE_DEVICE *Private,
|
PXE_BASECODE_DEVICE *Private,
|
||||||
EFI_IP_ADDRESS *
|
EFI_IP_ADDRESS *
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
IgmpJoinGroup (
|
IgmpJoinGroup (
|
||||||
PXE_BASECODE_DEVICE *Private,
|
PXE_BASECODE_DEVICE *Private,
|
||||||
EFI_IP_ADDRESS *
|
EFI_IP_ADDRESS *
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// convert number to zero filled ascii value of length lth
|
// convert number to zero filled ascii value of length lth
|
||||||
@ -498,8 +493,7 @@ CvtNum (
|
|||||||
UINTN Number,
|
UINTN Number,
|
||||||
UINT8 *BufferPtr,
|
UINT8 *BufferPtr,
|
||||||
INTN BufferLen
|
INTN BufferLen
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// convert number to ascii string at ptr
|
// convert number to ascii string at ptr
|
||||||
@ -508,8 +502,7 @@ VOID
|
|||||||
UtoA10 (
|
UtoA10 (
|
||||||
UINTN Number,
|
UINTN Number,
|
||||||
UINT8 *BufferPtr
|
UINT8 *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// convert ascii numeric string to UINTN
|
// convert ascii numeric string to UINTN
|
||||||
@ -517,14 +510,12 @@ UtoA10 (
|
|||||||
UINTN
|
UINTN
|
||||||
AtoU (
|
AtoU (
|
||||||
UINT8 *BufferPtr
|
UINT8 *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
AtoU64 (
|
AtoU64 (
|
||||||
UINT8 *BufferPtr
|
UINT8 *BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// calculate the internet checksum (RFC 1071)
|
// calculate the internet checksum (RFC 1071)
|
||||||
@ -534,8 +525,7 @@ UINT16
|
|||||||
IpChecksum (
|
IpChecksum (
|
||||||
UINT16 *MessagePtr,
|
UINT16 *MessagePtr,
|
||||||
UINTN ByteLength
|
UINTN ByteLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// do checksum on non contiguous header and data
|
// do checksum on non contiguous header and data
|
||||||
@ -546,8 +536,7 @@ IpChecksum2 (
|
|||||||
UINTN HeaderLength,
|
UINTN HeaderLength,
|
||||||
UINT16 *Message,
|
UINT16 *Message,
|
||||||
UINTN MessageLength
|
UINTN MessageLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// update checksum when only a single word changes
|
// update checksum when only a single word changes
|
||||||
@ -557,21 +546,18 @@ UpdateChecksum (
|
|||||||
UINT16 OldChecksum,
|
UINT16 OldChecksum,
|
||||||
UINT16 OldWord,
|
UINT16 OldWord,
|
||||||
UINT16 NewWord
|
UINT16 NewWord
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
SeedRandom (
|
SeedRandom (
|
||||||
IN PXE_BASECODE_DEVICE *Private,
|
IN PXE_BASECODE_DEVICE *Private,
|
||||||
IN UINT16 InitialSeed
|
IN UINT16 InitialSeed
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
Random (
|
Random (
|
||||||
IN PXE_BASECODE_DEVICE *Private
|
IN PXE_BASECODE_DEVICE *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
SendPacket (
|
SendPacket (
|
||||||
@ -582,30 +568,26 @@ SendPacket (
|
|||||||
VOID *HardwareAddress,
|
VOID *HardwareAddress,
|
||||||
UINT16 MediaProtocol,
|
UINT16 MediaProtocol,
|
||||||
IN EFI_PXE_BASE_CODE_FUNCTION Function
|
IN EFI_PXE_BASE_CODE_FUNCTION Function
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
HandleArpReceive (
|
HandleArpReceive (
|
||||||
PXE_BASECODE_DEVICE *Private,
|
PXE_BASECODE_DEVICE *Private,
|
||||||
ARP_PACKET *ArpPacketPtr,
|
ARP_PACKET *ArpPacketPtr,
|
||||||
VOID *HeaderPtr
|
VOID *HeaderPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
HandleIgmp (
|
HandleIgmp (
|
||||||
PXE_BASECODE_DEVICE *Private,
|
PXE_BASECODE_DEVICE *Private,
|
||||||
IGMPV2_MESSAGE *IgmpMessageptr,
|
IGMPV2_MESSAGE *IgmpMessageptr,
|
||||||
UINTN IgmpMessageLen
|
UINTN IgmpMessageLen
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
IgmpCheckTimers (
|
IgmpCheckTimers (
|
||||||
PXE_BASECODE_DEVICE *Private
|
PXE_BASECODE_DEVICE *Private
|
||||||
)
|
); // poll when doing a receive
|
||||||
; // poll when doing a receive
|
|
||||||
// return hw add of IP and TRUE if available, otherwise FALSE
|
// return hw add of IP and TRUE if available, otherwise FALSE
|
||||||
//
|
//
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
@ -613,16 +595,14 @@ GetHwAddr (
|
|||||||
IN PXE_BASECODE_DEVICE *Private,
|
IN PXE_BASECODE_DEVICE *Private,
|
||||||
EFI_IP_ADDRESS *ProtocolAddressPtr,
|
EFI_IP_ADDRESS *ProtocolAddressPtr,
|
||||||
EFI_MAC_ADDRESS *HardwareAddressPtr
|
EFI_MAC_ADDRESS *HardwareAddressPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
DoArp (
|
DoArp (
|
||||||
IN PXE_BASECODE_DEVICE *Private,
|
IN PXE_BASECODE_DEVICE *Private,
|
||||||
IN EFI_IP_ADDRESS *ProtocolAddressPtr,
|
IN EFI_IP_ADDRESS *ProtocolAddressPtr,
|
||||||
OUT EFI_MAC_ADDRESS *HardwareAddressptr
|
OUT EFI_MAC_ADDRESS *HardwareAddressptr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
OnSameSubnet (
|
OnSameSubnet (
|
||||||
@ -630,15 +610,13 @@ OnSameSubnet (
|
|||||||
EFI_IP_ADDRESS *Ip1,
|
EFI_IP_ADDRESS *Ip1,
|
||||||
EFI_IP_ADDRESS *Ip2,
|
EFI_IP_ADDRESS *Ip2,
|
||||||
EFI_IP_ADDRESS *SubnetMask
|
EFI_IP_ADDRESS *SubnetMask
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
IpAddRouter (
|
IpAddRouter (
|
||||||
PXE_BASECODE_DEVICE *Private,
|
PXE_BASECODE_DEVICE *Private,
|
||||||
EFI_IP_ADDRESS *RouterIp
|
EFI_IP_ADDRESS *RouterIp
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#define Ip4AddRouter(Private, Ipv4Ptr) IpAddRouter (Private, (EFI_IP_ADDRESS *) Ipv4Ptr)
|
#define Ip4AddRouter(Private, Ipv4Ptr) IpAddRouter (Private, (EFI_IP_ADDRESS *) Ipv4Ptr)
|
||||||
|
|
||||||
@ -656,8 +634,7 @@ Ipv4Xmt (
|
|||||||
VOID *Data,
|
VOID *Data,
|
||||||
UINTN DataLen,
|
UINTN DataLen,
|
||||||
EFI_PXE_BASE_CODE_FUNCTION Function
|
EFI_PXE_BASE_CODE_FUNCTION Function
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// send ipv4 packet with ipv4 option
|
// send ipv4 packet with ipv4 option
|
||||||
@ -673,8 +650,7 @@ Ipv4SendWOp (
|
|||||||
UINTN OptionLen,
|
UINTN OptionLen,
|
||||||
UINT32 DestIp,
|
UINT32 DestIp,
|
||||||
EFI_PXE_BASE_CODE_FUNCTION Function
|
EFI_PXE_BASE_CODE_FUNCTION Function
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// send MsgLth message at MsgPtr - higher level protocol header already in xmtbuf, length HdrSize
|
// send MsgLth message at MsgPtr - higher level protocol header already in xmtbuf, length HdrSize
|
||||||
@ -690,8 +666,7 @@ Ip4Send (
|
|||||||
IN UINTN HeaderSize, // protocol header byte length
|
IN UINTN HeaderSize, // protocol header byte length
|
||||||
IN UINT8 *MsgPtr, // pointer to data
|
IN UINT8 *MsgPtr, // pointer to data
|
||||||
IN UINTN MsgLength
|
IN UINTN MsgLength
|
||||||
)
|
); // data byte length
|
||||||
; // data byte length
|
|
||||||
// receive up to MsgLth message into MsgPtr for protocol Prot
|
// receive up to MsgLth message into MsgPtr for protocol Prot
|
||||||
// return message length, src/dest ips if select any, and pointer to protocol header
|
// return message length, src/dest ips if select any, and pointer to protocol header
|
||||||
//
|
//
|
||||||
@ -707,15 +682,13 @@ IpReceive (
|
|||||||
UINT8 *MsgPtr, // pointer to data buffer
|
UINT8 *MsgPtr, // pointer to data buffer
|
||||||
UINTN *MsgLenPtr, // pointer to data buffer length/ O - returned data length
|
UINTN *MsgLenPtr, // pointer to data buffer length/ O - returned data length
|
||||||
IN EFI_EVENT TimeoutEvent
|
IN EFI_EVENT TimeoutEvent
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
VOID
|
VOID
|
||||||
WaitForTxComplete (
|
WaitForTxComplete (
|
||||||
IN PXE_BASECODE_DEVICE *Private
|
IN PXE_BASECODE_DEVICE *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
//
|
//
|
||||||
// routine to cycle waiting for a receive or timeout
|
// routine to cycle waiting for a receive or timeout
|
||||||
@ -728,8 +701,7 @@ WaitForReceive (
|
|||||||
IN OUT UINTN *HeaderSizePtr,
|
IN OUT UINTN *HeaderSizePtr,
|
||||||
IN OUT UINTN *BufferSizePtr,
|
IN OUT UINTN *BufferSizePtr,
|
||||||
IN OUT UINT16 *ProtocolPtr
|
IN OUT UINT16 *ProtocolPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif /* _IP_H_ */
|
#endif /* _IP_H_ */
|
||||||
|
|
||||||
|
@ -120,8 +120,7 @@ PxeDhcp4Run (
|
|||||||
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
||||||
IN OPTIONAL UINTN OpLen,
|
IN OPTIONAL UINTN OpLen,
|
||||||
IN OPTIONAL VOID *OpList
|
IN OPTIONAL VOID *OpList
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -129,8 +128,7 @@ EFIAPI
|
|||||||
PxeDhcp4Setup (
|
PxeDhcp4Setup (
|
||||||
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
||||||
IN EFI_PXE_DHCP4_DATA *Data
|
IN EFI_PXE_DHCP4_DATA *Data
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -140,8 +138,7 @@ PxeDhcp4Init (
|
|||||||
IN UINTN seconds_timeout,
|
IN UINTN seconds_timeout,
|
||||||
OUT UINTN *offer_list_entries,
|
OUT UINTN *offer_list_entries,
|
||||||
OUT DHCP4_PACKET **offer_list
|
OUT DHCP4_PACKET **offer_list
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -150,8 +147,7 @@ PxeDhcp4Select (
|
|||||||
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
||||||
IN UINTN seconds_timeout,
|
IN UINTN seconds_timeout,
|
||||||
IN DHCP4_PACKET *offer_list
|
IN DHCP4_PACKET *offer_list
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -159,8 +155,7 @@ EFIAPI
|
|||||||
PxeDhcp4Renew (
|
PxeDhcp4Renew (
|
||||||
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
||||||
UINTN seconds_timeout
|
UINTN seconds_timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -168,16 +163,14 @@ EFIAPI
|
|||||||
PxeDhcp4Rebind (
|
PxeDhcp4Rebind (
|
||||||
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
IN EFI_PXE_DHCP4_PROTOCOL *This,
|
||||||
UINTN seconds_timeout
|
UINTN seconds_timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PxeDhcp4Release (
|
PxeDhcp4Release (
|
||||||
IN EFI_PXE_DHCP4_PROTOCOL *This
|
IN EFI_PXE_DHCP4_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
|
|
||||||
@ -188,15 +181,13 @@ extern
|
|||||||
UINT16
|
UINT16
|
||||||
htons (
|
htons (
|
||||||
UINTN n
|
UINTN n
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
UINT32
|
UINT32
|
||||||
htonl (
|
htonl (
|
||||||
UINTN n
|
UINTN n
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
@ -204,8 +195,7 @@ EFIAPI
|
|||||||
timeout_notify (
|
timeout_notify (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
@ -213,8 +203,7 @@ EFIAPI
|
|||||||
periodic_notify (
|
periodic_notify (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -223,16 +212,14 @@ find_opt (
|
|||||||
IN UINT8 OpCode,
|
IN UINT8 OpCode,
|
||||||
IN UINTN Skip,
|
IN UINTN Skip,
|
||||||
OUT DHCP4_OP **OpPtr
|
OUT DHCP4_OP **OpPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
add_opt (
|
add_opt (
|
||||||
IN DHCP4_PACKET *Packet,
|
IN DHCP4_PACKET *Packet,
|
||||||
IN DHCP4_OP *OpPtr
|
IN DHCP4_OP *OpPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -240,30 +227,26 @@ start_udp (
|
|||||||
IN PXE_DHCP4_PRIVATE_DATA *Private,
|
IN PXE_DHCP4_PRIVATE_DATA *Private,
|
||||||
IN OPTIONAL EFI_IP_ADDRESS *station_ip,
|
IN OPTIONAL EFI_IP_ADDRESS *station_ip,
|
||||||
IN OPTIONAL EFI_IP_ADDRESS *subnet_mask
|
IN OPTIONAL EFI_IP_ADDRESS *subnet_mask
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
stop_udp (
|
stop_udp (
|
||||||
IN PXE_DHCP4_PRIVATE_DATA *Private
|
IN PXE_DHCP4_PRIVATE_DATA *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
start_receive_events (
|
start_receive_events (
|
||||||
IN PXE_DHCP4_PRIVATE_DATA *Private,
|
IN PXE_DHCP4_PRIVATE_DATA *Private,
|
||||||
IN UINTN seconds_timeout
|
IN UINTN seconds_timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
stop_receive_events (
|
stop_receive_events (
|
||||||
IN PXE_DHCP4_PRIVATE_DATA *Private
|
IN PXE_DHCP4_PRIVATE_DATA *Private
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -274,8 +257,7 @@ tx_udp (
|
|||||||
IN EFI_IP_ADDRESS *src_ip,
|
IN EFI_IP_ADDRESS *src_ip,
|
||||||
IN VOID *buffer,
|
IN VOID *buffer,
|
||||||
IN UINTN BufferSize
|
IN UINTN BufferSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -286,8 +268,7 @@ rx_udp (
|
|||||||
IN OUT EFI_IP_ADDRESS *dest_ip,
|
IN OUT EFI_IP_ADDRESS *dest_ip,
|
||||||
IN OUT EFI_IP_ADDRESS *src_ip,
|
IN OUT EFI_IP_ADDRESS *src_ip,
|
||||||
IN UINT16 op_flags
|
IN UINT16 op_flags
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -309,8 +290,7 @@ tx_rx_udp (
|
|||||||
IN UINTN rx_pkt_size
|
IN UINTN rx_pkt_size
|
||||||
),
|
),
|
||||||
IN UINTN seconds_timeout
|
IN UINTN seconds_timeout
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||||||
|
|
||||||
|
@ -148,35 +148,30 @@ add_v2p (
|
|||||||
EFI_PCI_IO_PROTOCOL_OPERATION type,
|
EFI_PCI_IO_PROTOCOL_OPERATION type,
|
||||||
VOID *vaddr,
|
VOID *vaddr,
|
||||||
UINTN bsize
|
UINTN bsize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
find_v2p (
|
find_v2p (
|
||||||
struct s_v2p **v2p,
|
struct s_v2p **v2p,
|
||||||
VOID *vaddr
|
VOID *vaddr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
del_v2p (
|
del_v2p (
|
||||||
VOID *vaddr
|
VOID *vaddr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
snp_undi32_callback_block_30 (
|
snp_undi32_callback_block_30 (
|
||||||
IN UINT32 Enable
|
IN UINT32 Enable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
snp_undi32_callback_delay_30 (
|
snp_undi32_callback_delay_30 (
|
||||||
IN UINT64 MicroSeconds
|
IN UINT64 MicroSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
@ -185,32 +180,28 @@ snp_undi32_callback_memio_30 (
|
|||||||
IN UINT8 NumBytes,
|
IN UINT8 NumBytes,
|
||||||
IN UINT64 MemOrPortAddress,
|
IN UINT64 MemOrPortAddress,
|
||||||
IN OUT UINT64 BufferPtr
|
IN OUT UINT64 BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
snp_undi32_callback_v2p_30 (
|
snp_undi32_callback_v2p_30 (
|
||||||
IN UINT64 CpuAddr,
|
IN UINT64 CpuAddr,
|
||||||
IN OUT UINT64 DeviceAddrPtr
|
IN OUT UINT64 DeviceAddrPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
snp_undi32_callback_block (
|
snp_undi32_callback_block (
|
||||||
IN UINT64 UniqueId,
|
IN UINT64 UniqueId,
|
||||||
IN UINT32 Enable
|
IN UINT32 Enable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
snp_undi32_callback_delay (
|
snp_undi32_callback_delay (
|
||||||
IN UINT64 UniqueId,
|
IN UINT64 UniqueId,
|
||||||
IN UINT64 MicroSeconds
|
IN UINT64 MicroSeconds
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
@ -220,8 +211,7 @@ snp_undi32_callback_memio (
|
|||||||
IN UINT8 NumBytes,
|
IN UINT8 NumBytes,
|
||||||
IN UINT64 MemOrPortAddr,
|
IN UINT64 MemOrPortAddr,
|
||||||
IN OUT UINT64 BufferPtr
|
IN OUT UINT64 BufferPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
@ -231,8 +221,7 @@ snp_undi32_callback_map (
|
|||||||
IN UINT32 NumBytes,
|
IN UINT32 NumBytes,
|
||||||
IN UINT32 Direction,
|
IN UINT32 Direction,
|
||||||
IN OUT UINT64 DeviceAddrPtr
|
IN OUT UINT64 DeviceAddrPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
@ -242,8 +231,7 @@ snp_undi32_callback_unmap (
|
|||||||
IN UINT32 NumBytes,
|
IN UINT32 NumBytes,
|
||||||
IN UINT32 Direction,
|
IN UINT32 Direction,
|
||||||
IN UINT64 DeviceAddr // not a pointer to device address
|
IN UINT64 DeviceAddr // not a pointer to device address
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
VOID
|
VOID
|
||||||
@ -253,24 +241,21 @@ snp_undi32_callback_sync (
|
|||||||
IN UINT32 NumBytes,
|
IN UINT32 NumBytes,
|
||||||
IN UINT32 Direction,
|
IN UINT32 Direction,
|
||||||
IN UINT64 DeviceAddr // not a pointer to device address
|
IN UINT64 DeviceAddr // not a pointer to device address
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
snp_undi32_start (
|
snp_undi32_start (
|
||||||
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
|
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
snp_undi32_stop (
|
snp_undi32_stop (
|
||||||
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
|
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -279,8 +264,7 @@ snp_undi32_initialize (
|
|||||||
IN EFI_SIMPLE_NETWORK_PROTOCOL *this,
|
IN EFI_SIMPLE_NETWORK_PROTOCOL *this,
|
||||||
IN UINTN extra_rx_buffer_size OPTIONAL,
|
IN UINTN extra_rx_buffer_size OPTIONAL,
|
||||||
IN UINTN extra_tx_buffer_size OPTIONAL
|
IN UINTN extra_tx_buffer_size OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -288,16 +272,14 @@ EFIAPI
|
|||||||
snp_undi32_reset (
|
snp_undi32_reset (
|
||||||
IN EFI_SIMPLE_NETWORK_PROTOCOL *this,
|
IN EFI_SIMPLE_NETWORK_PROTOCOL *this,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
snp_undi32_shutdown (
|
snp_undi32_shutdown (
|
||||||
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
|
IN EFI_SIMPLE_NETWORK_PROTOCOL *this
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -309,8 +291,7 @@ snp_undi32_receive_filters (
|
|||||||
IN BOOLEAN reset_mcast_filter,
|
IN BOOLEAN reset_mcast_filter,
|
||||||
IN UINTN mcast_filter_count OPTIONAL,
|
IN UINTN mcast_filter_count OPTIONAL,
|
||||||
IN EFI_MAC_ADDRESS * mcast_filter OPTIONAL
|
IN EFI_MAC_ADDRESS * mcast_filter OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -319,8 +300,7 @@ snp_undi32_station_address (
|
|||||||
IN EFI_SIMPLE_NETWORK_PROTOCOL * this,
|
IN EFI_SIMPLE_NETWORK_PROTOCOL * this,
|
||||||
IN BOOLEAN reset,
|
IN BOOLEAN reset,
|
||||||
IN EFI_MAC_ADDRESS *new OPTIONAL
|
IN EFI_MAC_ADDRESS *new OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -330,8 +310,7 @@ snp_undi32_statistics (
|
|||||||
IN BOOLEAN reset,
|
IN BOOLEAN reset,
|
||||||
IN OUT UINTN *statistics_size OPTIONAL,
|
IN OUT UINTN *statistics_size OPTIONAL,
|
||||||
IN OUT EFI_NETWORK_STATISTICS * statistics_table OPTIONAL
|
IN OUT EFI_NETWORK_STATISTICS * statistics_table OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -341,8 +320,7 @@ snp_undi32_mcast_ip_to_mac (
|
|||||||
IN BOOLEAN IPv6,
|
IN BOOLEAN IPv6,
|
||||||
IN EFI_IP_ADDRESS *IP,
|
IN EFI_IP_ADDRESS *IP,
|
||||||
OUT EFI_MAC_ADDRESS *MAC
|
OUT EFI_MAC_ADDRESS *MAC
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -353,8 +331,7 @@ snp_undi32_nvdata (
|
|||||||
IN UINTN offset,
|
IN UINTN offset,
|
||||||
IN UINTN buffer_size,
|
IN UINTN buffer_size,
|
||||||
IN OUT VOID *buffer
|
IN OUT VOID *buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -363,8 +340,7 @@ snp_undi32_get_status (
|
|||||||
IN EFI_SIMPLE_NETWORK_PROTOCOL * this,
|
IN EFI_SIMPLE_NETWORK_PROTOCOL * this,
|
||||||
OUT UINT32 *interrupt_status OPTIONAL,
|
OUT UINT32 *interrupt_status OPTIONAL,
|
||||||
OUT VOID **tx_buffer OPTIONAL
|
OUT VOID **tx_buffer OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -377,8 +353,7 @@ snp_undi32_transmit (
|
|||||||
IN EFI_MAC_ADDRESS * src_addr OPTIONAL,
|
IN EFI_MAC_ADDRESS * src_addr OPTIONAL,
|
||||||
IN EFI_MAC_ADDRESS * dest_addr OPTIONAL,
|
IN EFI_MAC_ADDRESS * dest_addr OPTIONAL,
|
||||||
IN UINT16 *protocol OPTIONAL
|
IN UINT16 *protocol OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern
|
extern
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -391,8 +366,7 @@ snp_undi32_receive (
|
|||||||
OUT EFI_MAC_ADDRESS * src_addr OPTIONAL,
|
OUT EFI_MAC_ADDRESS * src_addr OPTIONAL,
|
||||||
OUT EFI_MAC_ADDRESS * dest_addr OPTIONAL,
|
OUT EFI_MAC_ADDRESS * dest_addr OPTIONAL,
|
||||||
OUT UINT16 *protocol OPTIONAL
|
OUT UINT16 *protocol OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -424,8 +398,7 @@ EFIAPI
|
|||||||
InitializeSnpNiiDriver (
|
InitializeSnpNiiDriver (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#define SNP_MEM_PAGES(x) (((x) - 1) / 4096 + 1)
|
#define SNP_MEM_PAGES(x) (((x) - 1) / 4096 + 1)
|
||||||
|
|
||||||
|
@ -141,8 +141,7 @@ Tcp4GetMode (
|
|||||||
|
|
||||||
Option->EnableNagle = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_NAGLE));
|
Option->EnableNagle = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_NAGLE));
|
||||||
Option->EnableTimeStamp = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_TS));
|
Option->EnableTimeStamp = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_TS));
|
||||||
Option->EnableWindowScaling = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_WS))
|
Option->EnableWindowScaling = (BOOLEAN) (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_WS));
|
||||||
;
|
|
||||||
|
|
||||||
Option->EnableSelectiveAck = FALSE;
|
Option->EnableSelectiveAck = FALSE;
|
||||||
Option->EnablePathMtuDiscovery = FALSE;
|
Option->EnablePathMtuDiscovery = FALSE;
|
||||||
|
@ -75,8 +75,7 @@ VOID
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdSetSku (
|
DxePcdSetSku (
|
||||||
IN UINTN SkuId
|
IN UINTN SkuId
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 8-bit value for a given PCD token.
|
Retrieves an 8-bit value for a given PCD token.
|
||||||
@ -93,8 +92,7 @@ UINT8
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGet8 (
|
DxePcdGet8 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 16-bit value for a given PCD token.
|
Retrieves an 16-bit value for a given PCD token.
|
||||||
@ -111,8 +109,7 @@ UINT16
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGet16 (
|
DxePcdGet16 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 32-bit value for a given PCD token.
|
Retrieves an 32-bit value for a given PCD token.
|
||||||
@ -129,8 +126,7 @@ UINT32
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGet32 (
|
DxePcdGet32 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 64-bit value for a given PCD token.
|
Retrieves an 64-bit value for a given PCD token.
|
||||||
@ -147,8 +143,7 @@ UINT64
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGet64 (
|
DxePcdGet64 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a pointer to a value for a given PCD token.
|
Retrieves a pointer to a value for a given PCD token.
|
||||||
@ -167,8 +162,7 @@ VOID *
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGetPtr (
|
DxePcdGetPtr (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a Boolean value for a given PCD token.
|
Retrieves a Boolean value for a given PCD token.
|
||||||
@ -187,8 +181,7 @@ BOOLEAN
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGetBool (
|
DxePcdGetBool (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the size of the value for a given PCD token.
|
Retrieves the size of the value for a given PCD token.
|
||||||
@ -205,8 +198,7 @@ UINTN
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGetSize (
|
DxePcdGetSize (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 8-bit value for a given PCD token.
|
Retrieves an 8-bit value for a given PCD token.
|
||||||
@ -227,8 +219,7 @@ EFIAPI
|
|||||||
DxePcdGet8Ex (
|
DxePcdGet8Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 16-bit value for a given PCD token.
|
Retrieves an 16-bit value for a given PCD token.
|
||||||
@ -249,8 +240,7 @@ EFIAPI
|
|||||||
DxePcdGet16Ex (
|
DxePcdGet16Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 32-bit value for a given PCD token.
|
Retrieves an 32-bit value for a given PCD token.
|
||||||
@ -271,8 +261,7 @@ EFIAPI
|
|||||||
DxePcdGet32Ex (
|
DxePcdGet32Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 64-bit value for a given PCD token.
|
Retrieves an 64-bit value for a given PCD token.
|
||||||
@ -293,8 +282,7 @@ EFIAPI
|
|||||||
DxePcdGet64Ex (
|
DxePcdGet64Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a pointer to a value for a given PCD token.
|
Retrieves a pointer to a value for a given PCD token.
|
||||||
@ -315,8 +303,7 @@ EFIAPI
|
|||||||
DxePcdGetPtrEx (
|
DxePcdGetPtrEx (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an Boolean value for a given PCD token.
|
Retrieves an Boolean value for a given PCD token.
|
||||||
@ -337,8 +324,7 @@ EFIAPI
|
|||||||
DxePcdGetBoolEx (
|
DxePcdGetBoolEx (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the size of the value for a given PCD token.
|
Retrieves the size of the value for a given PCD token.
|
||||||
@ -357,8 +343,7 @@ EFIAPI
|
|||||||
DxePcdGetSizeEx (
|
DxePcdGetSizeEx (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 8-bit value for a given PCD token.
|
Sets an 8-bit value for a given PCD token.
|
||||||
@ -382,8 +367,7 @@ EFIAPI
|
|||||||
DxePcdSet8 (
|
DxePcdSet8 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 16-bit value for a given PCD token.
|
Sets an 16-bit value for a given PCD token.
|
||||||
@ -407,8 +391,7 @@ EFIAPI
|
|||||||
DxePcdSet16 (
|
DxePcdSet16 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 32-bit value for a given PCD token.
|
Sets an 32-bit value for a given PCD token.
|
||||||
@ -432,8 +415,7 @@ EFIAPI
|
|||||||
DxePcdSet32 (
|
DxePcdSet32 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 64-bit value for a given PCD token.
|
Sets an 64-bit value for a given PCD token.
|
||||||
@ -457,8 +439,7 @@ EFIAPI
|
|||||||
DxePcdSet64 (
|
DxePcdSet64 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -488,8 +469,7 @@ DxePcdSetPtr (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an Boolean value for a given PCD token.
|
Sets an Boolean value for a given PCD token.
|
||||||
@ -513,8 +493,7 @@ EFIAPI
|
|||||||
DxePcdSetBool (
|
DxePcdSetBool (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN BOOLEAN Value
|
IN BOOLEAN Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -541,8 +520,7 @@ DxePcdSet8Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 16-bit value for a given PCD token.
|
Sets an 16-bit value for a given PCD token.
|
||||||
@ -568,8 +546,7 @@ DxePcdSet16Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 32-bit value for a given PCD token.
|
Sets an 32-bit value for a given PCD token.
|
||||||
@ -595,8 +572,7 @@ DxePcdSet32Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 64-bit value for a given PCD token.
|
Sets an 64-bit value for a given PCD token.
|
||||||
@ -622,8 +598,7 @@ DxePcdSet64Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets a value of a specified size for a given PCD token.
|
Sets a value of a specified size for a given PCD token.
|
||||||
@ -654,8 +629,7 @@ DxePcdSetPtrEx (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an Boolean value for a given PCD token.
|
Sets an Boolean value for a given PCD token.
|
||||||
@ -681,8 +655,7 @@ DxePcdSetBoolEx (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN BOOLEAN Value
|
IN BOOLEAN Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Specifies a function to be called anytime the value of a designated token is changed.
|
Specifies a function to be called anytime the value of a designated token is changed.
|
||||||
@ -702,8 +675,7 @@ DxeRegisterCallBackOnSet (
|
|||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Cancels a previously set callback function for a particular PCD token number.
|
Cancels a previously set callback function for a particular PCD token number.
|
||||||
@ -723,8 +695,7 @@ DxeUnRegisterCallBackOnSet (
|
|||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the next valid PCD token for a given namespace.
|
Retrieves the next valid PCD token for a given namespace.
|
||||||
@ -749,8 +720,7 @@ EFIAPI
|
|||||||
DxePcdGetNextToken (
|
DxePcdGetNextToken (
|
||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN OUT UINTN *TokenNumber
|
IN OUT UINTN *TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get next token space in PCD database according to given token space guid.
|
Get next token space in PCD database according to given token space guid.
|
||||||
@ -771,8 +741,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
DxePcdGetNextTokenSpace (
|
DxePcdGetNextTokenSpace (
|
||||||
IN OUT CONST EFI_GUID **Guid
|
IN OUT CONST EFI_GUID **Guid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
LIST_ENTRY Node;
|
LIST_ENTRY Node;
|
||||||
@ -800,8 +769,7 @@ SetValueWorker (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set value for an PCD entry
|
Set value for an PCD entry
|
||||||
@ -824,8 +792,7 @@ SetWorker (
|
|||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN OUT UINTN *Size,
|
IN OUT UINTN *Size,
|
||||||
IN BOOLEAN PtrType
|
IN BOOLEAN PtrType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wrapper function for set PCD value for non-Pointer type dynamic-ex PCD.
|
Wrapper function for set PCD value for non-Pointer type dynamic-ex PCD.
|
||||||
@ -844,8 +811,7 @@ ExSetValueWorker (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN UINTN SetSize
|
IN UINTN SetSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set value for a dynamic PCD entry.
|
Set value for a dynamic PCD entry.
|
||||||
@ -872,8 +838,7 @@ ExSetWorker (
|
|||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN OUT UINTN *Size,
|
IN OUT UINTN *Size,
|
||||||
IN BOOLEAN PtrType
|
IN BOOLEAN PtrType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the PCD entry pointer in PCD database.
|
Get the PCD entry pointer in PCD database.
|
||||||
@ -893,8 +858,7 @@ VOID *
|
|||||||
GetWorker (
|
GetWorker (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINTN GetSize
|
IN UINTN GetSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wrapper function for get PCD value for dynamic-ex PCD.
|
Wrapper function for get PCD value for dynamic-ex PCD.
|
||||||
@ -911,8 +875,7 @@ ExGetWorker (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN ExTokenNumber,
|
IN UINTN ExTokenNumber,
|
||||||
IN UINTN GetSize
|
IN UINTN GetSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Find the local token number according to system SKU ID.
|
Find the local token number according to system SKU ID.
|
||||||
@ -930,8 +893,7 @@ GetSkuEnabledTokenNumber (
|
|||||||
UINT32 LocalTokenNumber,
|
UINT32 LocalTokenNumber,
|
||||||
UINTN Size,
|
UINTN Size,
|
||||||
BOOLEAN IsPeiDb
|
BOOLEAN IsPeiDb
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get Variable which contains HII type PCD entry.
|
Get Variable which contains HII type PCD entry.
|
||||||
@ -949,8 +911,7 @@ GetHiiVariable (
|
|||||||
IN UINT16 *VariableName,
|
IN UINT16 *VariableName,
|
||||||
OUT UINT8 **VariableData,
|
OUT UINT8 **VariableData,
|
||||||
OUT UINTN *VariableSize
|
OUT UINTN *VariableSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set value for HII-type PCD.
|
Set value for HII-type PCD.
|
||||||
@ -974,8 +935,7 @@ SetHiiVariable (
|
|||||||
IN CONST VOID *Data,
|
IN CONST VOID *Data,
|
||||||
IN UINTN DataSize,
|
IN UINTN DataSize,
|
||||||
IN UINTN Offset
|
IN UINTN Offset
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Register the callback function for a PCD entry.
|
Register the callback function for a PCD entry.
|
||||||
@ -996,8 +956,7 @@ DxeRegisterCallBackWorker (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
UnRegister the callback function for a PCD entry.
|
UnRegister the callback function for a PCD entry.
|
||||||
@ -1018,8 +977,7 @@ DxeUnRegisterCallBackWorker (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
IN PCD_PROTOCOL_CALLBACK CallBackFunction
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize the PCD database in DXE phase.
|
Initialize the PCD database in DXE phase.
|
||||||
@ -1031,8 +989,7 @@ DxeUnRegisterCallBackWorker (
|
|||||||
VOID
|
VOID
|
||||||
BuildPcdDxeDataBase (
|
BuildPcdDxeDataBase (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get local token number according to dynamic-ex PCD's {token space guid:token number}
|
Get local token number according to dynamic-ex PCD's {token space guid:token number}
|
||||||
@ -1051,8 +1008,7 @@ UINTN
|
|||||||
GetExPcdTokenNumber (
|
GetExPcdTokenNumber (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINT32 ExTokenNumber
|
IN UINT32 ExTokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get next token number in given token space.
|
Get next token number in given token space.
|
||||||
@ -1087,8 +1043,7 @@ ExGetNextTokeNumber (
|
|||||||
IN UINTN SizeOfGuidTable,
|
IN UINTN SizeOfGuidTable,
|
||||||
IN DYNAMICEX_MAPPING *ExMapTable,
|
IN DYNAMICEX_MAPPING *ExMapTable,
|
||||||
IN UINTN SizeOfExMapTable
|
IN UINTN SizeOfExMapTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get size of POINTER type PCD value.
|
Get size of POINTER type PCD value.
|
||||||
@ -1103,8 +1058,7 @@ UINTN
|
|||||||
GetPtrTypeSize (
|
GetPtrTypeSize (
|
||||||
IN UINTN LocalTokenNumberTableIdx,
|
IN UINTN LocalTokenNumberTableIdx,
|
||||||
OUT UINTN *MaxSize
|
OUT UINTN *MaxSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set size of POINTER type PCD value. The size should not exceed the maxmium size
|
Set size of POINTER type PCD value. The size should not exceed the maxmium size
|
||||||
@ -1120,8 +1074,7 @@ BOOLEAN
|
|||||||
SetPtrTypeSize (
|
SetPtrTypeSize (
|
||||||
IN UINTN LocalTokenNumberTableIdx,
|
IN UINTN LocalTokenNumberTableIdx,
|
||||||
IN OUT UINTN *CurrentSize
|
IN OUT UINTN *CurrentSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
extern EFI_GUID gPcdDataBaseHobGuid;
|
extern EFI_GUID gPcdDataBaseHobGuid;
|
||||||
|
|
||||||
|
@ -76,8 +76,7 @@ VOID
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdSetSku (
|
PeiPcdSetSku (
|
||||||
IN UINTN SkuId
|
IN UINTN SkuId
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 8-bit value for a given PCD token.
|
Retrieves an 8-bit value for a given PCD token.
|
||||||
@ -94,8 +93,7 @@ UINT8
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGet8 (
|
PeiPcdGet8 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 16-bit value for a given PCD token.
|
Retrieves an 16-bit value for a given PCD token.
|
||||||
@ -112,8 +110,7 @@ UINT16
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGet16 (
|
PeiPcdGet16 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 32-bit value for a given PCD token.
|
Retrieves an 32-bit value for a given PCD token.
|
||||||
@ -130,8 +127,7 @@ UINT32
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGet32 (
|
PeiPcdGet32 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 64-bit value for a given PCD token.
|
Retrieves an 64-bit value for a given PCD token.
|
||||||
@ -148,8 +144,7 @@ UINT64
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGet64 (
|
PeiPcdGet64 (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a pointer to a value for a given PCD token.
|
Retrieves a pointer to a value for a given PCD token.
|
||||||
@ -168,8 +163,7 @@ VOID *
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGetPtr (
|
PeiPcdGetPtr (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a Boolean value for a given PCD token.
|
Retrieves a Boolean value for a given PCD token.
|
||||||
@ -188,8 +182,7 @@ BOOLEAN
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGetBool (
|
PeiPcdGetBool (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the size of the value for a given PCD token.
|
Retrieves the size of the value for a given PCD token.
|
||||||
@ -206,8 +199,7 @@ UINTN
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGetSize (
|
PeiPcdGetSize (
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 8-bit value for a given PCD token.
|
Retrieves an 8-bit value for a given PCD token.
|
||||||
@ -228,8 +220,7 @@ EFIAPI
|
|||||||
PeiPcdGet8Ex (
|
PeiPcdGet8Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 16-bit value for a given PCD token.
|
Retrieves an 16-bit value for a given PCD token.
|
||||||
@ -250,8 +241,7 @@ EFIAPI
|
|||||||
PeiPcdGet16Ex (
|
PeiPcdGet16Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 32-bit value for a given PCD token.
|
Retrieves an 32-bit value for a given PCD token.
|
||||||
@ -272,8 +262,7 @@ EFIAPI
|
|||||||
PeiPcdGet32Ex (
|
PeiPcdGet32Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an 64-bit value for a given PCD token.
|
Retrieves an 64-bit value for a given PCD token.
|
||||||
@ -294,8 +283,7 @@ EFIAPI
|
|||||||
PeiPcdGet64Ex (
|
PeiPcdGet64Ex (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves a pointer to a value for a given PCD token.
|
Retrieves a pointer to a value for a given PCD token.
|
||||||
@ -316,8 +304,7 @@ EFIAPI
|
|||||||
PeiPcdGetPtrEx (
|
PeiPcdGetPtrEx (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves an Boolean value for a given PCD token.
|
Retrieves an Boolean value for a given PCD token.
|
||||||
@ -338,8 +325,7 @@ EFIAPI
|
|||||||
PeiPcdGetBoolEx (
|
PeiPcdGetBoolEx (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the size of the value for a given PCD token.
|
Retrieves the size of the value for a given PCD token.
|
||||||
@ -358,8 +344,7 @@ EFIAPI
|
|||||||
PeiPcdGetSizeEx (
|
PeiPcdGetSizeEx (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber
|
IN UINTN TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 8-bit value for a given PCD token.
|
Sets an 8-bit value for a given PCD token.
|
||||||
@ -383,8 +368,7 @@ EFIAPI
|
|||||||
PeiPcdSet8 (
|
PeiPcdSet8 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 16-bit value for a given PCD token.
|
Sets an 16-bit value for a given PCD token.
|
||||||
@ -408,8 +392,7 @@ EFIAPI
|
|||||||
PeiPcdSet16 (
|
PeiPcdSet16 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 32-bit value for a given PCD token.
|
Sets an 32-bit value for a given PCD token.
|
||||||
@ -433,8 +416,7 @@ EFIAPI
|
|||||||
PeiPcdSet32 (
|
PeiPcdSet32 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 64-bit value for a given PCD token.
|
Sets an 64-bit value for a given PCD token.
|
||||||
@ -458,8 +440,7 @@ EFIAPI
|
|||||||
PeiPcdSet64 (
|
PeiPcdSet64 (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets a value of a specified size for a given PCD token.
|
Sets a value of a specified size for a given PCD token.
|
||||||
@ -488,8 +469,7 @@ PeiPcdSetPtr (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an Boolean value for a given PCD token.
|
Sets an Boolean value for a given PCD token.
|
||||||
@ -513,8 +493,7 @@ EFIAPI
|
|||||||
PeiPcdSetBool (
|
PeiPcdSetBool (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN BOOLEAN Value
|
IN BOOLEAN Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 8-bit value for a given PCD token.
|
Sets an 8-bit value for a given PCD token.
|
||||||
@ -540,8 +519,7 @@ PeiPcdSet8Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 16-bit value for a given PCD token.
|
Sets an 16-bit value for a given PCD token.
|
||||||
@ -567,8 +545,7 @@ PeiPcdSet16Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 32-bit value for a given PCD token.
|
Sets an 32-bit value for a given PCD token.
|
||||||
@ -594,8 +571,7 @@ PeiPcdSet32Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an 64-bit value for a given PCD token.
|
Sets an 64-bit value for a given PCD token.
|
||||||
@ -621,8 +597,7 @@ PeiPcdSet64Ex (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets a value of a specified size for a given PCD token.
|
Sets a value of a specified size for a given PCD token.
|
||||||
@ -653,8 +628,7 @@ PeiPcdSetPtrEx (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN OUT UINTN *SizeOfBuffer,
|
IN OUT UINTN *SizeOfBuffer,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets an Boolean value for a given PCD token.
|
Sets an Boolean value for a given PCD token.
|
||||||
@ -680,8 +654,7 @@ PeiPcdSetBoolEx (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN BOOLEAN Value
|
IN BOOLEAN Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Specifies a function to be called anytime the value of a designated token is changed.
|
Specifies a function to be called anytime the value of a designated token is changed.
|
||||||
@ -701,8 +674,7 @@ PeiRegisterCallBackOnSet (
|
|||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN PCD_PPI_CALLBACK CallBackFunction
|
IN PCD_PPI_CALLBACK CallBackFunction
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Cancels a previously set callback function for a particular PCD token number.
|
Cancels a previously set callback function for a particular PCD token number.
|
||||||
@ -722,8 +694,7 @@ PcdUnRegisterCallBackOnSet (
|
|||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN PCD_PPI_CALLBACK CallBackFunction
|
IN PCD_PPI_CALLBACK CallBackFunction
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the next valid PCD token for a given namespace.
|
Retrieves the next valid PCD token for a given namespace.
|
||||||
@ -748,8 +719,7 @@ EFIAPI
|
|||||||
PeiPcdGetNextToken (
|
PeiPcdGetNextToken (
|
||||||
IN CONST EFI_GUID *Guid, OPTIONAL
|
IN CONST EFI_GUID *Guid, OPTIONAL
|
||||||
IN OUT UINTN *TokenNumber
|
IN OUT UINTN *TokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the next valid PCD token namespace for a given namespace.
|
Retrieves the next valid PCD token namespace for a given namespace.
|
||||||
@ -776,8 +746,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiPcdGetNextTokenSpace (
|
PeiPcdGetNextTokenSpace (
|
||||||
IN OUT CONST EFI_GUID **Guid
|
IN OUT CONST EFI_GUID **Guid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/* Internal Function definitions */
|
/* Internal Function definitions */
|
||||||
@ -790,8 +759,7 @@ PeiPcdGetNextTokenSpace (
|
|||||||
PEI_PCD_DATABASE *
|
PEI_PCD_DATABASE *
|
||||||
GetPcdDatabase (
|
GetPcdDatabase (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wrapper function for setting non-pointer type value for a PCD entry.
|
Wrapper function for setting non-pointer type value for a PCD entry.
|
||||||
@ -808,8 +776,7 @@ SetValueWorker (
|
|||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set value for an PCD entry
|
Set value for an PCD entry
|
||||||
@ -832,8 +799,7 @@ SetWorker (
|
|||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN OUT UINTN *Size,
|
IN OUT UINTN *Size,
|
||||||
IN BOOLEAN PtrType
|
IN BOOLEAN PtrType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wrapper function for set PCD value for non-Pointer type dynamic-ex PCD.
|
Wrapper function for set PCD value for non-Pointer type dynamic-ex PCD.
|
||||||
@ -852,8 +818,7 @@ ExSetValueWorker (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set value for a dynamic PCD entry.
|
Set value for a dynamic PCD entry.
|
||||||
@ -880,8 +845,7 @@ ExSetWorker (
|
|||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN OUT UINTN *Size,
|
IN OUT UINTN *Size,
|
||||||
IN BOOLEAN PtrType
|
IN BOOLEAN PtrType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the PCD entry pointer in PCD database.
|
Get the PCD entry pointer in PCD database.
|
||||||
@ -901,8 +865,7 @@ VOID *
|
|||||||
GetWorker (
|
GetWorker (
|
||||||
IN UINTN TokenNumber,
|
IN UINTN TokenNumber,
|
||||||
IN UINTN GetSize
|
IN UINTN GetSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wrapper function for get PCD value for dynamic-ex PCD.
|
Wrapper function for get PCD value for dynamic-ex PCD.
|
||||||
@ -919,8 +882,7 @@ ExGetWorker (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN ExTokenNumber,
|
IN UINTN ExTokenNumber,
|
||||||
IN UINTN GetSize
|
IN UINTN GetSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINTN TokenNumber;
|
UINTN TokenNumber;
|
||||||
@ -945,8 +907,7 @@ UINTN
|
|||||||
GetExPcdTokenNumber (
|
GetExPcdTokenNumber (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN ExTokenNumber
|
IN UINTN ExTokenNumber
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The function registers the CallBackOnSet fucntion
|
The function registers the CallBackOnSet fucntion
|
||||||
@ -976,8 +937,7 @@ PeiRegisterCallBackWorker (
|
|||||||
VOID
|
VOID
|
||||||
BuildPcdDatabase (
|
BuildPcdDatabase (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get SKU ID tabble from PCD database.
|
Get SKU ID tabble from PCD database.
|
||||||
@ -992,8 +952,7 @@ SKU_ID *
|
|||||||
GetSkuIdArray (
|
GetSkuIdArray (
|
||||||
IN UINTN LocalTokenNumberTableIdx,
|
IN UINTN LocalTokenNumberTableIdx,
|
||||||
IN PEI_PCD_DATABASE *Database
|
IN PEI_PCD_DATABASE *Database
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get index of PCD entry in size table.
|
Get index of PCD entry in size table.
|
||||||
@ -1008,8 +967,7 @@ UINTN
|
|||||||
GetSizeTableIndex (
|
GetSizeTableIndex (
|
||||||
IN UINTN LocalTokenNumberTableIdx,
|
IN UINTN LocalTokenNumberTableIdx,
|
||||||
IN PEI_PCD_DATABASE *Database
|
IN PEI_PCD_DATABASE *Database
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get PCD value's size for POINTER type PCD.
|
Get PCD value's size for POINTER type PCD.
|
||||||
@ -1029,8 +987,7 @@ GetPtrTypeSize (
|
|||||||
IN UINTN LocalTokenNumberTableIdx,
|
IN UINTN LocalTokenNumberTableIdx,
|
||||||
OUT UINTN *MaxSize,
|
OUT UINTN *MaxSize,
|
||||||
IN PEI_PCD_DATABASE *Database
|
IN PEI_PCD_DATABASE *Database
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set PCD value's size for POINTER type PCD.
|
Set PCD value's size for POINTER type PCD.
|
||||||
@ -1051,8 +1008,7 @@ SetPtrTypeSize (
|
|||||||
IN UINTN LocalTokenNumberTableIdx,
|
IN UINTN LocalTokenNumberTableIdx,
|
||||||
IN OUT UINTN *CurrentSize,
|
IN OUT UINTN *CurrentSize,
|
||||||
IN PEI_PCD_DATABASE *Database
|
IN PEI_PCD_DATABASE *Database
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
extern EFI_GUID gPcdDataBaseHobGuid;
|
extern EFI_GUID gPcdDataBaseHobGuid;
|
||||||
|
@ -419,8 +419,7 @@ ConvertRtcTimeToEfiTime (
|
|||||||
IN OUT EFI_TIME *Time,
|
IN OUT EFI_TIME *Time,
|
||||||
IN UINT8 Century,
|
IN UINT8 Century,
|
||||||
IN RTC_REGISTER_B RegisterB
|
IN RTC_REGISTER_B RegisterB
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
RtcWaitToUpdate (
|
RtcWaitToUpdate (
|
||||||
|
@ -511,8 +511,7 @@ extern EFI_GUID gTianoHiiIfrGuid;
|
|||||||
VOID
|
VOID
|
||||||
InitializeBrowserStrings (
|
InitializeBrowserStrings (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prints a unicode string to the default console,
|
Prints a unicode string to the default console,
|
||||||
@ -526,8 +525,7 @@ InitializeBrowserStrings (
|
|||||||
UINTN
|
UINTN
|
||||||
PrintString (
|
PrintString (
|
||||||
IN CHAR16 *String
|
IN CHAR16 *String
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prints a chracter to the default console,
|
Prints a chracter to the default console,
|
||||||
@ -541,8 +539,7 @@ PrintString (
|
|||||||
UINTN
|
UINTN
|
||||||
PrintChar (
|
PrintChar (
|
||||||
CHAR16 Character
|
CHAR16 Character
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prints a formatted unicode string to the default console, at
|
Prints a formatted unicode string to the default console, at
|
||||||
@ -562,8 +559,7 @@ PrintAt (
|
|||||||
IN UINTN Row,
|
IN UINTN Row,
|
||||||
IN CHAR16 *Fmt,
|
IN CHAR16 *Fmt,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prints a unicode string to the default console, at
|
Prints a unicode string to the default console, at
|
||||||
@ -581,8 +577,7 @@ PrintStringAt (
|
|||||||
IN UINTN Column,
|
IN UINTN Column,
|
||||||
IN UINTN Row,
|
IN UINTN Row,
|
||||||
IN CHAR16 *String
|
IN CHAR16 *String
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prints a chracter to the default console, at
|
Prints a chracter to the default console, at
|
||||||
@ -600,8 +595,7 @@ PrintCharAt (
|
|||||||
IN UINTN Column,
|
IN UINTN Column,
|
||||||
IN UINTN Row,
|
IN UINTN Row,
|
||||||
CHAR16 Character
|
CHAR16 Character
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Parse opcodes in the formset IFR binary.
|
Parse opcodes in the formset IFR binary.
|
||||||
@ -615,8 +609,7 @@ PrintCharAt (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
ParseOpCodes (
|
ParseOpCodes (
|
||||||
IN FORM_BROWSER_FORMSET *FormSet
|
IN FORM_BROWSER_FORMSET *FormSet
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Free resources allocated for a FormSet.
|
Free resources allocated for a FormSet.
|
||||||
@ -627,8 +620,7 @@ ParseOpCodes (
|
|||||||
VOID
|
VOID
|
||||||
DestroyFormSet (
|
DestroyFormSet (
|
||||||
IN OUT FORM_BROWSER_FORMSET *FormSet
|
IN OUT FORM_BROWSER_FORMSET *FormSet
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function displays the page frame.
|
This function displays the page frame.
|
||||||
@ -637,8 +629,7 @@ DestroyFormSet (
|
|||||||
VOID
|
VOID
|
||||||
DisplayPageFrame (
|
DisplayPageFrame (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create a new string in HII Package List.
|
Create a new string in HII Package List.
|
||||||
@ -654,8 +645,7 @@ EFI_STRING_ID
|
|||||||
NewString (
|
NewString (
|
||||||
IN CHAR16 *String,
|
IN CHAR16 *String,
|
||||||
IN EFI_HII_HANDLE HiiHandle
|
IN EFI_HII_HANDLE HiiHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Delete a string from HII Package List.
|
Delete a string from HII Package List.
|
||||||
@ -670,8 +660,7 @@ EFI_STATUS
|
|||||||
DeleteString (
|
DeleteString (
|
||||||
IN EFI_STRING_ID StringId,
|
IN EFI_STRING_ID StringId,
|
||||||
IN EFI_HII_HANDLE HiiHandle
|
IN EFI_HII_HANDLE HiiHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the string based on the StringId and HII Package List Handle.
|
Get the string based on the StringId and HII Package List Handle.
|
||||||
@ -687,8 +676,7 @@ CHAR16 *
|
|||||||
GetToken (
|
GetToken (
|
||||||
IN EFI_STRING_ID Token,
|
IN EFI_STRING_ID Token,
|
||||||
IN EFI_HII_HANDLE HiiHandle
|
IN EFI_HII_HANDLE HiiHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Draw a pop up windows based on the dimension, number of lines and
|
Draw a pop up windows based on the dimension, number of lines and
|
||||||
@ -704,8 +692,7 @@ CreateSharedPopUp (
|
|||||||
IN UINTN RequestedWidth,
|
IN UINTN RequestedWidth,
|
||||||
IN UINTN NumberOfLines,
|
IN UINTN NumberOfLines,
|
||||||
IN VA_LIST Marker
|
IN VA_LIST Marker
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Routine used to abstract a generic dialog interface and return the selected key or string
|
Routine used to abstract a generic dialog interface and return the selected key or string
|
||||||
@ -742,8 +729,7 @@ CreateDialog (
|
|||||||
OUT CHAR16 *StringBuffer,
|
OUT CHAR16 *StringBuffer,
|
||||||
OUT EFI_INPUT_KEY *KeyValue,
|
OUT EFI_INPUT_KEY *KeyValue,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get Question's current Value.
|
Get Question's current Value.
|
||||||
@ -763,8 +749,7 @@ GetQuestionValue (
|
|||||||
IN FORM_BROWSER_FORM *Form,
|
IN FORM_BROWSER_FORM *Form,
|
||||||
IN OUT FORM_BROWSER_STATEMENT *Question,
|
IN OUT FORM_BROWSER_STATEMENT *Question,
|
||||||
IN BOOLEAN Cached
|
IN BOOLEAN Cached
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Save Question Value to edit copy(cached) or Storage(uncached).
|
Save Question Value to edit copy(cached) or Storage(uncached).
|
||||||
@ -784,8 +769,7 @@ SetQuestionValue (
|
|||||||
IN FORM_BROWSER_FORM *Form,
|
IN FORM_BROWSER_FORM *Form,
|
||||||
IN OUT FORM_BROWSER_STATEMENT *Question,
|
IN OUT FORM_BROWSER_STATEMENT *Question,
|
||||||
IN BOOLEAN Cached
|
IN BOOLEAN Cached
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Perform inconsistent check for a Form.
|
Perform inconsistent check for a Form.
|
||||||
@ -805,8 +789,7 @@ ValidateQuestion (
|
|||||||
IN FORM_BROWSER_FORM *Form,
|
IN FORM_BROWSER_FORM *Form,
|
||||||
IN FORM_BROWSER_STATEMENT *Question,
|
IN FORM_BROWSER_STATEMENT *Question,
|
||||||
IN UINTN Type
|
IN UINTN Type
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Submit a Form.
|
Submit a Form.
|
||||||
@ -821,8 +804,7 @@ EFI_STATUS
|
|||||||
SubmitForm (
|
SubmitForm (
|
||||||
IN FORM_BROWSER_FORMSET *FormSet,
|
IN FORM_BROWSER_FORMSET *FormSet,
|
||||||
IN FORM_BROWSER_FORM *Form
|
IN FORM_BROWSER_FORM *Form
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset Question to its default value.
|
Reset Question to its default value.
|
||||||
@ -841,8 +823,7 @@ GetQuestionDefault (
|
|||||||
IN FORM_BROWSER_FORM *Form,
|
IN FORM_BROWSER_FORM *Form,
|
||||||
IN FORM_BROWSER_STATEMENT *Question,
|
IN FORM_BROWSER_STATEMENT *Question,
|
||||||
IN UINT16 DefaultId
|
IN UINT16 DefaultId
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get current setting of Questions.
|
Get current setting of Questions.
|
||||||
@ -855,8 +836,7 @@ GetQuestionDefault (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
InitializeCurrentSetting (
|
InitializeCurrentSetting (
|
||||||
IN OUT FORM_BROWSER_FORMSET *FormSet
|
IN OUT FORM_BROWSER_FORMSET *FormSet
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize the internal data structure of a FormSet.
|
Initialize the internal data structure of a FormSet.
|
||||||
@ -876,8 +856,7 @@ InitializeFormSet (
|
|||||||
IN EFI_HII_HANDLE Handle,
|
IN EFI_HII_HANDLE Handle,
|
||||||
IN OUT EFI_GUID *FormSetGuid,
|
IN OUT EFI_GUID *FormSetGuid,
|
||||||
OUT FORM_BROWSER_FORMSET *FormSet
|
OUT FORM_BROWSER_FORMSET *FormSet
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset Questions in a Form to their default value.
|
Reset Questions in a Form to their default value.
|
||||||
@ -894,8 +873,7 @@ ExtractFormDefault (
|
|||||||
IN FORM_BROWSER_FORMSET *FormSet,
|
IN FORM_BROWSER_FORMSET *FormSet,
|
||||||
IN FORM_BROWSER_FORM *Form,
|
IN FORM_BROWSER_FORM *Form,
|
||||||
IN UINT16 DefaultId
|
IN UINT16 DefaultId
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize Question's Edit copy from Storage.
|
Initialize Question's Edit copy from Storage.
|
||||||
@ -910,8 +888,7 @@ EFI_STATUS
|
|||||||
LoadFormConfig (
|
LoadFormConfig (
|
||||||
IN FORM_BROWSER_FORMSET *FormSet,
|
IN FORM_BROWSER_FORMSET *FormSet,
|
||||||
IN FORM_BROWSER_FORM *Form
|
IN FORM_BROWSER_FORM *Form
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert setting of Buffer Storage or NameValue Storage to <ConfigResp>.
|
Convert setting of Buffer Storage or NameValue Storage to <ConfigResp>.
|
||||||
@ -927,8 +904,7 @@ EFI_STATUS
|
|||||||
StorageToConfigResp (
|
StorageToConfigResp (
|
||||||
IN FORMSET_STORAGE *Storage,
|
IN FORMSET_STORAGE *Storage,
|
||||||
IN CHAR16 **ConfigResp
|
IN CHAR16 **ConfigResp
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert <ConfigResp> to settings in Buffer Storage or NameValue Storage.
|
Convert <ConfigResp> to settings in Buffer Storage or NameValue Storage.
|
||||||
@ -944,8 +920,7 @@ EFI_STATUS
|
|||||||
ConfigRespToStorage (
|
ConfigRespToStorage (
|
||||||
IN FORMSET_STORAGE *Storage,
|
IN FORMSET_STORAGE *Storage,
|
||||||
IN CHAR16 *ConfigResp
|
IN CHAR16 *ConfigResp
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Fill storage's edit copy with settings requested from Configuration Driver.
|
Fill storage's edit copy with settings requested from Configuration Driver.
|
||||||
@ -960,8 +935,7 @@ EFI_STATUS
|
|||||||
LoadStorage (
|
LoadStorage (
|
||||||
IN FORM_BROWSER_FORMSET *FormSet,
|
IN FORM_BROWSER_FORMSET *FormSet,
|
||||||
IN FORMSET_STORAGE *Storage
|
IN FORMSET_STORAGE *Storage
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Fetch the Ifr binary data of a FormSet.
|
Fetch the Ifr binary data of a FormSet.
|
||||||
@ -986,8 +960,7 @@ GetIfrBinaryData (
|
|||||||
IN OUT EFI_GUID *FormSetGuid,
|
IN OUT EFI_GUID *FormSetGuid,
|
||||||
OUT UINTN *BinaryLength,
|
OUT UINTN *BinaryLength,
|
||||||
OUT UINT8 **BinaryData
|
OUT UINT8 **BinaryData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This is the routine which an external caller uses to direct the browser
|
This is the routine which an external caller uses to direct the browser
|
||||||
@ -1027,8 +1000,7 @@ SendForm (
|
|||||||
IN UINT16 FormId, OPTIONAL
|
IN UINT16 FormId, OPTIONAL
|
||||||
IN CONST EFI_SCREEN_DESCRIPTOR *ScreenDimensions, OPTIONAL
|
IN CONST EFI_SCREEN_DESCRIPTOR *ScreenDimensions, OPTIONAL
|
||||||
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest OPTIONAL
|
OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function is called by a callback handler to retrieve uncommitted state
|
This function is called by a callback handler to retrieve uncommitted state
|
||||||
@ -1066,7 +1038,6 @@ BrowserCallback (
|
|||||||
IN BOOLEAN RetrieveData,
|
IN BOOLEAN RetrieveData,
|
||||||
IN CONST EFI_GUID *VariableGuid, OPTIONAL
|
IN CONST EFI_GUID *VariableGuid, OPTIONAL
|
||||||
IN CONST CHAR16 *VariableName OPTIONAL
|
IN CONST CHAR16 *VariableName OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -180,8 +180,7 @@ extern UI_MENU_SELECTION *gCurrentSelection;
|
|||||||
VOID
|
VOID
|
||||||
UiInitMenu (
|
UiInitMenu (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize Menu option list.
|
Initialize Menu option list.
|
||||||
@ -190,8 +189,7 @@ UiInitMenu (
|
|||||||
VOID
|
VOID
|
||||||
UiInitMenuList (
|
UiInitMenuList (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Remove a Menu in list, and return FormId/QuestionId for previous Menu.
|
Remove a Menu in list, and return FormId/QuestionId for previous Menu.
|
||||||
@ -202,8 +200,7 @@ UiInitMenuList (
|
|||||||
VOID
|
VOID
|
||||||
UiRemoveMenuListEntry (
|
UiRemoveMenuListEntry (
|
||||||
OUT UI_MENU_SELECTION *Selection
|
OUT UI_MENU_SELECTION *Selection
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Free Menu option linked list.
|
Free Menu option linked list.
|
||||||
@ -212,8 +209,7 @@ UiRemoveMenuListEntry (
|
|||||||
VOID
|
VOID
|
||||||
UiFreeMenuList (
|
UiFreeMenuList (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add one menu entry to the linked lst
|
Add one menu entry to the linked lst
|
||||||
@ -224,8 +220,7 @@ UiFreeMenuList (
|
|||||||
VOID
|
VOID
|
||||||
UiAddMenuListEntry (
|
UiAddMenuListEntry (
|
||||||
IN UI_MENU_SELECTION *Selection
|
IN UI_MENU_SELECTION *Selection
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Free Menu option linked list.
|
Free Menu option linked list.
|
||||||
@ -234,8 +229,7 @@ UiAddMenuListEntry (
|
|||||||
VOID
|
VOID
|
||||||
UiFreeMenu (
|
UiFreeMenu (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Add one menu option by specified description and context.
|
Add one menu option by specified description and context.
|
||||||
@ -254,8 +248,7 @@ UiAddMenuOption (
|
|||||||
IN FORM_BROWSER_STATEMENT *Statement,
|
IN FORM_BROWSER_STATEMENT *Statement,
|
||||||
IN UINT16 NumberOfLines,
|
IN UINT16 NumberOfLines,
|
||||||
IN UINT16 MenuItemCount
|
IN UINT16 MenuItemCount
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Display menu and wait for user to select one menu option, then return it.
|
Display menu and wait for user to select one menu option, then return it.
|
||||||
@ -271,8 +264,7 @@ UiAddMenuOption (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
UiDisplayMenu (
|
UiDisplayMenu (
|
||||||
IN OUT UI_MENU_SELECTION *Selection
|
IN OUT UI_MENU_SELECTION *Selection
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Free up the resource allocated for all strings required
|
Free up the resource allocated for all strings required
|
||||||
@ -282,8 +274,7 @@ UiDisplayMenu (
|
|||||||
VOID
|
VOID
|
||||||
FreeBrowserStrings (
|
FreeBrowserStrings (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The worker function that send the displays to the screen. On output,
|
The worker function that send the displays to the screen. On output,
|
||||||
@ -301,8 +292,7 @@ FreeBrowserStrings (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
SetupBrowser (
|
SetupBrowser (
|
||||||
IN OUT UI_MENU_SELECTION *Selection
|
IN OUT UI_MENU_SELECTION *Selection
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
VSPrint worker function that prints a Value as a decimal number in Buffer.
|
VSPrint worker function that prints a Value as a decimal number in Buffer.
|
||||||
@ -320,8 +310,7 @@ ValueToString (
|
|||||||
IN CHAR16 *Buffer,
|
IN CHAR16 *Buffer,
|
||||||
IN BOOLEAN Flags,
|
IN BOOLEAN Flags,
|
||||||
IN INT64 Value
|
IN INT64 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set Buffer to Value for Size bytes.
|
Set Buffer to Value for Size bytes.
|
||||||
@ -336,8 +325,7 @@ SetUnicodeMem (
|
|||||||
IN VOID *Buffer,
|
IN VOID *Buffer,
|
||||||
IN UINTN Size,
|
IN UINTN Size,
|
||||||
IN CHAR16 Value
|
IN CHAR16 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wait for a given event to fire, or for an optional timeout to expire.
|
Wait for a given event to fire, or for an optional timeout to expire.
|
||||||
@ -355,8 +343,7 @@ UiWaitForSingleEvent (
|
|||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN UINT64 Timeout, OPTIONAL
|
IN UINT64 Timeout, OPTIONAL
|
||||||
IN UINT8 RefreshInterval OPTIONAL
|
IN UINT8 RefreshInterval OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Draw a pop up windows based on the dimension, number of lines and
|
Draw a pop up windows based on the dimension, number of lines and
|
||||||
@ -372,8 +359,7 @@ CreatePopUp (
|
|||||||
IN UINTN ScreenWidth,
|
IN UINTN ScreenWidth,
|
||||||
IN UINTN NumberOfLines,
|
IN UINTN NumberOfLines,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get string or password input from user.
|
Get string or password input from user.
|
||||||
@ -391,8 +377,7 @@ ReadString (
|
|||||||
IN UI_MENU_OPTION *MenuOption,
|
IN UI_MENU_OPTION *MenuOption,
|
||||||
IN CHAR16 *Prompt,
|
IN CHAR16 *Prompt,
|
||||||
OUT CHAR16 *StringPtr
|
OUT CHAR16 *StringPtr
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get selection for OneOf and OrderedList (Left/Right will be ignored).
|
Get selection for OneOf and OrderedList (Left/Right will be ignored).
|
||||||
@ -408,8 +393,7 @@ EFI_STATUS
|
|||||||
GetSelectionInputPopUp (
|
GetSelectionInputPopUp (
|
||||||
IN UI_MENU_SELECTION *Selection,
|
IN UI_MENU_SELECTION *Selection,
|
||||||
IN UI_MENU_OPTION *MenuOption
|
IN UI_MENU_OPTION *MenuOption
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine reads a numeric value from the user input.
|
This routine reads a numeric value from the user input.
|
||||||
@ -425,8 +409,7 @@ EFI_STATUS
|
|||||||
GetNumericInput (
|
GetNumericInput (
|
||||||
IN UI_MENU_SELECTION *Selection,
|
IN UI_MENU_SELECTION *Selection,
|
||||||
IN UI_MENU_OPTION *MenuOption
|
IN UI_MENU_OPTION *MenuOption
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update status bar on the bottom of menu.
|
Update status bar on the bottom of menu.
|
||||||
@ -441,8 +424,7 @@ UpdateStatusBar (
|
|||||||
IN UINTN MessageType,
|
IN UINTN MessageType,
|
||||||
IN UINT8 Flags,
|
IN UINT8 Flags,
|
||||||
IN BOOLEAN State
|
IN BOOLEAN State
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process Question Config.
|
Process Question Config.
|
||||||
@ -458,8 +440,7 @@ EFI_STATUS
|
|||||||
ProcessQuestionConfig (
|
ProcessQuestionConfig (
|
||||||
IN UI_MENU_SELECTION *Selection,
|
IN UI_MENU_SELECTION *Selection,
|
||||||
IN FORM_BROWSER_STATEMENT *Question
|
IN FORM_BROWSER_STATEMENT *Question
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Print Question Value according to it's storage width and display attributes.
|
Print Question Value according to it's storage width and display attributes.
|
||||||
@ -477,8 +458,7 @@ PrintFormattedNumber (
|
|||||||
IN FORM_BROWSER_STATEMENT *Question,
|
IN FORM_BROWSER_STATEMENT *Question,
|
||||||
IN OUT CHAR16 *FormattedNumber,
|
IN OUT CHAR16 *FormattedNumber,
|
||||||
IN UINTN BufferSize
|
IN UINTN BufferSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Search an Option of a Question by its value.
|
Search an Option of a Question by its value.
|
||||||
@ -494,8 +474,7 @@ QUESTION_OPTION *
|
|||||||
ValueToOption (
|
ValueToOption (
|
||||||
IN FORM_BROWSER_STATEMENT *Question,
|
IN FORM_BROWSER_STATEMENT *Question,
|
||||||
IN EFI_HII_VALUE *OptionValue
|
IN EFI_HII_VALUE *OptionValue
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process a Question's Option (whether selected or un-selected).
|
Process a Question's Option (whether selected or un-selected).
|
||||||
@ -515,8 +494,7 @@ ProcessOptions (
|
|||||||
IN UI_MENU_OPTION *MenuOption,
|
IN UI_MENU_OPTION *MenuOption,
|
||||||
IN BOOLEAN Selected,
|
IN BOOLEAN Selected,
|
||||||
OUT CHAR16 **OptionString
|
OUT CHAR16 **OptionString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Process the help string: Split StringPtr to several lines of strings stored in
|
Process the help string: Split StringPtr to several lines of strings stored in
|
||||||
@ -532,8 +510,7 @@ ProcessHelpString (
|
|||||||
IN CHAR16 *StringPtr,
|
IN CHAR16 *StringPtr,
|
||||||
OUT CHAR16 **FormattedString,
|
OUT CHAR16 **FormattedString,
|
||||||
IN UINTN RowCount
|
IN UINTN RowCount
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Update key's help imformation.
|
Update key's help imformation.
|
||||||
@ -546,8 +523,7 @@ VOID
|
|||||||
UpdateKeyHelp (
|
UpdateKeyHelp (
|
||||||
IN UI_MENU_OPTION *MenuOption,
|
IN UI_MENU_OPTION *MenuOption,
|
||||||
IN BOOLEAN Selected
|
IN BOOLEAN Selected
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clear retangle with specified text attribute.
|
Clear retangle with specified text attribute.
|
||||||
@ -566,8 +542,7 @@ ClearLines (
|
|||||||
UINTN TopRow,
|
UINTN TopRow,
|
||||||
UINTN BottomRow,
|
UINTN BottomRow,
|
||||||
UINTN TextAttribute
|
UINTN TextAttribute
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Count the storage space of a Unicode string.
|
Count the storage space of a Unicode string.
|
||||||
@ -586,8 +561,7 @@ ClearLines (
|
|||||||
UINTN
|
UINTN
|
||||||
GetStringWidth (
|
GetStringWidth (
|
||||||
CHAR16 *String
|
CHAR16 *String
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Will copy LineWidth amount of a string in the OutputString buffer and return the
|
Will copy LineWidth amount of a string in the OutputString buffer and return the
|
||||||
@ -608,8 +582,7 @@ GetLineByWidth (
|
|||||||
IN UINT16 LineWidth,
|
IN UINT16 LineWidth,
|
||||||
IN OUT UINTN *Index,
|
IN OUT UINTN *Index,
|
||||||
OUT CHAR16 **OutputString
|
OUT CHAR16 **OutputString
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the supported width for a particular op-code
|
Get the supported width for a particular op-code
|
||||||
@ -624,8 +597,7 @@ UINT16
|
|||||||
GetWidth (
|
GetWidth (
|
||||||
IN FORM_BROWSER_STATEMENT *Statement,
|
IN FORM_BROWSER_STATEMENT *Statement,
|
||||||
IN EFI_HII_HANDLE Handle
|
IN EFI_HII_HANDLE Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Concatenate a narrow string to another string.
|
Concatenate a narrow string to another string.
|
||||||
@ -639,8 +611,7 @@ VOID
|
|||||||
NewStrCat (
|
NewStrCat (
|
||||||
CHAR16 *Destination,
|
CHAR16 *Destination,
|
||||||
CHAR16 *Source
|
CHAR16 *Source
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Wait for a key to be pressed by user.
|
Wait for a key to be pressed by user.
|
||||||
@ -653,8 +624,7 @@ NewStrCat (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
WaitForKeyStroke (
|
WaitForKeyStroke (
|
||||||
OUT EFI_INPUT_KEY *Key
|
OUT EFI_INPUT_KEY *Key
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reset stack pointer to begin of the stack.
|
Reset stack pointer to begin of the stack.
|
||||||
@ -663,8 +633,7 @@ WaitForKeyStroke (
|
|||||||
VOID
|
VOID
|
||||||
ResetScopeStack (
|
ResetScopeStack (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Push an Operand onto the Stack
|
Push an Operand onto the Stack
|
||||||
@ -679,8 +648,7 @@ ResetScopeStack (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PushScope (
|
PushScope (
|
||||||
IN UINT8 Operand
|
IN UINT8 Operand
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Pop an Operand from the Stack
|
Pop an Operand from the Stack
|
||||||
@ -695,8 +663,7 @@ PushScope (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PopScope (
|
PopScope (
|
||||||
OUT UINT8 *Operand
|
OUT UINT8 *Operand
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get Form given its FormId.
|
Get Form given its FormId.
|
||||||
@ -712,8 +679,7 @@ FORM_BROWSER_FORM *
|
|||||||
IdToForm (
|
IdToForm (
|
||||||
IN FORM_BROWSER_FORMSET *FormSet,
|
IN FORM_BROWSER_FORMSET *FormSet,
|
||||||
IN UINT16 FormId
|
IN UINT16 FormId
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Search a Question in Formset scope using its QuestionId.
|
Search a Question in Formset scope using its QuestionId.
|
||||||
@ -731,8 +697,7 @@ IdToQuestion (
|
|||||||
IN FORM_BROWSER_FORMSET *FormSet,
|
IN FORM_BROWSER_FORMSET *FormSet,
|
||||||
IN FORM_BROWSER_FORM *Form,
|
IN FORM_BROWSER_FORM *Form,
|
||||||
IN UINT16 QuestionId
|
IN UINT16 QuestionId
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Zero extend integer/boolean/date/time to UINT64 for comparing.
|
Zero extend integer/boolean/date/time to UINT64 for comparing.
|
||||||
@ -743,8 +708,7 @@ IdToQuestion (
|
|||||||
VOID
|
VOID
|
||||||
ExtendValueToU64 (
|
ExtendValueToU64 (
|
||||||
IN EFI_HII_VALUE *Value
|
IN EFI_HII_VALUE *Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compare two Hii value.
|
Compare two Hii value.
|
||||||
@ -764,8 +728,7 @@ CompareHiiValue (
|
|||||||
IN EFI_HII_VALUE *Value1,
|
IN EFI_HII_VALUE *Value1,
|
||||||
IN EFI_HII_VALUE *Value2,
|
IN EFI_HII_VALUE *Value2,
|
||||||
IN EFI_HII_HANDLE HiiHandle OPTIONAL
|
IN EFI_HII_HANDLE HiiHandle OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Evaluate the result of a HII expression
|
Evaluate the result of a HII expression
|
||||||
@ -788,7 +751,6 @@ EvaluateExpression (
|
|||||||
IN FORM_BROWSER_FORMSET *FormSet,
|
IN FORM_BROWSER_FORMSET *FormSet,
|
||||||
IN FORM_BROWSER_FORM *Form,
|
IN FORM_BROWSER_FORM *Form,
|
||||||
IN OUT FORM_EXPRESSION *Expression
|
IN OUT FORM_EXPRESSION *Expression
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif // _UI_H
|
#endif // _UI_H
|
||||||
|
@ -86,24 +86,21 @@ EFIAPI
|
|||||||
VariableCommonInitialize (
|
VariableCommonInitialize (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
VariableServiceInitialize (
|
VariableServiceInitialize (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
VariableClassAddressChangeEvent (
|
VariableClassAddressChangeEvent (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -115,8 +112,7 @@ GetVariable (
|
|||||||
OUT VOID *Data,
|
OUT VOID *Data,
|
||||||
IN VARIABLE_GLOBAL * Global,
|
IN VARIABLE_GLOBAL * Global,
|
||||||
IN UINT32 Instance
|
IN UINT32 Instance
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -126,8 +122,7 @@ GetNextVariableName (
|
|||||||
IN OUT EFI_GUID *VendorGuid,
|
IN OUT EFI_GUID *VendorGuid,
|
||||||
IN VARIABLE_GLOBAL *Global,
|
IN VARIABLE_GLOBAL *Global,
|
||||||
IN UINT32 Instance
|
IN UINT32 Instance
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -141,8 +136,7 @@ SetVariable (
|
|||||||
IN UINTN *VolatileOffset,
|
IN UINTN *VolatileOffset,
|
||||||
IN UINTN *NonVolatileOffset,
|
IN UINTN *NonVolatileOffset,
|
||||||
IN UINT32 Instance
|
IN UINT32 Instance
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -153,7 +147,6 @@ QueryVariableInfo (
|
|||||||
OUT UINT64 *MaximumVariableSize,
|
OUT UINT64 *MaximumVariableSize,
|
||||||
IN VARIABLE_GLOBAL *Global,
|
IN VARIABLE_GLOBAL *Global,
|
||||||
IN UINT32 Instance
|
IN UINT32 Instance
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -622,8 +622,7 @@ CHAR16
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
NibbleToHexChar (
|
NibbleToHexChar (
|
||||||
IN UINT8 Nibble
|
IN UINT8 Nibble
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert binary buffer to a Unicode String in a specified sequence.
|
Convert binary buffer to a Unicode String in a specified sequence.
|
||||||
@ -660,8 +659,7 @@ BufToHexString (
|
|||||||
IN OUT UINTN *StringLen,
|
IN OUT UINTN *StringLen,
|
||||||
IN CONST UINT8 *Buffer,
|
IN CONST UINT8 *Buffer,
|
||||||
IN UINTN BufferSizeInBytes
|
IN UINTN BufferSizeInBytes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -705,8 +703,7 @@ HexStringToBuf (
|
|||||||
IN OUT UINTN *BufferSizeInBytes,
|
IN OUT UINTN *BufferSizeInBytes,
|
||||||
IN CONST CHAR16 *String,
|
IN CONST CHAR16 *String,
|
||||||
OUT UINTN *ConvertedStrLen OPTIONAL
|
OUT UINTN *ConvertedStrLen OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -730,8 +727,7 @@ EFIAPI
|
|||||||
IsHexDigit (
|
IsHexDigit (
|
||||||
OUT UINT8 *Digit,
|
OUT UINT8 *Digit,
|
||||||
IN CHAR16 Char
|
IN CHAR16 Char
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert one Null-terminated Unicode string to a Null-terminated
|
Convert one Null-terminated Unicode string to a Null-terminated
|
||||||
|
@ -70,8 +70,7 @@ PiLibGetSectionFromAnyFv (
|
|||||||
IN UINTN SectionInstance,
|
IN UINTN SectionInstance,
|
||||||
OUT VOID **Buffer,
|
OUT VOID **Buffer,
|
||||||
OUT UINTN *Size
|
OUT UINTN *Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Locates a requested firmware section within a file and returns it to a buffer allocated by this function.
|
Locates a requested firmware section within a file and returns it to a buffer allocated by this function.
|
||||||
@ -123,8 +122,7 @@ PiLibGetSectionFromCurrentFv (
|
|||||||
IN UINTN SectionInstance,
|
IN UINTN SectionInstance,
|
||||||
OUT VOID **Buffer,
|
OUT VOID **Buffer,
|
||||||
OUT UINTN *Size
|
OUT UINTN *Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -170,8 +168,7 @@ PiLibGetSectionFromCurrentFfs (
|
|||||||
IN UINTN SectionInstance,
|
IN UINTN SectionInstance,
|
||||||
OUT VOID **Buffer,
|
OUT VOID **Buffer,
|
||||||
OUT UINTN *Size
|
OUT UINTN *Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -43,8 +43,7 @@ HiiLibPreparePackageList (
|
|||||||
IN UINTN NumberOfPackages,
|
IN UINTN NumberOfPackages,
|
||||||
IN CONST EFI_GUID *GuidId,
|
IN CONST EFI_GUID *GuidId,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function allocates pool for an EFI_HII_PACKAGE_LIST structure
|
This function allocates pool for an EFI_HII_PACKAGE_LIST structure
|
||||||
@ -78,8 +77,7 @@ HiiLibAddPackages (
|
|||||||
IN EFI_HANDLE DriverHandle, OPTIONAL
|
IN EFI_HANDLE DriverHandle, OPTIONAL
|
||||||
OUT EFI_HII_HANDLE *HiiHandle,
|
OUT EFI_HII_HANDLE *HiiHandle,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Removes a package list from the default HII database.
|
Removes a package list from the default HII database.
|
||||||
@ -95,8 +93,7 @@ VOID
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibRemovePackages (
|
HiiLibRemovePackages (
|
||||||
IN EFI_HII_HANDLE HiiHandle
|
IN EFI_HII_HANDLE HiiHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function adds the string into String Package of each language
|
This function adds the string into String Package of each language
|
||||||
@ -122,8 +119,7 @@ HiiLibNewString (
|
|||||||
IN EFI_HII_HANDLE PackageList,
|
IN EFI_HII_HANDLE PackageList,
|
||||||
OUT EFI_STRING_ID *StringId,
|
OUT EFI_STRING_ID *StringId,
|
||||||
IN CONST EFI_STRING String
|
IN CONST EFI_STRING String
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function update the specified string in String Package of each language
|
This function update the specified string in String Package of each language
|
||||||
@ -148,8 +144,7 @@ HiiLibSetString (
|
|||||||
IN EFI_HII_HANDLE PackageList,
|
IN EFI_HII_HANDLE PackageList,
|
||||||
IN EFI_STRING_ID StringId,
|
IN EFI_STRING_ID StringId,
|
||||||
IN CONST EFI_STRING String
|
IN CONST EFI_STRING String
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function try to retrieve string from String package of current language.
|
This function try to retrieve string from String package of current language.
|
||||||
@ -182,8 +177,7 @@ HiiLibGetString (
|
|||||||
IN EFI_STRING_ID StringId,
|
IN EFI_STRING_ID StringId,
|
||||||
OUT EFI_STRING String,
|
OUT EFI_STRING String,
|
||||||
IN OUT UINTN *StringSize
|
IN OUT UINTN *StringSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get string specified by StringId form the HiiHandle. The caller
|
Get string specified by StringId form the HiiHandle. The caller
|
||||||
@ -209,8 +203,7 @@ HiiLibGetStringFromHandle (
|
|||||||
IN EFI_HII_HANDLE HiiHandle,
|
IN EFI_HII_HANDLE HiiHandle,
|
||||||
IN EFI_STRING_ID StringId,
|
IN EFI_STRING_ID StringId,
|
||||||
OUT EFI_STRING *String
|
OUT EFI_STRING *String
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the string given the StringId and String package Producer's Guid. The caller
|
Get the string given the StringId and String package Producer's Guid. The caller
|
||||||
@ -234,8 +227,7 @@ HiiLibGetStringFromToken (
|
|||||||
IN EFI_GUID *ProducerGuid,
|
IN EFI_GUID *ProducerGuid,
|
||||||
IN EFI_STRING_ID StringId,
|
IN EFI_STRING_ID StringId,
|
||||||
OUT EFI_STRING *String
|
OUT EFI_STRING *String
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Determines the handles that are currently active in the database.
|
Determines the handles that are currently active in the database.
|
||||||
@ -257,8 +249,7 @@ EFIAPI
|
|||||||
HiiLibGetHiiHandles (
|
HiiLibGetHiiHandles (
|
||||||
IN OUT UINTN *HandleBufferLength,
|
IN OUT UINTN *HandleBufferLength,
|
||||||
OUT EFI_HII_HANDLE **HiiHandleBuffer
|
OUT EFI_HII_HANDLE **HiiHandleBuffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Extract Hii package list GUID for given HII handle.
|
Extract Hii package list GUID for given HII handle.
|
||||||
@ -277,8 +268,7 @@ EFIAPI
|
|||||||
HiiLibExtractGuidFromHiiHandle (
|
HiiLibExtractGuidFromHiiHandle (
|
||||||
IN EFI_HII_HANDLE Handle,
|
IN EFI_HII_HANDLE Handle,
|
||||||
OUT EFI_GUID *Guid
|
OUT EFI_GUID *Guid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Find HII Handle in the default HII database associated with given Device Path.
|
Find HII Handle in the default HII database associated with given Device Path.
|
||||||
@ -297,8 +287,7 @@ EFI_HII_HANDLE
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibDevicePathToHiiHandle (
|
HiiLibDevicePathToHiiHandle (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -320,8 +309,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibGetCurrentLanguage (
|
HiiLibGetCurrentLanguage (
|
||||||
OUT CHAR8 *Lang
|
OUT CHAR8 *Lang
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get next language from language code list (with separator ';').
|
Get next language from language code list (with separator ';').
|
||||||
@ -340,8 +328,7 @@ EFIAPI
|
|||||||
HiiLibGetNextLanguage (
|
HiiLibGetNextLanguage (
|
||||||
IN OUT CHAR8 **LangCode,
|
IN OUT CHAR8 **LangCode,
|
||||||
OUT CHAR8 *Lang
|
OUT CHAR8 *Lang
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function returns the list of supported languages, in the format specified
|
This function returns the list of supported languages, in the format specified
|
||||||
@ -359,8 +346,7 @@ CHAR8 *
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibGetSupportedLanguages (
|
HiiLibGetSupportedLanguages (
|
||||||
IN EFI_HII_HANDLE HiiHandle
|
IN EFI_HII_HANDLE HiiHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function returns the list of supported 2nd languages, in the format specified
|
This function returns the list of supported 2nd languages, in the format specified
|
||||||
@ -380,8 +366,7 @@ EFIAPI
|
|||||||
HiiLibGetSupportedSecondaryLanguages (
|
HiiLibGetSupportedSecondaryLanguages (
|
||||||
IN EFI_HII_HANDLE HiiHandle,
|
IN EFI_HII_HANDLE HiiHandle,
|
||||||
IN CONST CHAR8 *FirstLanguage
|
IN CONST CHAR8 *FirstLanguage
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -399,8 +384,7 @@ UINT16
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibGetSupportedLanguageNumber (
|
HiiLibGetSupportedLanguageNumber (
|
||||||
IN EFI_HII_HANDLE HiiHandle
|
IN EFI_HII_HANDLE HiiHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Exports the contents of one or all package lists in the HII database into a buffer.
|
Exports the contents of one or all package lists in the HII database into a buffer.
|
||||||
@ -426,8 +410,7 @@ HiiLibExportPackageLists (
|
|||||||
IN EFI_HII_HANDLE Handle,
|
IN EFI_HII_HANDLE Handle,
|
||||||
OUT EFI_HII_PACKAGE_LIST_HEADER **PackageListHeader,
|
OUT EFI_HII_PACKAGE_LIST_HEADER **PackageListHeader,
|
||||||
OUT UINTN *PackageListSize
|
OUT UINTN *PackageListSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -436,8 +419,7 @@ HiiLibListPackageLists (
|
|||||||
IN CONST EFI_GUID *PackageGuid,
|
IN CONST EFI_GUID *PackageGuid,
|
||||||
IN OUT UINTN *HandleBufferLength,
|
IN OUT UINTN *HandleBufferLength,
|
||||||
OUT EFI_HII_HANDLE **Handle
|
OUT EFI_HII_HANDLE **Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert language code from RFC3066 to ISO639-2.
|
Convert language code from RFC3066 to ISO639-2.
|
||||||
@ -463,8 +445,7 @@ EFIAPI
|
|||||||
ConvertRfc3066LanguageToIso639Language (
|
ConvertRfc3066LanguageToIso639Language (
|
||||||
IN CHAR8 *LanguageRfc3066,
|
IN CHAR8 *LanguageRfc3066,
|
||||||
OUT CHAR8 *LanguageIso639
|
OUT CHAR8 *LanguageIso639
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert language code from ISO639-2 to RFC3066.
|
Convert language code from ISO639-2 to RFC3066.
|
||||||
@ -490,8 +471,7 @@ EFIAPI
|
|||||||
ConvertIso639LanguageToRfc3066Language (
|
ConvertIso639LanguageToRfc3066Language (
|
||||||
IN CONST CHAR8 *LanguageIso639,
|
IN CONST CHAR8 *LanguageIso639,
|
||||||
OUT CHAR8 *LanguageRfc3066
|
OUT CHAR8 *LanguageRfc3066
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert language code list from RFC3066 to ISO639-2, e.g. "en-US;fr-FR" will
|
Convert language code list from RFC3066 to ISO639-2, e.g. "en-US;fr-FR" will
|
||||||
@ -508,7 +488,6 @@ CHAR8 *
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
Rfc3066ToIso639 (
|
Rfc3066ToIso639 (
|
||||||
CHAR8 *SupportedLanguages
|
CHAR8 *SupportedLanguages
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -27,8 +27,7 @@ VOID *
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
GetHobList (
|
GetHobList (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the next instance of a HOB type from the starting HOB.
|
Returns the next instance of a HOB type from the starting HOB.
|
||||||
@ -51,8 +50,7 @@ EFIAPI
|
|||||||
GetNextHob (
|
GetNextHob (
|
||||||
IN UINT16 Type,
|
IN UINT16 Type,
|
||||||
IN CONST VOID *HobStart
|
IN CONST VOID *HobStart
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the first instance of a HOB type among the whole HOB list.
|
Returns the first instance of a HOB type among the whole HOB list.
|
||||||
@ -69,8 +67,7 @@ VOID *
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
GetFirstHob (
|
GetFirstHob (
|
||||||
IN UINT16 Type
|
IN UINT16 Type
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function searches the first instance of a HOB from the starting HOB pointer.
|
This function searches the first instance of a HOB from the starting HOB pointer.
|
||||||
@ -96,8 +93,7 @@ EFIAPI
|
|||||||
GetNextGuidHob (
|
GetNextGuidHob (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN CONST VOID *HobStart
|
IN CONST VOID *HobStart
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function searches the first instance of a HOB among the whole HOB list.
|
This function searches the first instance of a HOB among the whole HOB list.
|
||||||
@ -117,8 +113,7 @@ VOID *
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
GetFirstGuidHob (
|
GetFirstGuidHob (
|
||||||
IN CONST EFI_GUID *Guid
|
IN CONST EFI_GUID *Guid
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the Boot Mode from the HOB list.
|
Get the Boot Mode from the HOB list.
|
||||||
@ -135,8 +130,7 @@ EFI_BOOT_MODE
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
GetBootModeHob (
|
GetBootModeHob (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB for a loaded PE32 module.
|
Builds a HOB for a loaded PE32 module.
|
||||||
@ -160,8 +154,7 @@ BuildModuleHob (
|
|||||||
IN EFI_PHYSICAL_ADDRESS MemoryAllocationModule,
|
IN EFI_PHYSICAL_ADDRESS MemoryAllocationModule,
|
||||||
IN UINT64 ModuleLength,
|
IN UINT64 ModuleLength,
|
||||||
IN EFI_PHYSICAL_ADDRESS EntryPoint
|
IN EFI_PHYSICAL_ADDRESS EntryPoint
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB that describes a chunk of system memory.
|
Builds a HOB that describes a chunk of system memory.
|
||||||
@ -184,8 +177,7 @@ BuildResourceDescriptorHob (
|
|||||||
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute,
|
||||||
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
IN EFI_PHYSICAL_ADDRESS PhysicalStart,
|
||||||
IN UINT64 NumberOfBytes
|
IN UINT64 NumberOfBytes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a GUID HOB with a certain data length.
|
Builds a GUID HOB with a certain data length.
|
||||||
@ -210,8 +202,7 @@ EFIAPI
|
|||||||
BuildGuidHob (
|
BuildGuidHob (
|
||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN UINTN DataLength
|
IN UINTN DataLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copies a data buffer to a newly-built HOB.
|
Copies a data buffer to a newly-built HOB.
|
||||||
@ -239,8 +230,7 @@ BuildGuidDataHob (
|
|||||||
IN CONST EFI_GUID *Guid,
|
IN CONST EFI_GUID *Guid,
|
||||||
IN VOID *Data,
|
IN VOID *Data,
|
||||||
IN UINTN DataLength
|
IN UINTN DataLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a Firmware Volume HOB.
|
Builds a Firmware Volume HOB.
|
||||||
@ -259,8 +249,7 @@ EFIAPI
|
|||||||
BuildFvHob (
|
BuildFvHob (
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a EFI_HOB_TYPE_FV2 HOB.
|
Builds a EFI_HOB_TYPE_FV2 HOB.
|
||||||
@ -283,8 +272,7 @@ BuildFv2Hob (
|
|||||||
IN UINT64 Length,
|
IN UINT64 Length,
|
||||||
IN CONST EFI_GUID *FvName,
|
IN CONST EFI_GUID *FvName,
|
||||||
IN CONST EFI_GUID *FileName
|
IN CONST EFI_GUID *FileName
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a Capsule Volume HOB.
|
Builds a Capsule Volume HOB.
|
||||||
@ -303,8 +291,7 @@ EFIAPI
|
|||||||
BuildCvHob (
|
BuildCvHob (
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB for the CPU.
|
Builds a HOB for the CPU.
|
||||||
@ -323,8 +310,7 @@ EFIAPI
|
|||||||
BuildCpuHob (
|
BuildCpuHob (
|
||||||
IN UINT8 SizeOfMemorySpace,
|
IN UINT8 SizeOfMemorySpace,
|
||||||
IN UINT8 SizeOfIoSpace
|
IN UINT8 SizeOfIoSpace
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB for the Stack.
|
Builds a HOB for the Stack.
|
||||||
@ -343,8 +329,7 @@ EFIAPI
|
|||||||
BuildStackHob (
|
BuildStackHob (
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB for the BSP store.
|
Builds a HOB for the BSP store.
|
||||||
@ -365,8 +350,7 @@ BuildBspStoreHob (
|
|||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length,
|
IN UINT64 Length,
|
||||||
IN EFI_MEMORY_TYPE MemoryType
|
IN EFI_MEMORY_TYPE MemoryType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a HOB for the memory allocation.
|
Builds a HOB for the memory allocation.
|
||||||
@ -387,8 +371,7 @@ BuildMemoryAllocationHob (
|
|||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length,
|
IN UINT64 Length,
|
||||||
IN EFI_MEMORY_TYPE MemoryType
|
IN EFI_MEMORY_TYPE MemoryType
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#define GET_HOB_TYPE(Hob) ((Hob).Header->HobType)
|
#define GET_HOB_TYPE(Hob) ((Hob).Header->HobType)
|
||||||
#define GET_HOB_LENGTH(Hob) ((Hob).Header->HobLength)
|
#define GET_HOB_LENGTH(Hob) ((Hob).Header->HobLength)
|
||||||
|
@ -57,8 +57,7 @@ UINT8
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PciSegmentRead8 (
|
PciSegmentRead8 (
|
||||||
IN UINT64 Address
|
IN UINT64 Address
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes an 8-bit PCI configuration register.
|
Writes an 8-bit PCI configuration register.
|
||||||
@ -78,8 +77,7 @@ EFIAPI
|
|||||||
PciSegmentWrite8 (
|
PciSegmentWrite8 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise inclusive OR of an 8-bit PCI configuration register with an 8-bit value.
|
Performs a bitwise inclusive OR of an 8-bit PCI configuration register with an 8-bit value.
|
||||||
@ -102,8 +100,7 @@ EFIAPI
|
|||||||
PciSegmentOr8 (
|
PciSegmentOr8 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT8 OrData
|
IN UINT8 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise AND of an 8-bit PCI configuration register with an 8-bit value.
|
Performs a bitwise AND of an 8-bit PCI configuration register with an 8-bit value.
|
||||||
@ -126,8 +123,7 @@ EFIAPI
|
|||||||
PciSegmentAnd8 (
|
PciSegmentAnd8 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT8 AndData
|
IN UINT8 AndData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise AND of an 8-bit PCI configuration register with an 8-bit value,
|
Performs a bitwise AND of an 8-bit PCI configuration register with an 8-bit value,
|
||||||
@ -154,8 +150,7 @@ PciSegmentAndThenOr8 (
|
|||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT8 AndData,
|
IN UINT8 AndData,
|
||||||
IN UINT8 OrData
|
IN UINT8 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field of a PCI configuration register.
|
Reads a bit field of a PCI configuration register.
|
||||||
@ -183,8 +178,7 @@ PciSegmentBitFieldRead8 (
|
|||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit
|
IN UINTN EndBit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes a bit field to a PCI configuration register.
|
Writes a bit field to a PCI configuration register.
|
||||||
@ -215,8 +209,7 @@ PciSegmentBitFieldWrite8 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT8 Value
|
IN UINT8 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the 8-bit PCI configuration register specified by Address,
|
Reads the 8-bit PCI configuration register specified by Address,
|
||||||
@ -240,8 +233,7 @@ PciSegmentBitFieldOr8 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT8 OrData
|
IN UINT8 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field in an 8-bit PCI configuration, performs a bitwise OR,
|
Reads a bit field in an 8-bit PCI configuration, performs a bitwise OR,
|
||||||
@ -275,8 +267,7 @@ PciSegmentBitFieldAnd8 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT8 AndData
|
IN UINT8 AndData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field in an 8-bit PCI configuration register, performs a bitwise AND,
|
Reads a bit field in an 8-bit PCI configuration register, performs a bitwise AND,
|
||||||
@ -312,8 +303,7 @@ PciSegmentBitFieldAndThenOr8 (
|
|||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT8 AndData,
|
IN UINT8 AndData,
|
||||||
IN UINT8 OrData
|
IN UINT8 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a 16-bit PCI configuration register.
|
Reads a 16-bit PCI configuration register.
|
||||||
@ -331,8 +321,7 @@ UINT16
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PciSegmentRead16 (
|
PciSegmentRead16 (
|
||||||
IN UINT64 Address
|
IN UINT64 Address
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes a 16-bit PCI configuration register.
|
Writes a 16-bit PCI configuration register.
|
||||||
@ -352,8 +341,7 @@ EFIAPI
|
|||||||
PciSegmentWrite16 (
|
PciSegmentWrite16 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise inclusive OR of a 16-bit PCI configuration register with a 16-bit value.
|
Performs a bitwise inclusive OR of a 16-bit PCI configuration register with a 16-bit value.
|
||||||
@ -376,8 +364,7 @@ EFIAPI
|
|||||||
PciSegmentOr16 (
|
PciSegmentOr16 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT16 OrData
|
IN UINT16 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise AND of a 16-bit PCI configuration register with a 16-bit value.
|
Performs a bitwise AND of a 16-bit PCI configuration register with a 16-bit value.
|
||||||
@ -400,8 +387,7 @@ EFIAPI
|
|||||||
PciSegmentAnd16 (
|
PciSegmentAnd16 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT16 AndData
|
IN UINT16 AndData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise AND of a 16-bit PCI configuration register with a 16-bit value,
|
Performs a bitwise AND of a 16-bit PCI configuration register with a 16-bit value,
|
||||||
@ -428,8 +414,7 @@ PciSegmentAndThenOr16 (
|
|||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT16 AndData,
|
IN UINT16 AndData,
|
||||||
IN UINT16 OrData
|
IN UINT16 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field of a PCI configuration register.
|
Reads a bit field of a PCI configuration register.
|
||||||
@ -457,8 +442,7 @@ PciSegmentBitFieldRead16 (
|
|||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit
|
IN UINTN EndBit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes a bit field to a PCI configuration register.
|
Writes a bit field to a PCI configuration register.
|
||||||
@ -489,8 +473,7 @@ PciSegmentBitFieldWrite16 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT16 Value
|
IN UINT16 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the 16-bit PCI configuration register specified by Address,
|
Reads the 16-bit PCI configuration register specified by Address,
|
||||||
@ -514,8 +497,7 @@ PciSegmentBitFieldOr16 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT16 OrData
|
IN UINT16 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field in a 16-bit PCI configuration, performs a bitwise OR,
|
Reads a bit field in a 16-bit PCI configuration, performs a bitwise OR,
|
||||||
@ -549,8 +531,7 @@ PciSegmentBitFieldAnd16 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT16 AndData
|
IN UINT16 AndData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field in a 16-bit PCI configuration register, performs a bitwise AND,
|
Reads a bit field in a 16-bit PCI configuration register, performs a bitwise AND,
|
||||||
@ -586,8 +567,7 @@ PciSegmentBitFieldAndThenOr16 (
|
|||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT16 AndData,
|
IN UINT16 AndData,
|
||||||
IN UINT16 OrData
|
IN UINT16 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a 32-bit PCI configuration register.
|
Reads a 32-bit PCI configuration register.
|
||||||
@ -605,8 +585,7 @@ UINT32
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PciSegmentRead32 (
|
PciSegmentRead32 (
|
||||||
IN UINT64 Address
|
IN UINT64 Address
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes a 32-bit PCI configuration register.
|
Writes a 32-bit PCI configuration register.
|
||||||
@ -626,8 +605,7 @@ EFIAPI
|
|||||||
PciSegmentWrite32 (
|
PciSegmentWrite32 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise inclusive OR of a 32-bit PCI configuration register with a 32-bit value.
|
Performs a bitwise inclusive OR of a 32-bit PCI configuration register with a 32-bit value.
|
||||||
@ -650,8 +628,7 @@ EFIAPI
|
|||||||
PciSegmentOr32 (
|
PciSegmentOr32 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT32 OrData
|
IN UINT32 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise AND of a 32-bit PCI configuration register with a 32-bit value.
|
Performs a bitwise AND of a 32-bit PCI configuration register with a 32-bit value.
|
||||||
@ -674,8 +651,7 @@ EFIAPI
|
|||||||
PciSegmentAnd32 (
|
PciSegmentAnd32 (
|
||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT32 AndData
|
IN UINT32 AndData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Performs a bitwise AND of a 32-bit PCI configuration register with a 32-bit value,
|
Performs a bitwise AND of a 32-bit PCI configuration register with a 32-bit value,
|
||||||
@ -702,8 +678,7 @@ PciSegmentAndThenOr32 (
|
|||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINT32 AndData,
|
IN UINT32 AndData,
|
||||||
IN UINT32 OrData
|
IN UINT32 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field of a PCI configuration register.
|
Reads a bit field of a PCI configuration register.
|
||||||
@ -731,8 +706,7 @@ PciSegmentBitFieldRead32 (
|
|||||||
IN UINT64 Address,
|
IN UINT64 Address,
|
||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit
|
IN UINTN EndBit
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes a bit field to a PCI configuration register.
|
Writes a bit field to a PCI configuration register.
|
||||||
@ -763,8 +737,7 @@ PciSegmentBitFieldWrite32 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT32 Value
|
IN UINT32 Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads the 32-bit PCI configuration register specified by Address,
|
Reads the 32-bit PCI configuration register specified by Address,
|
||||||
@ -788,8 +761,7 @@ PciSegmentBitFieldOr32 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT32 OrData
|
IN UINT32 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field in a 32-bit PCI configuration, performs a bitwise OR,
|
Reads a bit field in a 32-bit PCI configuration, performs a bitwise OR,
|
||||||
@ -823,8 +795,7 @@ PciSegmentBitFieldAnd32 (
|
|||||||
IN UINTN StartBit,
|
IN UINTN StartBit,
|
||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT32 AndData
|
IN UINT32 AndData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a bit field in a 32-bit PCI configuration register, performs a bitwise AND,
|
Reads a bit field in a 32-bit PCI configuration register, performs a bitwise AND,
|
||||||
@ -860,8 +831,7 @@ PciSegmentBitFieldAndThenOr32 (
|
|||||||
IN UINTN EndBit,
|
IN UINTN EndBit,
|
||||||
IN UINT32 AndData,
|
IN UINT32 AndData,
|
||||||
IN UINT32 OrData
|
IN UINT32 OrData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads a range of PCI configuration registers into a caller supplied buffer.
|
Reads a range of PCI configuration registers into a caller supplied buffer.
|
||||||
@ -888,8 +858,7 @@ PciSegmentReadBuffer (
|
|||||||
IN UINT64 StartAddress,
|
IN UINT64 StartAddress,
|
||||||
IN UINTN Size,
|
IN UINTN Size,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copies the data in a caller supplied buffer to a specified range of PCI configuration space.
|
Copies the data in a caller supplied buffer to a specified range of PCI configuration space.
|
||||||
@ -916,7 +885,6 @@ PciSegmentWriteBuffer (
|
|||||||
IN UINT64 StartAddress,
|
IN UINT64 StartAddress,
|
||||||
IN UINTN Size,
|
IN UINTN Size,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -94,8 +94,7 @@ RETURN_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeCoffLoaderGetImageInfo (
|
PeCoffLoaderGetImageInfo (
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Applies relocation fixups to a PE/COFF image that was loaded with PeCoffLoaderLoadImage().
|
Applies relocation fixups to a PE/COFF image that was loaded with PeCoffLoaderLoadImage().
|
||||||
@ -121,8 +120,7 @@ RETURN_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeCoffLoaderRelocateImage (
|
PeCoffLoaderRelocateImage (
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Loads a PE/COFF image into memory.
|
Loads a PE/COFF image into memory.
|
||||||
@ -151,8 +149,7 @@ RETURN_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeCoffLoaderLoadImage (
|
PeCoffLoaderLoadImage (
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -174,8 +171,7 @@ PeCoffLoaderImageReadFromMemory (
|
|||||||
IN UINTN FileOffset,
|
IN UINTN FileOffset,
|
||||||
IN OUT UINTN *ReadSize,
|
IN OUT UINTN *ReadSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -199,8 +195,7 @@ PeCoffLoaderRelocateImageForRuntime (
|
|||||||
IN PHYSICAL_ADDRESS VirtImageBase,
|
IN PHYSICAL_ADDRESS VirtImageBase,
|
||||||
IN UINTN ImageSize,
|
IN UINTN ImageSize,
|
||||||
IN VOID *RelocationData
|
IN VOID *RelocationData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Unloads a loaded PE/COFF image from memory and releases its taken resource.
|
Unloads a loaded PE/COFF image from memory and releases its taken resource.
|
||||||
@ -218,6 +213,5 @@ RETURN_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeCoffLoaderUnloadImage (
|
PeCoffLoaderUnloadImage (
|
||||||
IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -36,7 +36,6 @@ EFIAPI
|
|||||||
PublishSystemMemory (
|
PublishSystemMemory (
|
||||||
IN PHYSICAL_ADDRESS MemoryBegin,
|
IN PHYSICAL_ADDRESS MemoryBegin,
|
||||||
IN UINT64 MemoryLength
|
IN UINT64 MemoryLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -417,8 +417,7 @@ LookupUnicodeString2 (
|
|||||||
IN CONST EFI_UNICODE_STRING_TABLE *UnicodeStringTable,
|
IN CONST EFI_UNICODE_STRING_TABLE *UnicodeStringTable,
|
||||||
OUT CHAR16 **UnicodeString,
|
OUT CHAR16 **UnicodeString,
|
||||||
IN BOOLEAN Iso639Language
|
IN BOOLEAN Iso639Language
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function adds a Unicode string to UnicodeStringTable.
|
This function adds a Unicode string to UnicodeStringTable.
|
||||||
@ -529,8 +528,7 @@ AddUnicodeString2 (
|
|||||||
IN EFI_UNICODE_STRING_TABLE **UnicodeStringTable,
|
IN EFI_UNICODE_STRING_TABLE **UnicodeStringTable,
|
||||||
IN CONST CHAR16 *UnicodeString,
|
IN CONST CHAR16 *UnicodeString,
|
||||||
IN BOOLEAN Iso639Language
|
IN BOOLEAN Iso639Language
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function frees the table of Unicode strings in UnicodeStringTable.
|
This function frees the table of Unicode strings in UnicodeStringTable.
|
||||||
|
@ -183,8 +183,7 @@ EFI_STATUS
|
|||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length,
|
IN UINT64 Length,
|
||||||
IN UINT64 Capabilities
|
IN UINT64 Capabilities
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allocates nonexistent memory, reserved memory, system memory, or memorymapped
|
Allocates nonexistent memory, reserved memory, system memory, or memorymapped
|
||||||
@ -226,8 +225,7 @@ EFI_STATUS
|
|||||||
IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress,
|
IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress,
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_HANDLE DeviceHandle OPTIONAL
|
IN EFI_HANDLE DeviceHandle OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Frees nonexistent memory, reserved memory, system memory, or memory-mapped
|
Frees nonexistent memory, reserved memory, system memory, or memory-mapped
|
||||||
@ -252,8 +250,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_FREE_MEMORY_SPACE)(
|
(EFIAPI *EFI_FREE_MEMORY_SPACE)(
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Removes reserved memory, system memory, or memory-mapped I/O resources from
|
Removes reserved memory, system memory, or memory-mapped I/O resources from
|
||||||
@ -281,8 +278,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_REMOVE_MEMORY_SPACE)(
|
(EFIAPI *EFI_REMOVE_MEMORY_SPACE)(
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the descriptor for a memory region containing a specified address.
|
Retrieves the descriptor for a memory region containing a specified address.
|
||||||
@ -301,8 +297,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_GET_MEMORY_SPACE_DESCRIPTOR)(
|
(EFIAPI *EFI_GET_MEMORY_SPACE_DESCRIPTOR)(
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor
|
OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Modifies the attributes for a memory region in the global coherency domain of the
|
Modifies the attributes for a memory region in the global coherency domain of the
|
||||||
@ -330,8 +325,7 @@ EFI_STATUS
|
|||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length,
|
IN UINT64 Length,
|
||||||
IN UINT64 Attributes
|
IN UINT64 Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns a map of the memory resources in the global coherency domain of the
|
Returns a map of the memory resources in the global coherency domain of the
|
||||||
@ -353,8 +347,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_GET_MEMORY_SPACE_MAP)(
|
(EFIAPI *EFI_GET_MEMORY_SPACE_MAP)(
|
||||||
OUT UINTN *NumberOfDescriptors,
|
OUT UINTN *NumberOfDescriptors,
|
||||||
OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR **MemorySpaceMap
|
OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR **MemorySpaceMap
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Adds reserved I/O or I/O resources to the global coherency domain of the processor.
|
Adds reserved I/O or I/O resources to the global coherency domain of the processor.
|
||||||
@ -386,8 +379,7 @@ EFI_STATUS
|
|||||||
IN EFI_GCD_IO_TYPE GcdIoType,
|
IN EFI_GCD_IO_TYPE GcdIoType,
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allocates nonexistent I/O, reserved I/O, or I/O resources from the global coherency
|
Allocates nonexistent I/O, reserved I/O, or I/O resources from the global coherency
|
||||||
@ -423,8 +415,7 @@ EFI_STATUS
|
|||||||
IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress,
|
IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress,
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_HANDLE DeviceHandle OPTIONAL
|
IN EFI_HANDLE DeviceHandle OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Frees nonexistent I/O, reserved I/O, or I/O resources from the global coherency
|
Frees nonexistent I/O, reserved I/O, or I/O resources from the global coherency
|
||||||
@ -449,8 +440,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_FREE_IO_SPACE)(
|
(EFIAPI *EFI_FREE_IO_SPACE)(
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Removes reserved I/O or I/O resources from the global coherency domain of the
|
Removes reserved I/O or I/O resources from the global coherency domain of the
|
||||||
@ -480,8 +470,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_REMOVE_IO_SPACE)(
|
(EFIAPI *EFI_REMOVE_IO_SPACE)(
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
IN UINT64 Length
|
IN UINT64 Length
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Retrieves the descriptor for an I/O region containing a specified address.
|
Retrieves the descriptor for an I/O region containing a specified address.
|
||||||
@ -500,8 +489,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_GET_IO_SPACE_DESCRIPTOR)(
|
(EFIAPI *EFI_GET_IO_SPACE_DESCRIPTOR)(
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
OUT EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor
|
OUT EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns a map of the I/O resources in the global coherency domain of the processor.
|
Returns a map of the I/O resources in the global coherency domain of the processor.
|
||||||
@ -523,8 +511,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_GET_IO_SPACE_MAP)(
|
(EFIAPI *EFI_GET_IO_SPACE_MAP)(
|
||||||
OUT UINTN *NumberOfDescriptors,
|
OUT UINTN *NumberOfDescriptors,
|
||||||
OUT EFI_GCD_IO_SPACE_DESCRIPTOR **IoSpaceMap
|
OUT EFI_GCD_IO_SPACE_DESCRIPTOR **IoSpaceMap
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -548,8 +535,7 @@ typedef
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_DISPATCH)(
|
(EFIAPI *EFI_DISPATCH)(
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clears the Schedule on Request (SOR) flag for a component that is stored in a firmware volume.
|
Clears the Schedule on Request (SOR) flag for a component that is stored in a firmware volume.
|
||||||
@ -567,8 +553,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_SCHEDULE)(
|
(EFIAPI *EFI_SCHEDULE)(
|
||||||
IN EFI_HANDLE FirmwareVolumeHandle,
|
IN EFI_HANDLE FirmwareVolumeHandle,
|
||||||
IN CONST EFI_GUID *FileName
|
IN CONST EFI_GUID *FileName
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Promotes a file stored in a firmware volume from the untrusted to the trusted state.
|
Promotes a file stored in a firmware volume from the untrusted to the trusted state.
|
||||||
@ -586,8 +571,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_TRUST)(
|
(EFIAPI *EFI_TRUST)(
|
||||||
IN EFI_HANDLE FirmwareVolumeHandle,
|
IN EFI_HANDLE FirmwareVolumeHandle,
|
||||||
IN CONST EFI_GUID *FileName
|
IN CONST EFI_GUID *FileName
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a firmware volume handle for a firmware volume that is present in system memory.
|
Creates a firmware volume handle for a firmware volume that is present in system memory.
|
||||||
@ -613,8 +597,7 @@ EFI_STATUS
|
|||||||
IN CONST VOID *FirmwareVolumeHeader,
|
IN CONST VOID *FirmwareVolumeHeader,
|
||||||
IN UINTN Size,
|
IN UINTN Size,
|
||||||
OUT EFI_HANDLE *FirmwareVolumeHandle
|
OUT EFI_HANDLE *FirmwareVolumeHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// DXE Services Table
|
// DXE Services Table
|
||||||
|
@ -75,8 +75,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_ARP_CONFIGURE)(
|
(EFIAPI *EFI_ARP_CONFIGURE)(
|
||||||
IN EFI_ARP_PROTOCOL *This,
|
IN EFI_ARP_PROTOCOL *This,
|
||||||
IN EFI_ARP_CONFIG_DATA *ConfigData OPTIONAL
|
IN EFI_ARP_CONFIG_DATA *ConfigData OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Inserts an entry to the ARP cache.
|
Inserts an entry to the ARP cache.
|
||||||
@ -115,8 +114,7 @@ EFI_STATUS
|
|||||||
IN VOID *TargetHwAddress OPTIONAL,
|
IN VOID *TargetHwAddress OPTIONAL,
|
||||||
IN UINT32 TimeoutValue,
|
IN UINT32 TimeoutValue,
|
||||||
IN BOOLEAN Overwrite
|
IN BOOLEAN Overwrite
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Locates one or more entries in the ARP cache.
|
Locates one or more entries in the ARP cache.
|
||||||
@ -152,8 +150,7 @@ EFI_STATUS
|
|||||||
OUT UINT32 *EntryCount OPTIONAL,
|
OUT UINT32 *EntryCount OPTIONAL,
|
||||||
OUT EFI_ARP_FIND_DATA **Entries OPTIONAL,
|
OUT EFI_ARP_FIND_DATA **Entries OPTIONAL,
|
||||||
IN BOOLEAN Refresh
|
IN BOOLEAN Refresh
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -177,8 +174,7 @@ EFI_STATUS
|
|||||||
IN EFI_ARP_PROTOCOL *This,
|
IN EFI_ARP_PROTOCOL *This,
|
||||||
IN BOOLEAN BySwAddress,
|
IN BOOLEAN BySwAddress,
|
||||||
IN VOID *AddressBuffer OPTIONAL
|
IN VOID *AddressBuffer OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Removes all dynamic ARP cache entries that were added by this interface.
|
Removes all dynamic ARP cache entries that were added by this interface.
|
||||||
@ -195,8 +191,7 @@ typedef
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_ARP_FLUSH)(
|
(EFIAPI *EFI_ARP_FLUSH)(
|
||||||
IN EFI_ARP_PROTOCOL *This
|
IN EFI_ARP_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Starts an ARP request session.
|
Starts an ARP request session.
|
||||||
@ -229,8 +224,7 @@ EFI_STATUS
|
|||||||
IN VOID *TargetSwAddress OPTIONAL,
|
IN VOID *TargetSwAddress OPTIONAL,
|
||||||
IN EFI_EVENT ResolvedEvent OPTIONAL,
|
IN EFI_EVENT ResolvedEvent OPTIONAL,
|
||||||
OUT VOID *TargetHwAddress
|
OUT VOID *TargetHwAddress
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Cancels an ARP request session.
|
Cancels an ARP request session.
|
||||||
@ -254,8 +248,7 @@ EFI_STATUS
|
|||||||
IN EFI_ARP_PROTOCOL *This,
|
IN EFI_ARP_PROTOCOL *This,
|
||||||
IN VOID *TargetSwAddress OPTIONAL,
|
IN VOID *TargetSwAddress OPTIONAL,
|
||||||
IN EFI_EVENT ResolvedEvent OPTIONAL
|
IN EFI_EVENT ResolvedEvent OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -84,8 +84,7 @@ EFI_STATUS
|
|||||||
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
|
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
|
||||||
IN EFI_HANDLE *ControllerHandle,
|
IN EFI_HANDLE *ControllerHandle,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the Authentication information for a given controller handle.
|
Set the Authentication information for a given controller handle.
|
||||||
@ -108,8 +107,7 @@ EFI_STATUS
|
|||||||
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
|
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
|
||||||
IN EFI_HANDLE *ControllerHandle,
|
IN EFI_HANDLE *ControllerHandle,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -51,8 +51,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_BLOCK_RESET)(
|
(EFIAPI *EFI_BLOCK_RESET)(
|
||||||
IN EFI_BLOCK_IO_PROTOCOL *This,
|
IN EFI_BLOCK_IO_PROTOCOL *This,
|
||||||
IN BOOLEAN ExtendedVerification
|
IN BOOLEAN ExtendedVerification
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read BufferSize bytes from Lba into Buffer.
|
Read BufferSize bytes from Lba into Buffer.
|
||||||
@ -80,8 +79,7 @@ EFI_STATUS
|
|||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Write BufferSize bytes from Lba into Buffer.
|
Write BufferSize bytes from Lba into Buffer.
|
||||||
@ -110,8 +108,7 @@ EFI_STATUS
|
|||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Flush the Block Device.
|
Flush the Block Device.
|
||||||
@ -127,8 +124,7 @@ typedef
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_BLOCK_FLUSH)(
|
(EFIAPI *EFI_BLOCK_FLUSH)(
|
||||||
IN EFI_BLOCK_IO_PROTOCOL *This
|
IN EFI_BLOCK_IO_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Block IO read only mode data and updated only via members of BlockIO
|
Block IO read only mode data and updated only via members of BlockIO
|
||||||
|
@ -41,8 +41,7 @@ typedef
|
|||||||
EFI_DEVICE_PATH_PROTOCOL*
|
EFI_DEVICE_PATH_PROTOCOL*
|
||||||
(EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_NODE)(
|
(EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_NODE)(
|
||||||
IN CONST CHAR16 *TextDeviceNode
|
IN CONST CHAR16 *TextDeviceNode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,8 +59,7 @@ typedef
|
|||||||
EFI_DEVICE_PATH_PROTOCOL*
|
EFI_DEVICE_PATH_PROTOCOL*
|
||||||
(EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_PATH)(
|
(EFIAPI *EFI_DEVICE_PATH_FROM_TEXT_PATH)(
|
||||||
IN CONST CHAR16 *TextDevicePath
|
IN CONST CHAR16 *TextDevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -47,8 +47,7 @@ CHAR16*
|
|||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode,
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode,
|
||||||
IN BOOLEAN DisplayOnly,
|
IN BOOLEAN DisplayOnly,
|
||||||
IN BOOLEAN AllowShortcuts
|
IN BOOLEAN AllowShortcuts
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Convert a device path to its text representation.
|
Convert a device path to its text representation.
|
||||||
@ -71,8 +70,7 @@ CHAR16*
|
|||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||||
IN BOOLEAN DisplayOnly,
|
IN BOOLEAN DisplayOnly,
|
||||||
IN BOOLEAN AllowShortcuts
|
IN BOOLEAN AllowShortcuts
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -39,8 +39,7 @@ typedef
|
|||||||
UINTN
|
UINTN
|
||||||
(EFIAPI *EFI_DEVICE_PATH_UTILS_GET_DEVICE_PATH_SIZE)(
|
(EFIAPI *EFI_DEVICE_PATH_UTILS_GET_DEVICE_PATH_SIZE)(
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -56,8 +55,7 @@ typedef
|
|||||||
EFI_DEVICE_PATH_PROTOCOL*
|
EFI_DEVICE_PATH_PROTOCOL*
|
||||||
(EFIAPI *EFI_DEVICE_PATH_UTILS_DUP_DEVICE_PATH)(
|
(EFIAPI *EFI_DEVICE_PATH_UTILS_DUP_DEVICE_PATH)(
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create a new path by appending the second device path to the first.
|
Create a new path by appending the second device path to the first.
|
||||||
@ -75,8 +73,7 @@ EFI_DEVICE_PATH_PROTOCOL*
|
|||||||
(EFIAPI *EFI_DEVICE_PATH_UTILS_APPEND_PATH)(
|
(EFIAPI *EFI_DEVICE_PATH_UTILS_APPEND_PATH)(
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *Src1,
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *Src1,
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *Src2
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *Src2
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a new path by appending the device node to the device path.
|
Creates a new path by appending the device node to the device path.
|
||||||
@ -94,8 +91,7 @@ EFI_DEVICE_PATH_PROTOCOL*
|
|||||||
(EFIAPI *EFI_DEVICE_PATH_UTILS_APPEND_NODE)(
|
(EFIAPI *EFI_DEVICE_PATH_UTILS_APPEND_NODE)(
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a new path by appending the specified device path instance to the specified device path.
|
Creates a new path by appending the specified device path instance to the specified device path.
|
||||||
@ -112,8 +108,7 @@ EFI_DEVICE_PATH_PROTOCOL*
|
|||||||
(EFIAPI *EFI_DEVICE_PATH_UTILS_APPEND_INSTANCE)(
|
(EFIAPI *EFI_DEVICE_PATH_UTILS_APPEND_INSTANCE)(
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathInstance
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePathInstance
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a copy of the current device path instance and returns a pointer to the next device path
|
Creates a copy of the current device path instance and returns a pointer to the next device path
|
||||||
@ -135,8 +130,7 @@ EFI_DEVICE_PATH_PROTOCOL*
|
|||||||
(EFIAPI *EFI_DEVICE_PATH_UTILS_GET_NEXT_INSTANCE)(
|
(EFIAPI *EFI_DEVICE_PATH_UTILS_GET_NEXT_INSTANCE)(
|
||||||
IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathInstance,
|
IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePathInstance,
|
||||||
OUT UINTN *DevicePathInstanceSize
|
OUT UINTN *DevicePathInstanceSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a device node
|
Creates a device node
|
||||||
@ -159,8 +153,7 @@ EFI_DEVICE_PATH_PROTOCOL*
|
|||||||
IN UINT8 NodeType,
|
IN UINT8 NodeType,
|
||||||
IN UINT8 NodeSubType,
|
IN UINT8 NodeSubType,
|
||||||
IN UINT16 NodeLength
|
IN UINT16 NodeLength
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns whether a device path is multi-instance.
|
Returns whether a device path is multi-instance.
|
||||||
@ -175,8 +168,7 @@ typedef
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
(EFIAPI *EFI_DEVICE_PATH_UTILS_IS_MULTI_INSTANCE)(
|
(EFIAPI *EFI_DEVICE_PATH_UTILS_IS_MULTI_INSTANCE)(
|
||||||
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -199,8 +199,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_DHCP4_GET_MODE_DATA)(
|
(EFIAPI *EFI_DHCP4_GET_MODE_DATA)(
|
||||||
IN EFI_DHCP4_PROTOCOL *This,
|
IN EFI_DHCP4_PROTOCOL *This,
|
||||||
OUT EFI_DHCP4_MODE_DATA *Dhcp4ModeData
|
OUT EFI_DHCP4_MODE_DATA *Dhcp4ModeData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initializes, changes, or resets the operational settings for the EFI DHCPv4 Protocol driver.
|
Initializes, changes, or resets the operational settings for the EFI DHCPv4 Protocol driver.
|
||||||
@ -226,8 +225,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_DHCP4_CONFIGURE)(
|
(EFIAPI *EFI_DHCP4_CONFIGURE)(
|
||||||
IN EFI_DHCP4_PROTOCOL *This,
|
IN EFI_DHCP4_PROTOCOL *This,
|
||||||
IN EFI_DHCP4_CONFIG_DATA *Dhcp4CfgData OPTIONAL
|
IN EFI_DHCP4_CONFIG_DATA *Dhcp4CfgData OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -261,8 +259,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_DHCP4_START)(
|
(EFIAPI *EFI_DHCP4_START)(
|
||||||
IN EFI_DHCP4_PROTOCOL *This,
|
IN EFI_DHCP4_PROTOCOL *This,
|
||||||
IN EFI_EVENT CompletionEvent OPTIONAL
|
IN EFI_EVENT CompletionEvent OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Extends the lease time by sending a request packet.
|
Extends the lease time by sending a request packet.
|
||||||
@ -296,8 +293,7 @@ EFI_STATUS
|
|||||||
IN EFI_DHCP4_PROTOCOL *This,
|
IN EFI_DHCP4_PROTOCOL *This,
|
||||||
IN BOOLEAN RebindRequest,
|
IN BOOLEAN RebindRequest,
|
||||||
IN EFI_EVENT CompletionEvent OPTIONAL
|
IN EFI_EVENT CompletionEvent OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Releases the current address configuration.
|
Releases the current address configuration.
|
||||||
@ -314,8 +310,7 @@ typedef
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_DHCP4_RELEASE)(
|
(EFIAPI *EFI_DHCP4_RELEASE)(
|
||||||
IN EFI_DHCP4_PROTOCOL *This
|
IN EFI_DHCP4_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stops the current address configuration.
|
Stops the current address configuration.
|
||||||
@ -330,8 +325,7 @@ typedef
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_DHCP4_STOP)(
|
(EFIAPI *EFI_DHCP4_STOP)(
|
||||||
IN EFI_DHCP4_PROTOCOL *This
|
IN EFI_DHCP4_PROTOCOL *This
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Builds a DHCP packet, given the options to be appended or deleted or replaced.
|
Builds a DHCP packet, given the options to be appended or deleted or replaced.
|
||||||
@ -365,8 +359,7 @@ EFI_STATUS
|
|||||||
IN UINT32 AppendCount,
|
IN UINT32 AppendCount,
|
||||||
IN EFI_DHCP4_PACKET_OPTION *AppendList[] OPTIONAL,
|
IN EFI_DHCP4_PACKET_OPTION *AppendList[] OPTIONAL,
|
||||||
OUT EFI_DHCP4_PACKET **NewPacket
|
OUT EFI_DHCP4_PACKET **NewPacket
|
||||||
)
|
);
|
||||||
;
|
|
||||||
/**
|
/**
|
||||||
Transmits a DHCP formatted packet and optionally waits for responses.
|
Transmits a DHCP formatted packet and optionally waits for responses.
|
||||||
|
|
||||||
@ -387,8 +380,7 @@ EFI_STATUS
|
|||||||
(EFIAPI *EFI_DHCP4_TRANSMIT_RECEIVE)(
|
(EFIAPI *EFI_DHCP4_TRANSMIT_RECEIVE)(
|
||||||
IN EFI_DHCP4_PROTOCOL *This,
|
IN EFI_DHCP4_PROTOCOL *This,
|
||||||
IN EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN *Token
|
IN EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN *Token
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -417,8 +409,7 @@ EFI_STATUS
|
|||||||
IN EFI_DHCP4_PACKET *Packet,
|
IN EFI_DHCP4_PACKET *Packet,
|
||||||
IN OUT UINT32 *OptionCount,
|
IN OUT UINT32 *OptionCount,
|
||||||
OUT EFI_DHCP4_PACKET_OPTION *PacketOptionList[] OPTIONAL
|
OUT EFI_DHCP4_PACKET_OPTION *PacketOptionList[] OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@par Protocol Description:
|
@par Protocol Description:
|
||||||
|
@ -61,8 +61,7 @@ EFI_STATUS
|
|||||||
IN UINT64 Offset,
|
IN UINT64 Offset,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Read BufferSize bytes from Offset into Buffer.
|
Read BufferSize bytes from Offset into Buffer.
|
||||||
@ -90,8 +89,7 @@ EFI_STATUS
|
|||||||
IN UINT64 Offset,
|
IN UINT64 Offset,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#define EFI_DISK_IO_PROTOCOL_REVISION 0x00010000
|
#define EFI_DISK_IO_PROTOCOL_REVISION 0x00010000
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user