1 |
/* |
/* |
2 |
* Cisco C7200 (Predator) Simulation Platform. |
* Cisco router simulation platform. |
3 |
* Copyright (C) 2005,2006 Christophe Fillot. All rights reserved. |
* Copyright (C) 2005,2006 Christophe Fillot. All rights reserved. |
4 |
* |
* |
5 |
* Serial Interfaces (Mueslix). |
* Serial Interfaces (Mueslix). |
24 |
#include <errno.h> |
#include <errno.h> |
25 |
#include <assert.h> |
#include <assert.h> |
26 |
|
|
27 |
#include "mips64.h" |
#include "cpu.h" |
28 |
|
#include "vm.h" |
29 |
#include "dynamips.h" |
#include "dynamips.h" |
30 |
#include "memory.h" |
#include "memory.h" |
31 |
#include "device.h" |
#include "device.h" |
39 |
/* PA-4T+ */ |
/* PA-4T+ */ |
40 |
/* ====================================================================== */ |
/* ====================================================================== */ |
41 |
|
|
|
/* 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, |
|
|
}; |
|
|
|
|
42 |
/* |
/* |
43 |
* dev_c7200_pa_4t_init() |
* dev_c7200_pa_4t_init() |
44 |
* |
* |
49 |
struct mueslix_data *data; |
struct mueslix_data *data; |
50 |
|
|
51 |
/* Set the EEPROM */ |
/* Set the EEPROM */ |
52 |
c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_4t); |
c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-4T+")); |
53 |
|
|
54 |
/* Create the Mueslix chip */ |
/* Create the Mueslix chip */ |
55 |
data = dev_mueslix_init(router->vm,name,1, |
data = dev_mueslix_init(router->vm,name,1, |
117 |
struct mueslix_data *mueslix[2]; |
struct mueslix_data *mueslix[2]; |
118 |
}; |
}; |
119 |
|
|
|
/* 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, |
|
|
}; |
|
|
|
|
120 |
/* |
/* |
121 |
* dev_c7200_pa_8t_init() |
* dev_c7200_pa_8t_init() |
122 |
* |
* |
133 |
} |
} |
134 |
|
|
135 |
/* Set the EEPROM */ |
/* Set the EEPROM */ |
136 |
c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_8t); |
c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-8T")); |
137 |
|
|
138 |
/* Create the 1st Mueslix chip */ |
/* Create the 1st Mueslix chip */ |
139 |
data->mueslix[0] = dev_mueslix_init(router->vm,name,1, |
data->mueslix[0] = dev_mueslix_init(router->vm,name,1, |