code cleanup:
1. remove unused macro/remove unnecessary included header file 2. for those values defined by PCI spec, use the naming of definition in IndustryStandard/Pci.h 3. use BITX macro in Base.h rather than define one by self. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8992 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1391,7 +1391,7 @@ UhciDriverBindingSupported (
|
||||
Status = PciIo->Pci.Read (
|
||||
PciIo,
|
||||
EfiPciIoWidthUint8,
|
||||
CLASSC_OFFSET,
|
||||
PCI_CLASSCODE_OFFSET,
|
||||
sizeof (USB_CLASSC) / sizeof (UINT8),
|
||||
&UsbClassCReg
|
||||
);
|
||||
@ -1406,7 +1406,7 @@ UhciDriverBindingSupported (
|
||||
//
|
||||
if ((UsbClassCReg.BaseCode != PCI_CLASS_SERIAL) ||
|
||||
(UsbClassCReg.SubClassCode != PCI_CLASS_SERIAL_USB) ||
|
||||
(UsbClassCReg.PI != PCI_CLASSC_PI_UHCI)
|
||||
(UsbClassCReg.PI != PCI_IF_UHCI)
|
||||
) {
|
||||
|
||||
Status = EFI_UNSUPPORTED;
|
||||
|
Reference in New Issue
Block a user