34 IN FIRMWARE_CONFIG_ITEM QemuFwCfgItem
37 DEBUG ((DEBUG_INFO,
"Select Item: 0x%x\n", (UINT16)(
UINTN)QemuFwCfgItem));
50InternalQemuFwCfgReadBytes (
52 IN VOID *Buffer OPTIONAL
82 InternalQemuFwCfgReadBytes (Size, Buffer);
132 UINT8 SkipBuffer[256];
153 ChunkSize =
MIN (Size,
sizeof SkipBuffer);
154 IoReadFifo8 (FW_CFG_IO_DATA, ChunkSize, SkipBuffer);
252 OUT FIRMWARE_CONFIG_ITEM *Item,
266 for (Idx = 0; Idx < Count; ++Idx) {
270 CHAR8 FName[QEMU_FW_CFG_FNAME_SIZE];
276 InternalQemuFwCfgReadBytes (
sizeof (FName), FName);
UINT16 EFIAPI SwapBytes16(IN UINT16 Value)
INTN EFIAPI AsciiStrCmp(IN CONST CHAR8 *FirstString, IN CONST CHAR8 *SecondString)
UINT32 EFIAPI SwapBytes32(IN UINT32 Value)
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
VOID EFIAPI IoReadFifo8(IN UINTN Port, IN UINTN Count, OUT VOID *Buffer)
VOID EFIAPI IoWriteFifo8(IN UINTN Port, IN UINTN Count, IN VOID *Buffer)
UINT16 EFIAPI IoWrite16(IN UINTN Port, IN UINT16 Value)
#define RETURN_UNSUPPORTED
#define DEBUG(Expression)
BOOLEAN InternalQemuFwCfgIsAvailable(VOID)
VOID InternalQemuFwCfgDmaBytes(IN UINT32 Size, IN OUT VOID *Buffer OPTIONAL, IN UINT32 Control)
BOOLEAN InternalQemuFwCfgDmaIsAvailable(VOID)
UINT32 EFIAPI QemuFwCfgRead32(VOID)
VOID EFIAPI QemuFwCfgWriteBytes(IN UINTN Size, IN VOID *Buffer)
UINT16 EFIAPI QemuFwCfgRead16(VOID)
UINT8 EFIAPI QemuFwCfgRead8(VOID)
RETURN_STATUS EFIAPI QemuFwCfgFindFile(IN CONST CHAR8 *Name, OUT FIRMWARE_CONFIG_ITEM *Item, OUT UINTN *Size)
UINT64 EFIAPI QemuFwCfgRead64(VOID)
VOID EFIAPI QemuFwCfgSelectItem(IN FIRMWARE_CONFIG_ITEM QemuFwCfgItem)
VOID EFIAPI QemuFwCfgSkipBytes(IN UINTN Size)
VOID EFIAPI QemuFwCfgReadBytes(IN UINTN Size, IN VOID *Buffer)