56 |
/* Create the AMD Am971c971 chip(s) */ |
/* Create the AMD Am971c971 chip(s) */ |
57 |
for(i=0;i<data->nr_port;i++) { |
for(i=0;i<data->nr_port;i++) { |
58 |
data->port[i] = dev_am79c971_init(router->vm,name,interface_type, |
data->port[i] = dev_am79c971_init(router->vm,name,interface_type, |
59 |
router->nm_bay[nm_bay].pci_map, |
router->nm_bay[nm_bay].pci_map,6+i, |
60 |
6,C2691_NETIO_IRQ); |
c2691_net_irq_for_slot_port(nm_bay,i)); |
61 |
} |
} |
62 |
|
|
63 |
/* Store device info into the router structure */ |
/* Store device info into the router structure */ |
148 |
|
|
149 |
/* Create the device */ |
/* Create the device */ |
150 |
data = dev_nm_16esw_init(router->vm,name,nm_bay, |
data = dev_nm_16esw_init(router->vm,name,nm_bay, |
151 |
router->nm_bay[nm_bay].pci_map, |
router->nm_bay[nm_bay].pci_map,6, |
152 |
6,C2691_NETIO_IRQ); |
c2691_net_irq_for_slot_port(nm_bay,0)); |
153 |
|
|
154 |
/* Store device info into the router structure */ |
/* Store device info into the router structure */ |
155 |
return(c2691_nm_set_drvinfo(router,nm_bay,data)); |
return(c2691_nm_set_drvinfo(router,nm_bay,data)); |