Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 183 → Rev 184

/shark/trunk/drivers/pci/pci.c
13,6 → 13,8
static int ndev = 0;
static struct pci_des pci_devs[N_MAX_DEVS];
 
static int initialized = 0;
 
/* scan the bus to find all the connected devices */
int scan_bus(struct pci_des *p_des)
{
141,9 → 143,16
 
int pci_init(void)
{
if (initialized == 1) return 1;
if (pcibios_init() == -1) {
return -1;
}
ndev = scan_bus(pci_devs);
initialized = 1;
return 1;
}