TianoCore EDK2 master
Loading...
Searching...
No Matches
SuperIo.h
Go to the documentation of this file.
1
13#ifndef __EFI_SUPER_IO_PROTOCOL_H__
14#define __EFI_SUPER_IO_PROTOCOL_H__
16
17#define EFI_SIO_PROTOCOL_GUID \
18 { 0x215fdd18, 0xbd50, 0x4feb, { 0x89, 0xb, 0x58, 0xca, 0xb, 0x47, 0x39, 0xe9 } }
19
20typedef union {
21 ACPI_SMALL_RESOURCE_HEADER *SmallHeader;
22 ACPI_LARGE_RESOURCE_HEADER *LargeHeader;
24
25typedef struct {
26 UINT8 Register;
27 UINT8 AndMask;
28 UINT8 OrMask;
30
32
57typedef
61 IN BOOLEAN Write,
62 IN BOOLEAN ExitCfgMode,
63 IN UINT8 Register,
64 IN OUT UINT8 *Value
65 );
66
86typedef
88(EFIAPI *EFI_SIO_GET_RESOURCES)(
90 OUT ACPI_RESOURCE_HEADER_PTR *ResourceList
91 );
92
106typedef
108(EFIAPI *EFI_SIO_SET_RESOURCES)(
110 IN ACPI_RESOURCE_HEADER_PTR ResourceList
111 );
112
123typedef
127 OUT ACPI_RESOURCE_HEADER_PTR *ResourceCollection
128 );
129
151typedef
153(EFIAPI *EFI_SIO_MODIFY)(
156 IN UINTN NumberOfCommands
157 );
158
160 EFI_SIO_REGISTER_ACCESS RegisterAccess;
161 EFI_SIO_GET_RESOURCES GetResources;
162 EFI_SIO_SET_RESOURCES SetResources;
163 EFI_SIO_POSSIBLE_RESOURCES PossibleResources;
164 EFI_SIO_MODIFY Modify;
165};
166
167extern EFI_GUID gEfiSioProtocolGuid;
168
169#endif // __EFI_SUPER_IO_PROTOCOL_H__
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_SIO_SET_RESOURCES)(IN CONST EFI_SIO_PROTOCOL *This, IN ACPI_RESOURCE_HEADER_PTR ResourceList)
Definition: SuperIo.h:108
EFI_STATUS(EFIAPI * EFI_SIO_POSSIBLE_RESOURCES)(IN CONST EFI_SIO_PROTOCOL *This, OUT ACPI_RESOURCE_HEADER_PTR *ResourceCollection)
Definition: SuperIo.h:125
EFI_STATUS(EFIAPI * EFI_SIO_GET_RESOURCES)(IN CONST EFI_SIO_PROTOCOL *This, OUT ACPI_RESOURCE_HEADER_PTR *ResourceList)
Definition: SuperIo.h:88
EFI_STATUS(EFIAPI * EFI_SIO_MODIFY)(IN CONST EFI_SIO_PROTOCOL *This, IN CONST EFI_SIO_REGISTER_MODIFY *Command, IN UINTN NumberOfCommands)
Definition: SuperIo.h:153
EFI_STATUS(EFIAPI * EFI_SIO_REGISTER_ACCESS)(IN CONST EFI_SIO_PROTOCOL *This, IN BOOLEAN Write, IN BOOLEAN ExitCfgMode, IN UINT8 Register, IN OUT UINT8 *Value)
Definition: SuperIo.h:59
EFI_STATUS EFIAPI Register(IN EFI_PEI_RSC_HANDLER_CALLBACK Callback)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
UINT8 OrMask
Bitwise OR mask.
Definition: SuperIo.h:28
UINT8 Register
Register number.
Definition: SuperIo.h:26
UINT8 AndMask
Bitwise AND mask.
Definition: SuperIo.h:27
Definition: Base.h:213