3 Copyright (c) 2006, 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.
15 #ifndef _EFI_PCI_HOT_PLUG_SUPPORT_H
16 #define _EFI_PCI_HOT_PLUG_SUPPORT_H
22 #define STALL_1_SECOND 1000000
30 extern EFI_PCI_HOT_PLUG_INIT_PROTOCOL
*gPciHotPlugInit
;
31 extern EFI_HPC_LOCATION
*gPciRootHpcPool
;
32 extern UINTN gPciRootHpcCount
;
33 extern ROOT_HPC_DATA
*gPciRootHpcData
;
45 TODO: Add function description
49 Event - TODO: add argument description
50 Context - TODO: add argument description
54 TODO: add return values
60 EfiCompareDevicePath (
61 IN EFI_DEVICE_PATH_PROTOCOL
*DevicePath1
,
62 IN EFI_DEVICE_PATH_PROTOCOL
*DevicePath2
68 TODO: Add function description
72 DevicePath1 - TODO: add argument description
73 DevicePath2 - TODO: add argument description
77 TODO: add return values
83 InitializeHotPlugSupport (
90 TODO: Add function description
98 TODO: add return values
105 PCI_IO_DEVICE
*PciIoDevice
111 TODO: Add function description
115 PciIoDevice - TODO: add argument description
119 TODO: add return values
125 IsRootPciHotPlugBus (
126 IN EFI_DEVICE_PATH_PROTOCOL
*HpbDevicePath
,
133 TODO: Add function description
137 HpbDevicePath - TODO: add argument description
138 HpIndex - TODO: add argument description
142 TODO: add return values
148 IsRootPciHotPlugController (
149 IN EFI_DEVICE_PATH_PROTOCOL
*HpcDevicePath
,
156 TODO: Add function description
160 HpcDevicePath - TODO: add argument description
161 HpIndex - TODO: add argument description
165 TODO: add return values
179 TODO: Add function description
183 HpIndex - TODO: add argument description
184 Event - TODO: add argument description
188 TODO: add return values
194 AllRootHPCInitialized (
195 IN UINTN TimeoutInMicroSeconds
201 TODO: Add function description
204 TimeoutInMicroSeconds - microseconds to wait for all root hpc's initialization
207 EFI_SUCCESS - All root hpc's initialization is finished before the timeout
208 EFI_TIMEOUT - Time out
215 PCI_IO_DEVICE
*PciIoDevice
221 TODO: Add function description
225 PciIoDevice - TODO: add argument description
229 TODO: add return values
235 GetResourcePaddingForHpb (
236 IN PCI_IO_DEVICE
*PciIoDevice
242 TODO: Add function description
246 PciIoDevice - TODO: add argument description
250 TODO: add return values