/[dynamips]/trunk/dev_c3745_eth.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/dev_c3745_eth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.7-RC1/dev_c3745_eth.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC upstream/dynamips-0.2.7-RC2/dev_c3745_eth.c revision 8 by dpavlin, Sat Oct 6 16:24:54 2007 UTC
# Line 57  static int dev_c3745_nm_eth_init(c3745_t Line 57  static int dev_c3745_nm_eth_init(c3745_t
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,0,                                          router->nm_bay[nm_bay].pci_map,0,
60                                          C3745_NETIO_IRQ);                                          c3745_net_irq_for_slot_port(nm_bay,0));
61     }     }
62    
63     /* Store device info into the router structure */     /* Store device info into the router structure */
# Line 149  static int dev_c3745_nm_16esw_init(c3745 Line 149  static int dev_c3745_nm_16esw_init(c3745
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,0,                              router->nm_bay[nm_bay].pci_map,0,
152                              C3745_NETIO_IRQ);                              c3745_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(c3745_nm_set_drvinfo(router,nm_bay,data));     return(c3745_nm_set_drvinfo(router,nm_bay,data));

Legend:
Removed from v.7  
changed lines
  Added in v.8

  ViewVC Help
Powered by ViewVC 1.1.26