Use ds_retrieve_u32 to find the endpoint of pci.
This commit is contained in:
parent
47c18edb26
commit
9852471c08
@ -17,12 +17,14 @@ PUBLIC void pci_init1(name)
|
|||||||
char *name;
|
char *name;
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
|
u32_t u32;
|
||||||
size_t len;
|
size_t len;
|
||||||
message m;
|
message m;
|
||||||
|
|
||||||
r= _pm_findproc("pci", &pci_procnr);
|
r= ds_retrieve_u32("pci", &u32);
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
panic("pci", "pci_init1: _pm_findproc failed for 'pci'", r);
|
panic("pci", "pci_init1: ds_retrieve_u32 failed for 'pci'", r);
|
||||||
|
pci_procnr= u32;
|
||||||
|
|
||||||
m.m_type= BUSC_PCI_INIT;
|
m.m_type= BUSC_PCI_INIT;
|
||||||
len= strlen(name);
|
len= strlen(name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user