The updating (change the Interrupt Line to 0xFF for unknown setting) is only for x86 based on the PCI spec, so added the compiler option for such code.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2229 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
zliu3 2007-01-12 03:42:01 +00:00
parent 2da41b57c5
commit 6c31fdb887
1 changed files with 32 additions and 27 deletions

View File

@ -338,9 +338,14 @@ Returns:
//
// Force Interrupt line to "Unknown" or "No Connection"
// based on the PCI spec, the Interrupt line for x86 should be set as 0xFF for unknown.
//
PciIo = &(PciIoDevice->PciIo);
#ifndef MDE_CPU_IPF
Data8 = PCI_INT_LINE_UNKNOWN;
#else
Data8 = 0;
#endif
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &Data8);
//