| 9 | static struct pci_access *pacc; |
| 10 | |
| 11 | int pci_initialize(void) |
| 12 | { |
| 13 | struct pci_dev *dev; |
| 14 | |
| 15 | pacc = pci_alloc(); |
| 16 | |
| 17 | pci_init(pacc); |
| 18 | pci_scan_bus(pacc); |
| 19 | for (dev = pacc->devices; dev; dev = dev->next) { |
| 20 | pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES); |
| 21 | } |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | int pci_exit(void) |
| 26 | { |