10 #include <minix/sysutil.h>
14 /*===========================================================================*
16 *===========================================================================*/
17 PUBLIC
void pci_init1(name
)
25 r
= ds_retrieve_label_num("pci", &u32
);
27 panic("pci_init1: ds_retrieve_label_num failed for 'pci': %d", r
);
30 m
.m_type
= BUSC_PCI_INIT
;
32 if (len
+1 <= sizeof(m
.m3_ca1
))
33 strcpy(m
.m3_ca1
, name
);
36 len
= sizeof(m
.m3_ca1
)-1;
37 memcpy(m
.m3_ca1
, name
, len
);
40 r
= sendrec(pci_procnr
, &m
);
42 panic("pci_init1: can't talk to PCI: %d", r
);
44 panic("pci_init1: got bad reply from PCI: %d", m
.m_type
);