57 |
data->port[i] = dev_am79c971_init(router->vm,name,interface_type, |
data->port[i] = dev_am79c971_init(router->vm,name,interface_type, |
58 |
router->nm_bay[nm_bay].pci_map, |
router->nm_bay[nm_bay].pci_map, |
59 |
i+(nm_bay * 4), |
i+(nm_bay * 4), |
60 |
C2600_NETIO_IRQ); |
c2600_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 */ |
216 |
/* Create the device */ |
/* Create the device */ |
217 |
data = dev_nm_16esw_init(router->vm,name,nm_bay, |
data = dev_nm_16esw_init(router->vm,name,nm_bay, |
218 |
router->nm_bay[nm_bay].pci_map,4, |
router->nm_bay[nm_bay].pci_map,4, |
219 |
C2600_NETIO_IRQ); |
c2600_net_irq_for_slot_port(nm_bay,0)); |
220 |
|
|
221 |
/* Store device info into the router structure */ |
/* Store device info into the router structure */ |
222 |
return(c2600_nm_set_drvinfo(router,nm_bay,data)); |
return(c2600_nm_set_drvinfo(router,nm_bay,data)); |