diff options
author | sshwarts <sshwarts> | 2008-10-31 18:07:15 +0000 |
---|---|---|
committer | sshwarts <sshwarts> | 2008-10-31 18:07:15 +0000 |
commit | 98cb20b04a9cd9f0e288375b66e64f26aa622aec (patch) | |
tree | 12fb67902c9fb8311a27abe5ba4fda6b792423e6 /bios | |
parent | 52e32d674e0bd086f34f311ba68d459b5bd72ef9 (diff) |
Merge [ 2210194 ] Log pci class code patch
Diffstat (limited to 'bios')
-rw-r--r-- | bios/rombios32.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bios/rombios32.c b/bios/rombios32.c index 3410f3e7..a0802b54 100644 --- a/bios/rombios32.c +++ b/bios/rombios32.c @@ -756,10 +756,10 @@ static void pci_bios_init_device(PCIDevice *d) class = pci_config_readw(d, PCI_CLASS_DEVICE); vendor_id = pci_config_readw(d, PCI_VENDOR_ID); device_id = pci_config_readw(d, PCI_DEVICE_ID); - BX_INFO("PCI: bus=%d devfn=0x%02x: vendor_id=0x%04x device_id=0x%04x\n", - d->bus, d->devfn, vendor_id, device_id); + BX_INFO("PCI: bus=%d devfn=0x%02x: vendor_id=0x%04x device_id=0x%04x class=0x%04x\n", + d->bus, d->devfn, vendor_id, device_id, class); switch(class) { - case 0x0101: + case 0x0101: /* Mass storage controller - IDE interface */ if (vendor_id == PCI_VENDOR_ID_INTEL && (device_id == PCI_DEVICE_ID_INTEL_82371SB_1 || device_id == PCI_DEVICE_ID_INTEL_82371AB)) { @@ -775,14 +775,13 @@ static void pci_bios_init_device(PCIDevice *d) pci_set_io_region_addr(d, 3, 0x374); } break; - case 0x0300: + case 0x0300: /* Display controller - VGA compatible controller */ if (vendor_id != 0x1234) goto default_map; /* VGA: map frame buffer to default Bochs VBE address */ pci_set_io_region_addr(d, 0, 0xE0000000); break; - case 0x0800: - /* PIC */ + case 0x0800: /* Generic system peripheral - PIC */ if (vendor_id == PCI_VENDOR_ID_IBM) { /* IBM */ if (device_id == 0x0046 || device_id == 0xFFFF) { |