Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4203 → Rev 4204

/branches/dd/uspace/srv/pci/pci.c
41,9 → 41,10
/*
* Gain control over PCI configuration ports.
*/
iospace_enable(task_get_id(), (void *) PCI_CONF1, PCI_CONF1_SIZE);
void * addr;
pio_enable((void *) PCI_CONF1, PCI_CONF1_SIZE, &addr);
 
pacc = pci_alloc(); /* Get the pci_access structure */
pacc = pci_alloc(); /* Get the pci_access structure */
pci_init(pacc); /* Initialize the PCI library */
pci_scan_bus(pacc); /* We want to get the list of devices */
for(dev=pacc->devices; dev; dev=dev->next) { /* Iterate over all devices */