make vfs & filesystems use failable copying
[minix3.git] / lib / libsys / pci_init.c
blob11e028bf1079e87dc14673ca507480ba61e61d5b
1 /*
2 pci_init.c
3 */
5 #include "syslib.h"
6 #include <minix/ds.h>
7 #include <minix/sysutil.h>
9 endpoint_t pci_procnr= ANY;
11 /*===========================================================================*
12 * pci_init *
13 *===========================================================================*/
14 void pci_init(void)
16 int r;
17 message m;
19 r= ds_retrieve_label_endpt("pci", &pci_procnr);
20 if (r != 0)
21 panic("pci_init: unable to obtain label for 'pci': %d", r);
23 m.m_type= BUSC_PCI_INIT;
24 r= ipc_sendrec(pci_procnr, &m);
25 if (r != 0)
26 panic("pci_init: can't talk to PCI: %d", r);
27 if (m.m_type != 0)
28 panic("pci_init: got bad reply from PCI: %d", m.m_type);