summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-24 06:11:49 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-24 06:11:49 +0000
commit5f52bc92fe918ff7648a84ea33746cef32fa9e1a (patch)
tree4c32026759c7be3f081fe4c2f847d9c467d2a726
parenta261044cf5036534c6bd3f81c5f4a5fb69380399 (diff)
downloadedk2-platforms-5f52bc92fe918ff7648a84ea33746cef32fa9e1a.tar.xz
remove two duplication macros "PCI_CLASSC_PI_UHCI/PCI_CLASSC_PI_EHCI", which have been defined in IndustryStandard/Pci.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8993 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h6
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c4
2 files changed, 2 insertions, 8 deletions
diff --git a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h
index b3c748c3f6..eeae07f014 100644
--- a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h
+++ b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h
@@ -822,12 +822,6 @@ SetupResetReminder (
#define BDS_EFI_UNSUPPORT 0xFFFF
-///
-/// USB host controller Programming Interface.
-///
-#define PCI_CLASSC_PI_UHCI 0x00
-#define PCI_CLASSC_PI_EHCI 0x20
-
/**
Check whether an instance in BlockIoDevicePath has the same partition node as the HardDriveDevicePath device path
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
index a352d80842..ab7879def1 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
@@ -370,12 +370,12 @@ BdsLibConnectConsoleVariable (
//
// Check the Usb console in Usb2.0 bus firstly, then Usb1.1 bus
//
- Status = BdsLibConnectUsbDevByShortFormDP (PCI_CLASSC_PI_EHCI, Instance);
+ Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_EHCI, Instance);
if (!EFI_ERROR (Status)) {
DeviceExist = TRUE;
}
- Status = BdsLibConnectUsbDevByShortFormDP (PCI_CLASSC_PI_UHCI, Instance);
+ Status = BdsLibConnectUsbDevByShortFormDP (PCI_IF_UHCI, Instance);
if (!EFI_ERROR (Status)) {
DeviceExist = TRUE;
}