7 #include <minix/sysutil.h>
9 /*===========================================================================*
11 *===========================================================================*/
12 int pci_get_bar(devind
, port
, base
, size
, ioflag
)
22 m
.m_type
= BUSC_PCI_GET_BAR
;
23 m
.BUSC_PGB_DEVIND
= devind
;
24 m
.BUSC_PGB_PORT
= port
;
26 r
= ipc_sendrec(pci_procnr
, &m
);
28 panic("pci_get_bar: can't talk to PCI: %d", r
);
32 *base
= m
.BUSC_PGB_BASE
;
33 *size
= m
.BUSC_PGB_SIZE
;
34 *ioflag
= m
.BUSC_PGB_IOFLAG
;