Uninitialized vector entry?
[minix3.git] / lib / syslib / pci_rescan_bus.c
blob7542b202d5a13ed50b35932d562f008c90528e6e
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 PUBLIC void pci_rescan_bus(busnr)
13 u8_t busnr;
15 int r;
16 message m;
18 m.m_type= BUSC_PCI_RESCAN;
19 m.m1_i1= busnr;
21 r= sendrec(pci_procnr, &m);
22 if (r != 0)
23 panic("pci", "pci_rescan_bus: can't talk to PCI", r);
25 if (m.m_type != 0)
27 panic("pci", "pci_rescan_bus: got bad reply from PCI",
28 m.m_type);