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

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

upstream/dynamips-0.2.6-RC1/dev_c3600_eth.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.6-RC2/dev_c3600_eth.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 35  struct nm_eth_data { Line 35  struct nm_eth_data {
35   */   */
36  static int dev_c3600_nm_eth_init(c3600_t *router,char *name,u_int nm_bay,  static int dev_c3600_nm_eth_init(c3600_t *router,char *name,u_int nm_bay,
37                                   int nr_port,int interface_type,                                   int nr_port,int interface_type,
38                                   const struct c3600_eeprom *eeprom)                                   const struct cisco_eeprom *eeprom)
39  {  {
40     struct nm_bay_info *bay_info;     struct nm_bay_info *bay_info;
41     struct nm_eth_data *data;     struct nm_eth_data *data;
# Line 130  static int dev_c3600_nm_eth_unset_nio(c3 Line 130  static int dev_c3600_nm_eth_unset_nio(c3
130  /* NM-1E                                                                  */  /* NM-1E                                                                  */
131  /* ====================================================================== */  /* ====================================================================== */
132    
 /* NM-1E: 1 Ethernet Network Module EEPROM */  
 static const m_uint16_t eeprom_c3600_nm_1e_data[16] = {  
    0x0143, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,  
    0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c3600_eeprom eeprom_c3600_nm_1e = {  
    "NM-1E", (m_uint16_t *)eeprom_c3600_nm_1e_data,  
    sizeof(eeprom_c3600_nm_1e_data)/2,  
 };  
   
133  /*  /*
134   * dev_c3600_nm_1e_init()   * dev_c3600_nm_1e_init()
135   *   *
# Line 149  static const struct c3600_eeprom eeprom_ Line 138  static const struct c3600_eeprom eeprom_
138  static int dev_c3600_nm_1e_init(c3600_t *router,char *name,u_int nm_bay)  static int dev_c3600_nm_1e_init(c3600_t *router,char *name,u_int nm_bay)
139  {  {
140     return(dev_c3600_nm_eth_init(router,name,nm_bay,1,AM79C971_TYPE_10BASE_T,     return(dev_c3600_nm_eth_init(router,name,nm_bay,1,AM79C971_TYPE_10BASE_T,
141                                  &eeprom_c3600_nm_1e));                                  cisco_eeprom_find_nm("NM-1E")));
142  }  }
143    
144  /* ====================================================================== */  /* ====================================================================== */
145  /* NM-4E                                                                  */  /* NM-4E                                                                  */
146  /* ====================================================================== */  /* ====================================================================== */
147    
 /* NM-4E: 4 Ethernet Network Module EEPROM */  
 static const m_uint16_t eeprom_c3600_nm_4e_data[16] = {  
    0x0142, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,  
    0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c3600_eeprom eeprom_c3600_nm_4e = {  
    "NM-4E", (m_uint16_t *)eeprom_c3600_nm_4e_data,  
    sizeof(eeprom_c3600_nm_4e_data)/2,  
 };  
   
148  /*  /*
149   * dev_c3600_nm_4e_init()   * dev_c3600_nm_4e_init()
150   *   *
# Line 175  static const struct c3600_eeprom eeprom_ Line 153  static const struct c3600_eeprom eeprom_
153  static int dev_c3600_nm_4e_init(c3600_t *router,char *name,u_int nm_bay)  static int dev_c3600_nm_4e_init(c3600_t *router,char *name,u_int nm_bay)
154  {  {
155     return(dev_c3600_nm_eth_init(router,name,nm_bay,4,AM79C971_TYPE_10BASE_T,     return(dev_c3600_nm_eth_init(router,name,nm_bay,4,AM79C971_TYPE_10BASE_T,
156                                  &eeprom_c3600_nm_4e));                                  cisco_eeprom_find_nm("NM-4E")));
157  }  }
158    
159  /* ====================================================================== */  /* ====================================================================== */
160  /* NM-1FE-TX                                                              */  /* NM-1FE-TX                                                              */
161  /* ====================================================================== */  /* ====================================================================== */
162    
 /* NM-1FE-TX: 1 FastEthernet Network Module EEPROM */  
 static const m_uint16_t eeprom_c3600_nm_1fe_tx_data[16] = {  
    0x0144, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,  
    0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c3600_eeprom eeprom_c3600_nm_1fe_tx = {  
    "NM-1FE-TX", (m_uint16_t *)eeprom_c3600_nm_1fe_tx_data,  
    sizeof(eeprom_c3600_nm_1fe_tx_data)/2,  
 };  
   
163  /*  /*
164   * dev_c3600_nm_1fe_tx_init()   * dev_c3600_nm_1fe_tx_init()
165   *   *
# Line 201  static const struct c3600_eeprom eeprom_ Line 168  static const struct c3600_eeprom eeprom_
168  static int dev_c3600_nm_1fe_tx_init(c3600_t *router,char *name,u_int nm_bay)  static int dev_c3600_nm_1fe_tx_init(c3600_t *router,char *name,u_int nm_bay)
169  {  {
170     return(dev_c3600_nm_eth_init(router,name,nm_bay,1,AM79C971_TYPE_100BASE_TX,     return(dev_c3600_nm_eth_init(router,name,nm_bay,1,AM79C971_TYPE_100BASE_TX,
171                                  &eeprom_c3600_nm_1fe_tx));                                  cisco_eeprom_find_nm("NM-1FE-TX")));
172  }  }
173    
174  /* ====================================================================== */  /* ====================================================================== */
# Line 224  static m_uint16_t eeprom_c3600_leopard_2 Line 191  static m_uint16_t eeprom_c3600_leopard_2
191     0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFF00,     0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFF00,
192  };  };
193    
194  static const struct c3600_eeprom eeprom_c3600_leopard_2fe = {  static const struct cisco_eeprom eeprom_c3600_leopard_2fe = {
195     "Leopard-2FE", (m_uint16_t *)eeprom_c3600_leopard_2fe_data,     "Leopard-2FE", (m_uint16_t *)eeprom_c3600_leopard_2fe_data,
196     sizeof(eeprom_c3600_leopard_2fe_data)/2,     sizeof(eeprom_c3600_leopard_2fe_data)/2,
197  };  };

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

  ViewVC Help
Powered by ViewVC 1.1.26