diff options
Diffstat (limited to 'hw/kdrive/ati/ati_stub.c')
-rw-r--r-- | hw/kdrive/ati/ati_stub.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/hw/kdrive/ati/ati_stub.c b/hw/kdrive/ati/ati_stub.c index 2cb9e0092..0162362bf 100644 --- a/hw/kdrive/ati/ati_stub.c +++ b/hw/kdrive/ati/ati_stub.c @@ -29,30 +29,17 @@ #include "ati.h" #include "klinux.h" -extern struct pci_id_list radeon_id_list[]; -extern struct pci_id_list r128_id_list[]; +extern struct pci_id_entry ati_pci_ids[]; void InitCard(char *name) { + struct pci_id_entry *id; KdCardAttr attr; - int i, j; - for (i = 0; radeon_id_list[i].name != NULL; i++) { - CARD16 vendor = radeon_id_list[i].vendor; - CARD16 device = radeon_id_list[i].device; - - j = 0; - while (LinuxFindPci(vendor, device, j++, &attr)) - KdCardInfoAdd(&ATIFuncs, &attr, 0); - } - - for (i = 0; r128_id_list[i].name != NULL; i++) { - CARD16 vendor = r128_id_list[i].vendor; - CARD16 device = r128_id_list[i].device; - - j = 0; - while (LinuxFindPci(vendor, device, j++, &attr)) + for (id = ati_pci_ids; id->name != NULL; id++) { + int j = 0; + while (LinuxFindPci(id->vendor, id->device, j++, &attr)) KdCardInfoAdd(&ATIFuncs, &attr, 0); } } |