9 #include <minix/sysutil.h>
13 /*===========================================================================*
15 *===========================================================================*/
16 PUBLIC
void pci_init1(name
)
23 r
= _pm_findproc("pci", &pci_procnr
);
25 panic("pci", "pci_init1: _pm_findproc failed for 'pci'", r
);
27 m
.m_type
= BUSC_PCI_INIT
;
29 if (len
+1 <= sizeof(m
.m3_ca1
))
30 strcpy(m
.m3_ca1
, name
);
33 len
= sizeof(m
.m3_ca1
)-1;
34 memcpy(m
.m3_ca1
, name
, len
);
37 r
= sendrec(pci_procnr
, &m
);
39 panic("pci", "pci_init1: can't talk to PCI", r
);
41 panic("pci", "pci_init1: got bad reply from PCI", m
.m_type
);