diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-04-12 09:07:01 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-04-12 09:07:01 +0000 |
commit | 98419ef4b972aade5ff5201ff6dd99561872e52c (patch) | |
tree | 10d09fb865831fc0f3b9d6402744af13c7fd6786 /EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c | |
parent | 0eaa1933bc16010889cb39a8b91cbd0a48d985b2 (diff) | |
download | edk2-platforms-98419ef4b972aade5ff5201ff6dd99561872e52c.tar.xz |
1. Added EdkPciIncompatibleDeviceSupportLib in EdkModulePkg, this library is used for PciBus driver and includes 3 Incompatible device lists.
2. Used EdkPciIncompatibleDeviceSupportLib in PciBus driver.
3. Redirect all Pci Configuration access to new APIs added in PciLib.c for PciBus driver.
4. Added one PCD PcdIncompatibleDeviceSupportMask in EdkModulePkg.spd to provide mask of PCI devices incompatibility check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2562 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c')
-rw-r--r-- | EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c | 45 |
1 files changed, 19 insertions, 26 deletions
diff --git a/EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c b/EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c index eb6713f4dd..a874b8a85c 100644 --- a/EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c +++ b/EdkModulePkg/Bus/Pci/PciBus/Dxe/pcibus.c @@ -1,24 +1,24 @@ /*++
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution. The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+Copyright (c) 2006 - 2007, Intel Corporation
+All rights reserved. This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
PciBus.c
-
+
Abstract:
PCI Bus Driver
Revision History
-
+
--*/
#include "pcibus.h"
@@ -36,7 +36,6 @@ EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding = { NULL
};
-EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gEfiIncompatiblePciDeviceSupport = NULL;
EFI_HANDLE gPciHostBrigeHandles[PCI_MAX_HOST_BRIDGE_NUM];
UINTN gPciHostBridgeNumber;
BOOLEAN gFullEnumeration;
@@ -68,8 +67,8 @@ Arguments: Returns:
- EFI_SUCCESS
- EFI_DEVICE_ERROR
+ EFI_SUCCESS
+ EFI_DEVICE_ERROR
--*/
// TODO: ImageHandle - add argument and description to function comment
@@ -101,7 +100,7 @@ Routine Description: Check to see if pci bus driver supports the given controller
Arguments:
-
+
IN EFI_DRIVER_BINDING_PROTOCOL *This,
IN EFI_HANDLE Controller,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
@@ -195,13 +194,13 @@ Routine Description: Start to management the controller passed in
Arguments:
-
+
IN EFI_DRIVER_BINDING_PROTOCOL *This,
IN EFI_HANDLE Controller,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
Returns:
-
+
--*/
// TODO: This - add argument and description to function comment
@@ -211,12 +210,6 @@ Returns: {
EFI_STATUS Status;
- Status = gBS->LocateProtocol (
- &gEfiIncompatiblePciDeviceSupportProtocolGuid,
- NULL,
- (VOID **) &gEfiIncompatiblePciDeviceSupport
- );
-
//
// If PCI Platform protocol is available, get it now.
// If the platform implements this, it must be installed before BDS phase
@@ -240,12 +233,12 @@ Returns: if (EFI_ERROR (Status)) {
return Status;
}
-
+
//
// Enable PCI device specified by remaining device path. BDS or other driver can call the
// start more than once.
//
-
+
StartPciDevices (Controller, RemainingDevicePath);
return EFI_SUCCESS;
@@ -267,7 +260,7 @@ Routine Description: if all the the children get closed, close the protocol
Arguments:
-
+
IN EFI_DRIVER_BINDING_PROTOCOL *This,
IN EFI_HANDLE Controller,
IN UINTN NumberOfChildren,
@@ -275,7 +268,7 @@ Arguments: Returns:
-
+
--*/
// TODO: This - add argument and description to function comment
// TODO: Controller - add argument and description to function comment
|