[pci] Correct invalid base-class/sub-class/prog-if order in PCIR
PCI Configuration Space contains fields prog-if at the offset 0x09, sub-class at the offset 0x0a and base-class at the offset 0x0b (it respects little endian). PCIR structure uses these fields in the same order. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
133f4c47ba
commit
ba0d5aa993
+1
-1
@@ -149,7 +149,7 @@ static void make_efi_rom ( FILE *pe, FILE *rom, struct options *opts ) {
|
||||
headers->pci.VendorId = opts->vendor;
|
||||
headers->pci.DeviceId = opts->device;
|
||||
headers->pci.Length = sizeof ( headers->pci );
|
||||
headers->pci.ClassCode[0] = PCI_CLASS_NETWORK;
|
||||
headers->pci.ClassCode[2] = PCI_CLASS_NETWORK;
|
||||
headers->pci.ImageLength = ( rom_size / 512 );
|
||||
headers->pci.CodeType = 0x03; /* No constant in EFI headers? */
|
||||
headers->pci.Indicator = 0x80; /* No constant in EFI headers? */
|
||||
|
||||
Reference in New Issue
Block a user