1) Use FeatureFlag PcdPciBusHotplugDeviceSupport to merge LightPciLib.c with PcdLib.c.
[mirror_edk2.git] / EdkModulePkg / Bus / Pci / PciBus / Dxe / PciLib.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 PciLib.h\r
15 \r
16Abstract:\r
17\r
6874dbd0 18 PCI Bus Driver Lib header file.\r
19 Please use PCD feature flag PcdPciBusHotplugDeviceSupport to enable\r
20 support hot plug.\r
878ddf1f 21\r
22Revision History\r
23\r
24--*/\r
25\r
26#ifndef _EFI_PCI_LIB_H\r
27#define _EFI_PCI_LIB_H\r
28\r
29VOID\r
30InstallHotPlugRequestProtocol (\r
31 IN EFI_STATUS *Status\r
32 )\r
33/*++\r
34\r
35Routine Description:\r
36\r
37 TODO: Add function description\r
38\r
39Arguments:\r
40\r
41 Status - TODO: add argument description\r
42\r
43Returns:\r
44\r
45 TODO: add return values\r
46\r
47--*/\r
48;\r
49\r
50VOID\r
51InstallPciHotplugGuid (\r
52 IN PCI_IO_DEVICE *PciIoDevice\r
53 )\r
54/*++\r
55\r
56Routine Description:\r
57\r
58 TODO: Add function description\r
59\r
60Arguments:\r
61\r
62 PciIoDevice - TODO: add argument description\r
63\r
64Returns:\r
65\r
66 TODO: add return values\r
67\r
68--*/\r
69;\r
70\r
71VOID\r
72UninstallPciHotplugGuid (\r
73 IN PCI_IO_DEVICE *PciIoDevice\r
74 )\r
75/*++\r
76\r
77Routine Description:\r
78\r
79 TODO: Add function description\r
80\r
81Arguments:\r
82\r
83 PciIoDevice - TODO: add argument description\r
84\r
85Returns:\r
86\r
87 TODO: add return values\r
88\r
89--*/\r
90;\r
91\r
92VOID\r
93GetBackPcCardBar (\r
94 IN PCI_IO_DEVICE *PciIoDevice\r
95 )\r
96/*++\r
97\r
98Routine Description:\r
99\r
100 TODO: Add function description\r
101\r
102Arguments:\r
103\r
104 PciIoDevice - TODO: add argument description\r
105\r
106Returns:\r
107\r
108 TODO: add return values\r
109\r
110--*/\r
111;\r
112\r
113EFI_STATUS\r
114RemoveRejectedPciDevices (\r
115 EFI_HANDLE RootBridgeHandle,\r
116 IN PCI_IO_DEVICE *Bridge\r
117 )\r
118/*++\r
119\r
120Routine Description:\r
121\r
122 TODO: Add function description\r
123\r
124Arguments:\r
125\r
126 RootBridgeHandle - TODO: add argument description\r
127 Bridge - TODO: add argument description\r
128\r
129Returns:\r
130\r
131 TODO: add return values\r
132\r
133--*/\r
134;\r
135\r
136EFI_STATUS\r
137PciHostBridgeResourceAllocator (\r
138 IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
139 )\r
140/*++\r
141\r
142Routine Description:\r
143\r
144 TODO: Add function description\r
145\r
146Arguments:\r
147\r
148 PciResAlloc - TODO: add argument description\r
149\r
150Returns:\r
151\r
152 TODO: add return values\r
153\r
154--*/\r
155;\r
156\r
6874dbd0 157EFI_STATUS\r
158PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (\r
159 IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
160 )\r
161;\r
162\r
163EFI_STATUS\r
164PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (\r
165 IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
166 )\r
167;\r
168\r
878ddf1f 169EFI_STATUS\r
170PciScanBus (\r
171 IN PCI_IO_DEVICE *Bridge,\r
172 IN UINT8 StartBusNumber,\r
173 OUT UINT8 *SubBusNumber,\r
174 OUT UINT8 *PaddedBusRange\r
175 )\r
176/*++\r
177\r
178Routine Description:\r
179\r
180 TODO: Add function description\r
181\r
182Arguments:\r
183\r
184 Bridge - TODO: add argument description\r
185 StartBusNumber - TODO: add argument description\r
186 SubBusNumber - TODO: add argument description\r
187 PaddedBusRange - TODO: add argument description\r
188\r
189Returns:\r
190\r
191 TODO: add return values\r
192\r
193--*/\r
194;\r
195\r
6874dbd0 196EFI_STATUS\r
197PciScanBus_WithHotPlugDeviceSupport (\r
198 IN PCI_IO_DEVICE *Bridge,\r
199 IN UINT8 StartBusNumber,\r
200 OUT UINT8 *SubBusNumber,\r
201 OUT UINT8 *PaddedBusRange\r
202 )\r
203;\r
204\r
205EFI_STATUS\r
206PciScanBus_WithoutHotPlugDeviceSupport (\r
207 IN PCI_IO_DEVICE *Bridge,\r
208 IN UINT8 StartBusNumber,\r
209 OUT UINT8 *SubBusNumber,\r
210 OUT UINT8 *PaddedBusRange\r
211 )\r
212;\r
213\r
878ddf1f 214EFI_STATUS\r
215PciRootBridgeP2CProcess (\r
216 IN PCI_IO_DEVICE *Bridge\r
217 )\r
218/*++\r
219\r
220Routine Description:\r
221\r
222 TODO: Add function description\r
223\r
224Arguments:\r
225\r
226 Bridge - TODO: add argument description\r
227\r
228Returns:\r
229\r
230 TODO: add return values\r
231\r
232--*/\r
233;\r
234\r
235EFI_STATUS\r
236PciHostBridgeP2CProcess (\r
237 IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
238 )\r
239/*++\r
240\r
241Routine Description:\r
242\r
243 TODO: Add function description\r
244\r
245Arguments:\r
246\r
247 PciResAlloc - TODO: add argument description\r
248\r
249Returns:\r
250\r
251 TODO: add return values\r
252\r
253--*/\r
254;\r
255\r
256EFI_STATUS\r
257PciHostBridgeEnumerator (\r
258 EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
259 )\r
260/*++\r
261\r
262Routine Description:\r
263\r
264 TODO: Add function description\r
265\r
266Arguments:\r
267\r
268 PciResAlloc - TODO: add argument description\r
269\r
270Returns:\r
271\r
272 TODO: add return values\r
273\r
274--*/\r
275;\r
276\r
277#endif\r