X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fpiix3.c;h=d20ad3cd63630782ba51595f526db46168e624e1;hb=2e8b584de26a975655d20d5e94a047a4b286b339;hp=7beb6ddfddc8433550b0d483e12bb7d256b1446a;hpb=a1d3e2f36e9ef64ca62c611c4f0aa050726e186b;p=palacios.git diff --git a/palacios/src/devices/piix3.c b/palacios/src/devices/piix3.c index 7beb6dd..d20ad3c 100644 --- a/palacios/src/devices/piix3.c +++ b/palacios/src/devices/piix3.c @@ -78,15 +78,15 @@ static int init_piix3(struct vm_device * dev) { 0, -1, 0, "PIIX3", bars, NULL, NULL, NULL, dev); - if (!pci_dev) { + if (pci_dev == NULL) { PrintError("Could not register PCI Device for PIIX3\n"); return -1; } pci_dev->config_header.vendor_id = 0x8086; pci_dev->config_header.device_id = 0x7000; // PIIX4 is 0x7001 - pci_dev->config_header.subclass = 0x01; // SubClass: host2pci - pci_dev->config_header.class = 0x06; // Class: PCI bridge + pci_dev->config_header.class = PCI_CLASS_BRIDGE; + pci_dev->config_header.subclass = PCI_BRIDGE_SUBCLASS_PCI_ISA; piix3->southbridge_pci = pci_dev;