Rev 4221 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4221 | Rev 4295 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | char buf[80]; |
33 | char buf[80]; |
34 | ipcarg_t ns_in_phone_hash; |
34 | ipcarg_t ns_in_phone_hash; |
35 | 35 | ||
36 | printf("%s: HelenOS PCI driver\n", NAME); |
36 | printf("%s: HelenOS PCI driver\n", NAME); |
37 | 37 | ||
38 | pacc = pci_alloc(); /* Get the pci_access structure */ |
38 | pacc = pci_alloc(); /* Get the pci_access structure */ |
39 | pci_init(pacc); /* Initialize the PCI library */ |
39 | pci_init(pacc); /* Initialize the PCI library */ |
40 | pci_scan_bus(pacc); /* We want to get the list of devices */ |
40 | pci_scan_bus(pacc); /* We want to get the list of devices */ |
41 | for(dev=pacc->devices; dev; dev=dev->next) { /* Iterate over all devices */ |
41 | for(dev=pacc->devices; dev; dev=dev->next) { /* Iterate over all devices */ |
42 | pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_IRQ); |
42 | pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_IRQ); |
43 | c = pci_read_word(dev, PCI_CLASS_DEVICE); /* Read config register directly */ |
43 | c = pci_read_word(dev, PCI_CLASS_DEVICE); /* Read config register directly */ |