297 amd76xrom_cleanup(window);
298}
299
300static struct pci_device_id amd76xrom_pci_tbl[] = {
301 { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_7410,
302 PCI_ANY_ID, PCI_ANY_ID, },
303 { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_7440,
304 PCI_ANY_ID, PCI_ANY_ID, },
305 { PCI_VENDOR_ID_AMD, 0x7468 },
306 { 0, }
307};
308
309MODULE_DEVICE_TABLE(pci, amd76xrom_pci_tbl);
310
311
312
313
314
315
316
317
318
319
320static int __init init_amd76xrom(void)
321{
322 struct pci_dev *pdev;
323 struct pci_device_id *id;
324 pdev = NULL;
325 for(id = amd76xrom_pci_tbl; id->vendor; id++) {
326 pdev = pci_get_device(id->vendor, id->device, NULL);
327 if (pdev) {
328 break;
329 }
330 }
331 if (pdev) {
332 return amd76xrom_init_one(pdev, &amd76xrom_pci_tbl[0]);
333 }
334 return -ENXIO;
335
336
337