7 #include <minix/sysutil.h>
9 /*===========================================================================*
11 *===========================================================================*/
12 int pci_find_dev(u8_t bus
, u8_t dev
, u8_t func
, int *devindp
)
17 m
.m_type
= BUSC_PCI_FIND_DEV
;
22 r
= ipc_sendrec(pci_procnr
, &m
);
24 panic("pci_find_dev: can't talk to PCI: %d", r
);
29 printf("pci_find_dev: got device %d for %d.%d.%d\n",
30 *devindp
, bus
, dev
, func
);
34 panic("pci_find_dev: got bad reply from PCI: %d", m
.m_type
);
36 printf("pci_find_dev: got nothing\n");