/[dynamips]/upstream/dynamips-0.2.7-RC2/dev_c2691_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 /upstream/dynamips-0.2.7-RC2/dev_c2691_eth.c

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

upstream/dynamips-0.2.7-RC1/dev_c2691_eth.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC upstream/dynamips-0.2.7-RC2/dev_c2691_eth.c revision 8 by dpavlin, Sat Oct 6 16:24:54 2007 UTC
# Line 56  static int dev_c2691_nm_eth_init(c2691_t Line 56  static int dev_c2691_nm_eth_init(c2691_t
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 */
# Line 148  static int dev_c2691_nm_16esw_init(c2691 Line 148  static int dev_c2691_nm_16esw_init(c2691
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));

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

  ViewVC Help
Powered by ViewVC 1.1.26