pkgin_all: script to auto-install all packages
[minix.git] / lib / libsys / pci_rescan_bus.c
blob933055cfe6b114e9c47303e4d1454bd7c257d9b6
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= 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);