14 |
#include "net.h" |
#include "net.h" |
15 |
#include "device.h" |
#include "device.h" |
16 |
#include "pci_dev.h" |
#include "pci_dev.h" |
17 |
#include "nmc93c46.h" |
#include "nmc93cX6.h" |
18 |
#include "net_io.h" |
#include "net_io.h" |
19 |
#include "dev_mpc860.h" |
#include "dev_mpc860.h" |
20 |
#include "vm.h" |
#include "vm.h" |
46 |
/* C2600 PA Management Interrupt */ |
/* C2600 PA Management Interrupt */ |
47 |
#define C2600_PA_MGMT_IRQ 3 |
#define C2600_PA_MGMT_IRQ 3 |
48 |
|
|
49 |
|
/* Network IRQ */ |
50 |
|
#define C2600_NETIO_IRQ_BASE 32 |
51 |
|
#define C2600_NETIO_IRQ_PORT_BITS 2 |
52 |
|
#define C2600_NETIO_IRQ_PORT_MASK ((1 << C2600_NETIO_IRQ_PORT_BITS) - 1) |
53 |
|
#define C2600_NETIO_IRQ_PER_SLOT (1 << C2600_NETIO_IRQ_PORT_BITS) |
54 |
|
#define C2600_NETIO_IRQ_END \ |
55 |
|
(C2600_NETIO_IRQ_BASE + (C2600_MAX_NM_BAYS * C2600_NETIO_IRQ_PER_SLOT) - 1) |
56 |
|
|
57 |
/* C2600 common device addresses */ |
/* C2600 common device addresses */ |
58 |
#define C2600_IOFPGA_ADDR 0x67400000ULL |
#define C2600_IOFPGA_ADDR 0x67400000ULL |
59 |
#define C2600_NVRAM_ADDR 0x67c00000ULL |
#define C2600_NVRAM_ADDR 0x67c00000ULL |
135 |
/* IO memory size to be passed to Smart Init */ |
/* IO memory size to be passed to Smart Init */ |
136 |
u_int nm_iomem_size; |
u_int nm_iomem_size; |
137 |
|
|
138 |
|
/* I/O FPGA */ |
139 |
|
struct c2600_iofpga_data *iofpga_data; |
140 |
|
|
141 |
/* Chassis information */ |
/* Chassis information */ |
142 |
struct c2600_nm_bay nm_bay[C2600_MAX_NM_BAYS]; |
struct c2600_nm_bay nm_bay[C2600_MAX_NM_BAYS]; |
143 |
m_uint8_t oir_status; |
m_uint8_t oir_status; |
147 |
* It can be modified to change the chassis MAC address. |
* It can be modified to change the chassis MAC address. |
148 |
*/ |
*/ |
149 |
struct cisco_eeprom mb_eeprom; |
struct cisco_eeprom mb_eeprom; |
150 |
struct nmc93c46_group mb_eeprom_group; |
struct nmc93cX6_group mb_eeprom_group; |
151 |
|
|
152 |
/* Network Module EEPROM */ |
/* Network Module EEPROM */ |
153 |
struct nmc93c46_group nm_eeprom_group; |
struct nmc93cX6_group nm_eeprom_group; |
154 |
|
|
155 |
/* MPC860 device private data */ |
/* MPC860 device private data */ |
156 |
struct mpc860_data *mpc_data; |
struct mpc860_data *mpc_data; |
171 |
/* Save configurations of all C2600 instances */ |
/* Save configurations of all C2600 instances */ |
172 |
void c2600_save_config_all(FILE *fd); |
void c2600_save_config_all(FILE *fd); |
173 |
|
|
174 |
|
/* Get network IRQ for specified slot/port */ |
175 |
|
u_int c2600_net_irq_for_slot_port(u_int slot,u_int port); |
176 |
|
|
177 |
/* Show all available mainboards */ |
/* Show all available mainboards */ |
178 |
void c2600_mainboard_show_drivers(void); |
void c2600_mainboard_show_drivers(void); |
179 |
|
|