3 Copyright (c) 2006 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 EFI PCAT ISA ACPI Driver for a Generic PC Platform
25 #ifndef _PCAT_ISA_ACPI_H_
26 #define _PCAT_ISA_ACPI_H_
30 #include <IndustryStandard/Pci.h>
32 #include <Protocol/DevicePath.h>
33 #include <Protocol/PciIo.h>
34 #include <Protocol/IsaIo.h>
35 #include <Protocol/DriverBinding.h>
36 #include <Protocol/ComponentName.h>
37 #include <Protocol/ComponentName2.h>
40 #include <Library/UefiLib.h>
41 #include <Library/UefiBootServicesTableLib.h>
43 #include <Protocol/IsaAcpi.h>
45 // PCAT ISA ACPI device private data structure
47 #define PCAT_ISA_ACPI_DEV_SIGNATURE SIGNATURE_32('L','P','C','D')
52 EFI_ISA_ACPI_PROTOCOL IsaAcpi
;
53 EFI_PCI_IO_PROTOCOL
*PciIo
;
56 #define PCAT_ISA_ACPI_DEV_FROM_THIS(a) BASE_CR(a, PCAT_ISA_ACPI_DEV, IsaAcpi)
61 extern EFI_DRIVER_BINDING_PROTOCOL gPcatIsaAcpiDriverBinding
;
63 extern EFI_COMPONENT_NAME2_PROTOCOL gPcatIsaAcpiComponentName2
;
65 extern EFI_COMPONENT_NAME_PROTOCOL gPcatIsaAcpiComponentName
;
69 // Prototypes for Driver model protocol interface
73 PcatIsaAcpiDriverBindingSupported (
74 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
75 IN EFI_HANDLE Controller
,
76 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
81 PcatIsaAcpiDriverBindingStart (
82 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
83 IN EFI_HANDLE Controller
,
84 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
89 PcatIsaAcpiDriverBindingStop (
90 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
91 IN EFI_HANDLE Controller
,
92 IN UINTN NumberOfChildren
,
93 IN EFI_HANDLE
*ChildHandleBuffer
97 // Prototypes for the ISA ACPI protocol interface
102 IN EFI_ISA_ACPI_PROTOCOL
*This
,
103 OUT EFI_ISA_ACPI_DEVICE_ID
**Device
109 IN EFI_ISA_ACPI_PROTOCOL
*This
,
110 IN EFI_ISA_ACPI_DEVICE_ID
*Device
,
116 IsaGetCurrentResource (
117 IN EFI_ISA_ACPI_PROTOCOL
*This
,
118 IN EFI_ISA_ACPI_DEVICE_ID
*Device
,
119 OUT EFI_ISA_ACPI_RESOURCE_LIST
**ResourceList
124 IsaGetPossibleResource (
125 IN EFI_ISA_ACPI_PROTOCOL
*This
,
126 IN EFI_ISA_ACPI_DEVICE_ID
*Device
,
127 OUT EFI_ISA_ACPI_RESOURCE_LIST
**ResourceList
133 IN EFI_ISA_ACPI_PROTOCOL
*This
,
134 IN EFI_ISA_ACPI_DEVICE_ID
*Device
,
135 IN EFI_ISA_ACPI_RESOURCE_LIST
*ResourceList
141 IN EFI_ISA_ACPI_PROTOCOL
*This
,
142 IN EFI_ISA_ACPI_DEVICE_ID
*Device
,
149 IN EFI_ISA_ACPI_PROTOCOL
*This
,
150 IN EFI_ISA_ACPI_DEVICE_ID
*Device
156 IN EFI_ISA_ACPI_PROTOCOL
*This