TianoCore EDK2 master
Loading...
Searching...
No Matches
SioService.h
Go to the documentation of this file.
1
11#ifndef __SIO_SERVICE_H__
12#define __SIO_SERVICE_H__
13
14#pragma pack(1)
15
16typedef struct {
20
21#pragma pack()
22
23typedef struct {
24 UINT32 Hid;
25 UINT32 Uid;
28
29//
30// SIO device private data structure
31//
32typedef struct {
33 UINT32 Signature;
34 EFI_HANDLE Handle;
36 EFI_DEVICE_PATH_PROTOCOL *DevicePath;
37
39 UINT32 DeviceIndex;
40} SIO_DEV;
41#define SIO_DEV_SIGNATURE SIGNATURE_32 ('S', 'I', 'O', 'D')
42#define SIO_DEV_FROM_SIO(a) CR (a, SIO_DEV, Sio, SIO_DEV_SIGNATURE)
43
44//
45// Super I/O Protocol interfaces
46//
47
82EFIAPI
85 IN BOOLEAN Write,
86 IN BOOLEAN ExitCfgMode,
87 IN UINT8 Register,
88 IN OUT UINT8 *Value
89 );
90
111EFIAPI
114 OUT ACPI_RESOURCE_HEADER_PTR *ResourceList
115 );
116
130EFIAPI
133 IN ACPI_RESOURCE_HEADER_PTR ResourceList
134 );
135
150EFIAPI
153 OUT ACPI_RESOURCE_HEADER_PTR *ResourceCollection
154 );
155
182EFIAPI
183SioModify (
186 IN UINTN NumberOfCommands
187 );
188
189//
190// Internal functions
191//
192
205UINT32
208 IN EFI_HANDLE Controller,
209 IN EFI_PCI_IO_PROTOCOL *PciIo,
210 IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath
211 );
212
213#endif // __SIO_SERVICE_H__
UINT64 UINTN
PACKED struct @96 EFI_ACPI_FIXED_LOCATION_IO_PORT_DESCRIPTOR
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI Register(IN EFI_PEI_RSC_HANDLER_CALLBACK Callback)
UINT32 SioCreateAllChildDevices(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_PCI_IO_PROTOCOL *PciIo, IN EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath)
Definition: SioService.c:376
EFI_STATUS EFIAPI SioGetResources(IN CONST EFI_SIO_PROTOCOL *This, OUT ACPI_RESOURCE_HEADER_PTR *ResourceList)
Definition: SioService.c:163
EFI_STATUS EFIAPI SioPossibleResources(IN CONST EFI_SIO_PROTOCOL *This, OUT ACPI_RESOURCE_HEADER_PTR *ResourceCollection)
Definition: SioService.c:219
EFI_STATUS EFIAPI SioRegisterAccess(IN CONST EFI_SIO_PROTOCOL *This, IN BOOLEAN Write, IN BOOLEAN ExitCfgMode, IN UINT8 Register, IN OUT UINT8 *Value)
Definition: SioService.c:131
EFI_STATUS EFIAPI SioSetResources(IN CONST EFI_SIO_PROTOCOL *This, IN ACPI_RESOURCE_HEADER_PTR ResourceList)
Definition: SioService.c:196
EFI_STATUS EFIAPI SioModify(IN CONST EFI_SIO_PROTOCOL *This, IN CONST EFI_SIO_REGISTER_MODIFY *Command, IN UINTN NumberOfCommands)
Definition: SioService.c:254
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33