/[dynamips]/trunk/dev_c7200_serial.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_serial.c

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

upstream/dynamips-0.2.6-RC1/dev_c7200_serial.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.6-RC2/dev_c7200_serial.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 38  Line 38 
38  /* PA-4T+                                                                 */  /* PA-4T+                                                                 */
39  /* ====================================================================== */  /* ====================================================================== */
40    
 /* PA-4T+ EEPROM definition */  
 static m_uint16_t eeprom_pa_4t_data[64] = {  
    0x010C, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,  
    0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c7200_eeprom eeprom_pa_4t = {  
    "PA-4T+", eeprom_pa_4t_data, sizeof(eeprom_pa_4t_data)/2,  
 };  
   
41  /*  /*
42   * dev_c7200_pa_4t_init()   * dev_c7200_pa_4t_init()
43   *   *
# Line 58  int dev_c7200_pa_4t_init(c7200_t *router Line 48  int dev_c7200_pa_4t_init(c7200_t *router
48     struct mueslix_data *data;     struct mueslix_data *data;
49    
50     /* Set the EEPROM */     /* Set the EEPROM */
51     c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_4t);     c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-4T+"));
52    
53     /* Create the Mueslix chip */     /* Create the Mueslix chip */
54     data = dev_mueslix_init(router->vm,name,1,     data = dev_mueslix_init(router->vm,name,1,
# Line 126  struct pa8t_data { Line 116  struct pa8t_data {
116     struct mueslix_data *mueslix[2];     struct mueslix_data *mueslix[2];
117  };  };
118    
 /* EEPROM definition */  
 static m_uint16_t eeprom_pa_8t_data[64] = {  
    0x010E, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,  
    0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c7200_eeprom eeprom_pa_8t = {  
    "PA-8T", eeprom_pa_8t_data, sizeof(eeprom_pa_8t_data)/2,  
 };  
   
119  /*  /*
120   * dev_c7200_pa_8t_init()   * dev_c7200_pa_8t_init()
121   *   *
# Line 152  int dev_c7200_pa_8t_init(c7200_t *router Line 132  int dev_c7200_pa_8t_init(c7200_t *router
132     }     }
133    
134     /* Set the EEPROM */     /* Set the EEPROM */
135     c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_8t);     c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-8T"));
136    
137     /* Create the 1st Mueslix chip */     /* Create the 1st Mueslix chip */
138     data->mueslix[0] = dev_mueslix_init(router->vm,name,1,     data->mueslix[0] = dev_mueslix_init(router->vm,name,1,

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

  ViewVC Help
Powered by ViewVC 1.1.26