Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / lib / libsys / pci_rescan_bus.c
blobabe1fb32db1c75189b33e76a2355cbf2276040bb
1 /*
2 pci_rescan_bus.c
3 */
5 #include "pci.h"
6 #include "syslib.h"
7 #include <minix/sysutil.h>
9 /*===========================================================================*
10 * pci_rescan_bus *
11 *===========================================================================*/
12 void pci_rescan_bus(u8_t busnr)
14 int r;
15 message m;
17 m.m_type= BUSC_PCI_RESCAN;
18 m.m1_i1= busnr;
20 r= ipc_sendrec(pci_procnr, &m);
21 if (r != 0)
22 panic("pci_rescan_bus: can't talk to PCI: %d", r);
24 if (m.m_type != 0)
26 panic("pci_rescan_bus: got bad reply from PCI: %d", m.m_type);