/[dynamips]/trunk/dev_c7200_bri.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_c7200_bri.c

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

upstream/dynamips-0.2.6-RC1/dev_c7200_bri.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.6-RC2/dev_c7200_bri.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 285  struct pa_4b_data { Line 285  struct pa_4b_data {
285     u_int m32_offset;     u_int m32_offset;
286  };  };
287    
 /* EEPROM definition (3D = PA-4B, 3E = PA-8B) */  
 static const m_uint16_t eeprom_pa_4b_data[64] = {  
    0x013D, 0x0202, 0xffff, 0xffff, 0x490C, 0x7806, 0x0000, 0x0000,  
    0x5000, 0x0000, 0x0208, 0x1900, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c7200_eeprom eeprom_pa_4b = {  
    "PA-4B", (m_uint16_t *)eeprom_pa_4b_data,  
    sizeof(eeprom_pa_4b_data)/2,  
 };  
   
288  /* Log a PA-4B/PA-8B message */  /* Log a PA-4B/PA-8B message */
289  #define BRI_LOG(d,msg...) vm_log((d)->vm,(d)->name,msg)  #define BRI_LOG(d,msg...) vm_log((d)->vm,(d)->name,msg)
290    
# Line 810  int dev_c7200_pa_bri_init(c7200_t *route Line 799  int dev_c7200_pa_bri_init(c7200_t *route
799     d->m32_data.vm = router->vm;     d->m32_data.vm = router->vm;
800    
801     /* Set the EEPROM */     /* Set the EEPROM */
802     c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_4b);     c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-4B"));
803    
804     /* Add as PCI device PA-4B */     /* Add as PCI device PA-4B */
805     pci_dev = pci_dev_add(router->pa_bay[pa_bay].pci_map,name,     pci_dev = pci_dev_add(router->pa_bay[pa_bay].pci_map,name,

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

  ViewVC Help
Powered by ViewVC 1.1.26