/[dynamips]/upstream/dynamips-0.2.7-RC1/cisco_eeprom.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.7-RC1/cisco_eeprom.c

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

upstream/dynamips-0.2.6-RC2/cisco_eeprom.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC upstream/dynamips-0.2.6-RC3/cisco_eeprom.c revision 4 by dpavlin, Sat Oct 6 16:06:49 2007 UTC
# Line 18  Line 18 
18  /* ====================================================================== */  /* ====================================================================== */
19  /* NM-1E: 1 Ethernet Port Network Module EEPROM                           */  /* NM-1E: 1 Ethernet Port Network Module EEPROM                           */
20  /* ====================================================================== */  /* ====================================================================== */
21  static const m_uint16_t eeprom_nm_1e_data[16] = {  static const m_uint16_t eeprom_nm_1e_data[] = {
22     0x0143, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,     0x0143, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,
23     0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
24  };  };
# Line 26  static const m_uint16_t eeprom_nm_1e_dat Line 26  static const m_uint16_t eeprom_nm_1e_dat
26  /* ====================================================================== */  /* ====================================================================== */
27  /* NM-4E: 4 Ethernet Port Network Module EEPROM                           */  /* NM-4E: 4 Ethernet Port Network Module EEPROM                           */
28  /* ====================================================================== */  /* ====================================================================== */
29  static const m_uint16_t eeprom_nm_4e_data[16] = {  static const m_uint16_t eeprom_nm_4e_data[] = {
30     0x0142, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,     0x0142, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,
31     0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
32  };  };
# Line 34  static const m_uint16_t eeprom_nm_4e_dat Line 34  static const m_uint16_t eeprom_nm_4e_dat
34  /* ====================================================================== */  /* ====================================================================== */
35  /* NM-1FE-TX: 1 FastEthernet Port Network Module EEPROM                   */  /* NM-1FE-TX: 1 FastEthernet Port Network Module EEPROM                   */
36  /* ====================================================================== */  /* ====================================================================== */
37  static const m_uint16_t eeprom_nm_1fe_tx_data[16] = {  static const m_uint16_t eeprom_nm_1fe_tx_data[] = {
38     0x0144, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,     0x0144, 0x0100, 0x0075, 0xCD81, 0x500D, 0xA201, 0x0000, 0x0000,
39     0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5800, 0x0000, 0x9803, 0x2000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
40  };  };
# Line 56  static m_uint16_t eeprom_nm_16esw_data[] Line 56  static m_uint16_t eeprom_nm_16esw_data[]
56  /* ====================================================================== */  /* ====================================================================== */
57  /* NM-4T: 4 Serial Network Module EEPROM                                  */  /* NM-4T: 4 Serial Network Module EEPROM                                  */
58  /* ====================================================================== */  /* ====================================================================== */
59  static m_uint16_t eeprom_nm_4t_data[64] = {  static m_uint16_t eeprom_nm_4t_data[] = {
60     0x0154, 0x0101, 0x009D, 0x2D64, 0x5009, 0x0A02, 0x0000, 0x0000,     0x0154, 0x0101, 0x009D, 0x2D64, 0x5009, 0x0A02, 0x0000, 0x0000,
61     0x5800, 0x0000, 0x9811, 0x0300, 0x0005, 0xFFFF, 0xFFFF, 0xFFFF,     0x5800, 0x0000, 0x9811, 0x0300, 0x0005, 0xFFFF, 0xFFFF, 0xFFFF,
62  };  };
# Line 85  const struct cisco_eeprom *cisco_eeprom_ Line 85  const struct cisco_eeprom *cisco_eeprom_
85  /* ====================================================================== */  /* ====================================================================== */
86  /* PA-FE-TX: 1 FastEthernet Port Adapter EEPROM                           */  /* PA-FE-TX: 1 FastEthernet Port Adapter EEPROM                           */
87  /* ====================================================================== */  /* ====================================================================== */
88  static const m_uint16_t eeprom_pa_fe_tx_data[16] = {  static const m_uint16_t eeprom_pa_fe_tx_data[] = {
89     0x0111, 0x0102, 0xffff, 0xffff, 0x4906, 0x9804, 0x0000, 0x0000,     0x0111, 0x0102, 0xffff, 0xffff, 0x4906, 0x9804, 0x0000, 0x0000,
90     0x6000, 0x0000, 0x9812, 0x1700, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x6000, 0x0000, 0x9812, 0x1700, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
91  };  };
# Line 93  static const m_uint16_t eeprom_pa_fe_tx_ Line 93  static const m_uint16_t eeprom_pa_fe_tx_
93  /* ====================================================================== */  /* ====================================================================== */
94  /* PA-4E: 4 Ethernet Port Adapter EEPROM                                  */  /* PA-4E: 4 Ethernet Port Adapter EEPROM                                  */
95  /* ====================================================================== */  /* ====================================================================== */
96  static const m_uint16_t eeprom_pa_4e_data[16] = {  static const m_uint16_t eeprom_pa_4e_data[] = {
97     0x0102, 0x010E, 0xFFFF, 0xFFFF, 0x4906, 0x1404, 0x0000, 0x0000,     0x0102, 0x010E, 0xFFFF, 0xFFFF, 0x4906, 0x1404, 0x0000, 0x0000,
98     0x5000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
99  };  };
# Line 101  static const m_uint16_t eeprom_pa_4e_dat Line 101  static const m_uint16_t eeprom_pa_4e_dat
101  /* ====================================================================== */  /* ====================================================================== */
102  /* PA-8E: 8 Ethernet Port Adapter EEPROM                                  */  /* PA-8E: 8 Ethernet Port Adapter EEPROM                                  */
103  /* ====================================================================== */  /* ====================================================================== */
104  static const m_uint16_t eeprom_pa_8e_data[16] = {  static const m_uint16_t eeprom_pa_8e_data[] = {
105     0x0101, 0x010E, 0xFFFF, 0xFFFF, 0x4906, 0x1404, 0x0000, 0x0000,     0x0101, 0x010E, 0xFFFF, 0xFFFF, 0x4906, 0x1404, 0x0000, 0x0000,
106     0x5000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5000, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
107  };  };
# Line 109  static const m_uint16_t eeprom_pa_8e_dat Line 109  static const m_uint16_t eeprom_pa_8e_dat
109  /* ====================================================================== */  /* ====================================================================== */
110  /* PA-4T+: 4 Serial Port Adapter EEPROM                                   */  /* PA-4T+: 4 Serial Port Adapter EEPROM                                   */
111  /* ====================================================================== */  /* ====================================================================== */
112  static m_uint16_t eeprom_pa_4t_data[64] = {  static m_uint16_t eeprom_pa_4t_data[] = {
113     0x010C, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,     0x010C, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,
114     0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
115  };  };
# Line 117  static m_uint16_t eeprom_pa_4t_data[64] Line 117  static m_uint16_t eeprom_pa_4t_data[64]
117  /* ====================================================================== */  /* ====================================================================== */
118  /* PA-8T: 8 Serial Port Adapter EEPROM                                    */  /* PA-8T: 8 Serial Port Adapter EEPROM                                    */
119  /* ====================================================================== */  /* ====================================================================== */
120  static m_uint16_t eeprom_pa_8t_data[64] = {  static m_uint16_t eeprom_pa_8t_data[] = {
121     0x010E, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,     0x010E, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,
122     0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
123  };  };
# Line 125  static m_uint16_t eeprom_pa_8t_data[64] Line 125  static m_uint16_t eeprom_pa_8t_data[64]
125  /* ====================================================================== */  /* ====================================================================== */
126  /* PA-A1: 1 ATM Port Adapter EEPROM                                       */  /* PA-A1: 1 ATM Port Adapter EEPROM                                       */
127  /* ====================================================================== */  /* ====================================================================== */
128  static const m_uint16_t eeprom_pa_a1_data[64] = {  static const m_uint16_t eeprom_pa_a1_data[] = {
129     0x0117, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,     0x0117, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,
130     0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,     0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
131  };  };
# Line 133  static const m_uint16_t eeprom_pa_a1_dat Line 133  static const m_uint16_t eeprom_pa_a1_dat
133  /* ====================================================================== */  /* ====================================================================== */
134  /* PA-POS-OC3: 1 POS Port Adapter EEPROM                                   */  /* PA-POS-OC3: 1 POS Port Adapter EEPROM                                   */
135  /* ====================================================================== */  /* ====================================================================== */
136  static const m_uint16_t eeprom_pa_pos_oc3_data[64] = {  static const m_uint16_t eeprom_pa_pos_oc3_data[] = {
137     0x0196, 0x0202, 0xffff, 0xffff, 0x490C, 0x7806, 0x0000, 0x0000,     0x0196, 0x0202, 0xffff, 0xffff, 0x490C, 0x7806, 0x0000, 0x0000,
138     0x5000, 0x0000, 0x0208, 0x1900, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF,     0x5000, 0x0000, 0x0208, 0x1900, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF,
139  };  };
# Line 141  static const m_uint16_t eeprom_pa_pos_oc Line 141  static const m_uint16_t eeprom_pa_pos_oc
141  /* ====================================================================== */  /* ====================================================================== */
142  /* PA-4B: 4 BRI Port Adapter EEPROM                                       */  /* PA-4B: 4 BRI Port Adapter EEPROM                                       */
143  /* ====================================================================== */  /* ====================================================================== */
144  static const m_uint16_t eeprom_pa_4b_data[64] = {  static const m_uint16_t eeprom_pa_4b_data[] = {
145     0x013D, 0x0202, 0xffff, 0xffff, 0x490C, 0x7806, 0x0000, 0x0000,     0x013D, 0x0202, 0xffff, 0xffff, 0x490C, 0x7806, 0x0000, 0x0000,
146     0x5000, 0x0000, 0x0208, 0x1900, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF,     0x5000, 0x0000, 0x0208, 0x1900, 0x0000, 0xFFFF, 0xFFFF, 0xFFFF,
147  };  };
148    
149  /* ====================================================================== */  /* ====================================================================== */
150    /* PA-MC-8TE1                                                             */
151    /* ====================================================================== */
152    static const m_uint16_t eeprom_pa_mc8te1_data[] = {
153       0x04FF, 0x4003, 0x4E41, 0x0200, 0xC18B, 0x4A41, 0x4530, 0x3834,
154       0x3159, 0x3251, 0x3082, 0x491D, 0x7D02, 0x4241, 0x3003, 0x0081,
155       0x0000, 0x0000, 0x0400, 0x8000, 0x0127, 0x9BCB, 0x9450, 0x412D,
156       0x4D43, 0x2D38, 0x5445, 0x312B, 0x2020, 0x2020, 0x2020, 0x2020,
157       0x20C0, 0x4603, 0x2000, 0x4BBB, 0x02FF, 0xFFFF, 0xFFFF, 0xFFFF,
158       0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
159       0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
160       0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
161    };
162    
163    /* ====================================================================== */
164  /* PA EEPROMs                                                             */  /* PA EEPROMs                                                             */
165  /* ====================================================================== */  /* ====================================================================== */
166    
# Line 161  static const struct cisco_eeprom eeprom_ Line 175  static const struct cisco_eeprom eeprom_
175     { "PA-POS-OC3", (m_uint16_t *)eeprom_pa_pos_oc3_data,     { "PA-POS-OC3", (m_uint16_t *)eeprom_pa_pos_oc3_data,
176       sizeof(eeprom_pa_pos_oc3_data)/2 },       sizeof(eeprom_pa_pos_oc3_data)/2 },
177     { "PA-4B", (m_uint16_t *)eeprom_pa_4b_data, sizeof(eeprom_pa_4b_data)/2 },     { "PA-4B", (m_uint16_t *)eeprom_pa_4b_data, sizeof(eeprom_pa_4b_data)/2 },
178       { "PA-MC-8TE1", (m_uint16_t *)eeprom_pa_mc8te1_data,
179         sizeof(eeprom_pa_mc8te1_data)/2 },
180     { NULL, NULL, 0 },     { NULL, NULL, 0 },
181  };  };
182    

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

  ViewVC Help
Powered by ViewVC 1.1.26