diff options
Diffstat (limited to 'pci.c')
-rw-r--r-- | pci.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -81,7 +81,7 @@ extern struct pciusb_entries pci_probe(void) { continue; } read(devf, &buf, 0x30); /* these files're 256 bytes but we only need first 48 bytes*/ - e->class_ = dev->device_class; + e->class_id = dev->device_class; /* we divide by 2 because we address the array as a word array since we read a word */ e->subvendor = bufi[PCI_SUBSYSTEM_VENDOR_ID/2]; // == (u16)!(buf[PCI_SUBSYSTEM_VENDOR_ID] | (buf[PCI_SUBSYSTEM_VENDOR_ID+1] << 8)) e->subdevice = bufi[PCI_SUBSYSTEM_ID/2]; @@ -95,7 +95,7 @@ extern struct pciusb_entries pci_probe(void) { /* special rules below must be in sync with gi/mdk-stage1/probing.c */ - if (e->class_ == PCI_CLASS_SERIAL_USB) { + if (e->class_id == PCI_CLASS_SERIAL_USB) { /* taken from kudzu's pci.c */ char *module = class_prog == 0 ? "usb-uhci" : @@ -103,13 +103,13 @@ extern struct pciusb_entries pci_probe(void) { class_prog == 0x20 ? "ehci-hcd" : NULL; if (module) e->module = strdup(module); - } else if (e->class_ == PCI_CLASS_SERIAL_FIREWIRE) { + } else if (e->class_id == PCI_CLASS_SERIAL_FIREWIRE) { /* taken from kudzu's pci.c */ if (class_prog == 0x10) e->module = strdup("ohci1394"); - } else if (e->class_ == PCI_CLASS_BRIDGE_CARDBUS) { + } else if (e->class_id == PCI_CLASS_BRIDGE_CARDBUS) { e->module = strdup("yenta_socket"); - } else if (e->class_ == (PCI_CLASS_BRIDGE_HOST << 8)) { /* AGP */ + } else if (e->class_id == (PCI_CLASS_BRIDGE_HOST << 8)) { /* AGP */ if (e->vendor == 0x10b9) e->module = strdup("ali-agp"); else if (e->vendor == 0x1002) @@ -125,7 +125,7 @@ extern struct pciusb_entries pci_probe(void) { || e->subvendor == 0x1186 && e->subdevice == 0x1300 || e->subvendor == 0x13d1 && e->subdevice == 0xab06) e->module = strdup("8139too"); - } else if (e->vendor == 0x10de && e->class_ == PCI_CLASS_STORAGE_IDE) { + } else if (e->vendor == 0x10de && e->class_id == PCI_CLASS_STORAGE_IDE) { e->module = strdup("sata_nv"); } else if (e->vendor == 0x10b5 && (e->device == 0x9030 || e->device == 0x9050) && e->subvendor == 0x1369) { e->module = strdup("snd-vx222"); |