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.
24 #ifndef _EFI_PCI_HOT_PLUG_SUPPORT_H
25 #define _EFI_PCI_HOT_PLUG_SUPPORT_H
31 #define STALL_1_SECOND 1000000
39 extern EFI_PCI_HOT_PLUG_INIT_PROTOCOL
*gPciHotPlugInit
;
40 extern EFI_HPC_LOCATION
*gPciRootHpcPool
;
41 extern UINTN gPciRootHpcCount
;
42 extern ROOT_HPC_DATA
*gPciRootHpcData
;
54 TODO: Add function description
58 Event - TODO: add argument description
59 Context - TODO: add argument description
63 TODO: add return values
69 EfiCompareDevicePath (
70 IN EFI_DEVICE_PATH_PROTOCOL
*DevicePath1
,
71 IN EFI_DEVICE_PATH_PROTOCOL
*DevicePath2
77 TODO: Add function description
81 DevicePath1 - TODO: add argument description
82 DevicePath2 - TODO: add argument description
86 TODO: add return values
92 InitializeHotPlugSupport (
99 TODO: Add function description
107 TODO: add return values
114 PCI_IO_DEVICE
*PciIoDevice
120 TODO: Add function description
124 PciIoDevice - TODO: add argument description
128 TODO: add return values
134 IsRootPciHotPlugBus (
135 IN EFI_DEVICE_PATH_PROTOCOL
*HpbDevicePath
,
142 TODO: Add function description
146 HpbDevicePath - TODO: add argument description
147 HpIndex - TODO: add argument description
151 TODO: add return values
157 IsRootPciHotPlugController (
158 IN EFI_DEVICE_PATH_PROTOCOL
*HpcDevicePath
,
165 TODO: Add function description
169 HpcDevicePath - TODO: add argument description
170 HpIndex - TODO: add argument description
174 TODO: add return values
188 TODO: Add function description
192 HpIndex - TODO: add argument description
193 Event - TODO: add argument description
197 TODO: add return values
203 AllRootHPCInitialized (
204 IN UINTN TimeoutInMicroSeconds
210 TODO: Add function description
213 TimeoutInMicroSeconds - microseconds to wait for all root hpc's initialization
216 EFI_SUCCESS - All root hpc's initialization is finished before the timeout
217 EFI_TIMEOUT - Time out
224 PCI_IO_DEVICE
*PciIoDevice
230 TODO: Add function description
234 PciIoDevice - TODO: add argument description
238 TODO: add return values
244 GetResourcePaddingForHpb (
245 IN PCI_IO_DEVICE
*PciIoDevice
251 TODO: Add function description
255 PciIoDevice - TODO: add argument description
259 TODO: add return values