/[dynamips]/upstream/dynamips-0.2.6-RC2/dev_pa_a1.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.6-RC2/dev_pa_a1.c

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

upstream/dynamips-0.2.5/dev_pa_a1.c revision 1 by dpavlin, Sat Oct 6 16:01:44 2007 UTC upstream/dynamips-0.2.6-RC2/dev_pa_a1.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 329  struct pa_a1_data { Line 329  struct pa_a1_data {
329     ptask_id_t tx_tid;     ptask_id_t tx_tid;
330  };  };
331    
 /* EEPROM definition */  
 static const m_uint16_t eeprom_pa_a1_data[64] = {  
    0x0117, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,  
    0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c7200_eeprom eeprom_pa_a1 = {  
    "PA-A1-OC3MM", (m_uint16_t *)eeprom_pa_a1_data, sizeof(eeprom_pa_a1_data)/2,  
 };  
   
332  /* Log a TI1570 message */  /* Log a TI1570 message */
333  #define TI1570_LOG(d,msg...) vm_log((d)->vm,(d)->name,msg)  #define TI1570_LOG(d,msg...) vm_log((d)->vm,(d)->name,msg)
334    
# Line 1537  int dev_c7200_pa_a1_init(c7200_t *router Line 1527  int dev_c7200_pa_a1_init(c7200_t *router
1527     memset(d,0,sizeof(*d));     memset(d,0,sizeof(*d));
1528    
1529     /* Set the EEPROM */     /* Set the EEPROM */
1530     c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_a1);     c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-A1"));
1531    
1532     /* Add PCI device TI1570 */     /* Add PCI device TI1570 */
1533     pci_dev_ti = pci_dev_add(router->pa_bay[pa_bay].pci_map,name,     pci_dev_ti = pci_dev_add(router->pa_bay[pa_bay].pci_map,name,
# Line 1678  struct c7200_pa_driver dev_c7200_pa_a1_d Line 1668  struct c7200_pa_driver dev_c7200_pa_a1_d
1668     dev_c7200_pa_a1_shutdown,     dev_c7200_pa_a1_shutdown,
1669     dev_c7200_pa_a1_set_nio,     dev_c7200_pa_a1_set_nio,
1670     dev_c7200_pa_a1_unset_nio,     dev_c7200_pa_a1_unset_nio,
1671       NULL,
1672  };  };

Legend:
Removed from v.1  
changed lines
  Added in v.3

  ViewVC Help
Powered by ViewVC 1.1.26