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

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

upstream/dynamips-0.2.6-RC1/dev_c7200_pos.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.6-RC2/dev_c7200_pos.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 93  struct pos_oc3_data { Line 93  struct pos_oc3_data {
93     ptask_id_t tx_tid;     ptask_id_t tx_tid;
94  };  };
95    
 /* EEPROM definition */  
 static const m_uint16_t eeprom_pos_oc3_data[64] = {  
    0x0196, 0x0202, 0xffff, 0xffff, 0x490C, 0x7806, 0x0000, 0x0000,  
    0x5000, 0x0000, 0x0208, 0x1900, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c7200_eeprom eeprom_pos_oc3 = {  
    "PA-POS-OC3MM", (m_uint16_t *)eeprom_pos_oc3_data,  
    sizeof(eeprom_pos_oc3_data)/2,  
 };  
   
96  /* Log a PA-POS-OC3 message */  /* Log a PA-POS-OC3 message */
97  #define POS_LOG(d,msg...) vm_log((d)->vm,(d)->name,msg)  #define POS_LOG(d,msg...) vm_log((d)->vm,(d)->name,msg)
98    
# Line 653  int dev_c7200_pa_pos_init(c7200_t *route Line 642  int dev_c7200_pa_pos_init(c7200_t *route
642     d->vm   = router->vm;     d->vm   = router->vm;
643    
644     /* Set the EEPROM */     /* Set the EEPROM */
645     c7200_pa_set_eeprom(router,pa_bay,&eeprom_pos_oc3);     c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-POS-OC3"));
646    
647     /* Get the appropriate PCI bus */     /* Get the appropriate PCI bus */
648     pci_bus = router->pa_bay[pa_bay].pci_map;     pci_bus = router->pa_bay[pa_bay].pci_map;

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

  ViewVC Help
Powered by ViewVC 1.1.26