TianoCore EDK2 master
Loading...
Searching...
No Matches
SuperIo.h
Go to the documentation of this file.
1
12#ifndef __EFI_SUPER_IO_PPI_H__
13#define __EFI_SUPER_IO_PPI_H__
14
15#include <Protocol/SuperIo.h>
16
17#define EFI_SIO_PPI_GUID \
18 { \
19 0x23a464ad, 0xcb83, 0x48b8, {0x94, 0xab, 0x1a, 0x6f, 0xef, 0xcf, 0xe5, 0x22} \
20 }
21
22typedef struct _EFI_SIO_PPI EFI_SIO_PPI;
23typedef struct _EFI_SIO_PPI *PEFI_SIO_PPI;
24
25typedef UINT16 EFI_SIO_REGISTER;
26#define EFI_SIO_REG(ldn, reg) (EFI_SIO_REGISTER) (((ldn) << 8) | reg)
27#define EFI_SIO_LDN_GLOBAL 0xFF
28
57typedef
60 IN EFI_PEI_SERVICES **PeiServices,
61 IN CONST EFI_SIO_PPI *This,
62 IN BOOLEAN ExitCfgMode,
63 IN EFI_SIO_REGISTER Register,
64 OUT UINT8 *IoData
65 );
66
95typedef
98 IN EFI_PEI_SERVICES **PeiServices,
99 IN CONST EFI_SIO_PPI *This,
100 IN BOOLEAN ExitCfgMode,
101 IN EFI_SIO_REGISTER Register,
102 IN UINT8 IoData
103 );
104
127typedef
130 IN EFI_PEI_SERVICES **PeiServices,
131 IN CONST EFI_SIO_PPI *This,
133 IN UINTN NumberOfCommands
134 );
135
139#define EFI_ACPI_PNP_HID_END EFI_PNP_ID (0x0000)
140
141typedef UINT32 EFI_ACPI_HID;
142typedef UINT32 EFI_ACPI_UID;
143#pragma pack(1)
144typedef struct _EFI_SIO_INFO {
145 EFI_ACPI_HID Hid;
146 EFI_ACPI_UID Uid;
147 UINT8 Ldn;
149#pragma pack()
150
179};
180
181extern EFI_GUID gEfiSioPpiGuid;
182
183#endif
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_PEI_SIO_REGISTER_READ)(IN EFI_PEI_SERVICES **PeiServices, IN CONST EFI_SIO_PPI *This, IN BOOLEAN ExitCfgMode, IN EFI_SIO_REGISTER Register, OUT UINT8 *IoData)
Definition: SuperIo.h:59
EFI_STATUS(EFIAPI * EFI_PEI_SIO_REGISTER_MODIFY)(IN EFI_PEI_SERVICES **PeiServices, IN CONST EFI_SIO_PPI *This, IN CONST EFI_SIO_REGISTER_MODIFY *Command, IN UINTN NumberOfCommands)
Definition: SuperIo.h:129
EFI_STATUS(EFIAPI * EFI_PEI_SIO_REGISTER_WRITE)(IN EFI_PEI_SERVICES **PeiServices, IN CONST EFI_SIO_PPI *This, IN BOOLEAN ExitCfgMode, IN EFI_SIO_REGISTER Register, IN UINT8 IoData)
Definition: SuperIo.h:97
EFI_STATUS EFIAPI Register(IN EFI_PEI_RSC_HANDLER_CALLBACK Callback)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_PEI_SIO_REGISTER_WRITE Write
Definition: SuperIo.h:165
EFI_PEI_SIO_REGISTER_READ Read
Definition: SuperIo.h:161
EFI_PEI_SIO_REGISTER_MODIFY Modify
Definition: SuperIo.h:170
PEFI_SIO_INFO Info
Definition: SuperIo.h:178
EFI_GUID SioGuid
Definition: SuperIo.h:174
Definition: Base.h:213