Fix Build failure

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8712 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2009-07-02 01:52:32 +00:00
parent ac9868ecb8
commit c453660804
1 changed files with 9 additions and 9 deletions

View File

@ -771,19 +771,19 @@ InitializeGraphicsMode (
UINT8 Byte; UINT8 Byte;
UINTN Index; UINTN Index;
UINT16 DeviceId; UINT16 DeviceId;
EFI_STATUS Status;
Status = Private->PciIo->Pci.Read (
Private->PciIo,
EfiPciIoWidthUint16,
PCI_DEVICE_ID_OFFSET,
1,
&DeviceId
);
// //
// Read the PCI Configuration Header from the PCI Device // Read the PCI Configuration Header from the PCI Device
// //
ASSERT_EFI_ERROR ( ASSERT_EFI_ERROR (Status);
Private->PciIo->Pci.Read (
Private->PciIo,
EfiPciIoWidthUint16,
PCI_DEVICE_ID_OFFSET,
1,
&DeviceId
)
);
outw (Private, SEQ_ADDRESS_REGISTER, 0x1206); outw (Private, SEQ_ADDRESS_REGISTER, 0x1206);
outw (Private, SEQ_ADDRESS_REGISTER, 0x0012); outw (Private, SEQ_ADDRESS_REGISTER, 0x0012);