Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4204 → Rev 4221

/branches/dd/uspace/srv/pci/pci.c
22,9 → 22,6
 
#include "libpci/pci.h"
 
#define PCI_CONF1 0xcf8
#define PCI_CONF1_SIZE 8
 
#define NAME "PCI"
 
static struct pci_access *pacc;
37,13 → 34,7
ipcarg_t ns_in_phone_hash;
 
printf("%s: HelenOS PCI driver\n", NAME);
 
/*
* Gain control over PCI configuration ports.
*/
void * addr;
pio_enable((void *) PCI_CONF1, PCI_CONF1_SIZE, &addr);
 
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 */