3 Copyright (c) 2005 - 2006, Intel Corporation. All rights reserved.<BR>
4 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_DEVICE_SUPPORT_H
25 #define _EFI_PCI_DEVICE_SUPPORT_H
28 InitializePciDevicePool (
35 TODO: Add function description
43 TODO: add return values
50 PCI_IO_DEVICE
*Bridge
,
51 PCI_IO_DEVICE
*PciDeviceNode
57 TODO: Add function description
61 Bridge - TODO: add argument description
62 PciDeviceNode - TODO: add argument description
66 TODO: add return values
72 DestroyPciDeviceTree (
73 IN PCI_IO_DEVICE
*Bridge
79 TODO: Add function description
83 Bridge - TODO: add argument description
87 TODO: add return values
93 DestroyRootBridgeByHandle (
100 TODO: Add function description
104 Controller - TODO: add argument description
108 TODO: add return values
115 IN EFI_HANDLE Controller
,
116 IN PCI_IO_DEVICE
*PciIoDevice
,
117 OUT EFI_HANDLE
*Handle OPTIONAL
123 This function registers the PCI IO device. It creates a handle for this PCI IO device
124 (if the handle does not exist), attaches appropriate protocols onto the handle, does
125 necessary initialization, and sets up parent/child relationship with its bus controller.
129 Controller - An EFI handle for the PCI bus controller.
130 PciIoDevice - A PCI_IO_DEVICE pointer to the PCI IO device to be registered.
131 Handle - A pointer to hold the EFI handle for the PCI IO device.
135 EFI_SUCCESS - The PCI device is successfully registered.
136 Others - An error occurred when registering the PCI device.
142 DeRegisterPciDevice (
143 IN EFI_HANDLE Controller
,
150 TODO: Add function description
154 Controller - TODO: add argument description
155 Handle - TODO: add argument description
159 TODO: add return values
166 IN EFI_HANDLE Controller
,
167 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath
173 TODO: Add function description
177 Controller - TODO: add argument description
178 RemainingDevicePath - TODO: add argument description
182 TODO: add return values
189 IN EFI_HANDLE RootBridgeHandle
195 TODO: Add function description
199 RootBridgeHandle - TODO: add argument description
203 TODO: add return values
209 GetRootBridgeByHandle (
210 EFI_HANDLE RootBridgeHandle
216 TODO: Add function description
220 RootBridgeHandle - TODO: add argument description
224 TODO: add return values
231 PCI_IO_DEVICE
*RootBridge
236 IN PCI_IO_DEVICE
*RootBridge
241 IN EFI_HANDLE RootBridgeHandle
247 TODO: Add function description
251 RootBridgeHandle - TODO: add argument description
255 TODO: add return values
262 IN PCI_IO_DEVICE
*Bridge
,
263 IN PCI_IO_DEVICE
*PciIoDevice
269 TODO: Add function description
273 Bridge - TODO: add argument description
274 PciIoDevice - TODO: add argument description
278 TODO: add return values
284 ActiveVGADeviceOnTheSameSegment (
285 IN PCI_IO_DEVICE
*VgaDevice
291 TODO: Add function description
295 VgaDevice - TODO: add argument description
299 TODO: add return values
305 ActiveVGADeviceOnTheRootBridge (
306 IN PCI_IO_DEVICE
*RootBridge
312 TODO: Add function description
316 RootBridge - TODO: add argument description
320 TODO: add return values