67 |
data->port[i] = dev_am79c971_init(router->vm,name,interface_type, |
data->port[i] = dev_am79c971_init(router->vm,name,interface_type, |
68 |
router->nm_bay[nm_bay].pci_map, |
router->nm_bay[nm_bay].pci_map, |
69 |
bay_info->pci_device + i, |
bay_info->pci_device + i, |
70 |
C3600_NETIO_IRQ); |
c3600_net_irq_for_slot_port(nm_bay,i)); |
71 |
} |
} |
72 |
|
|
73 |
/* Store device info into the router structure */ |
/* Store device info into the router structure */ |
198 |
/* Create the device */ |
/* Create the device */ |
199 |
data = dev_nm_16esw_init(router->vm,name,nm_bay, |
data = dev_nm_16esw_init(router->vm,name,nm_bay, |
200 |
router->nm_bay[nm_bay].pci_map, |
router->nm_bay[nm_bay].pci_map, |
201 |
bay_info->pci_device,C3600_NETIO_IRQ); |
bay_info->pci_device, |
202 |
|
c3600_net_irq_for_slot_port(nm_bay,0)); |
203 |
|
|
204 |
/* Store device info into the router structure */ |
/* Store device info into the router structure */ |
205 |
return(c3600_nm_set_drvinfo(router,nm_bay,data)); |
return(c3600_nm_set_drvinfo(router,nm_bay,data)); |