File indexing completed on 2025-05-11 08:23:46
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042 #ifndef __MVME16xHW_h
0043 #define __MVME16xHW_h
0044
0045 #include <bsp.h>
0046
0047 #ifdef __cplusplus
0048 extern "C" {
0049 #endif
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059 struct rtems_bsdnet_ifconfig;
0060 int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig, int attaching );
0061 #define RTEMS_BSP_NETWORK_DRIVER_NAME "uti1"
0062 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH uti596_attach
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074 #define BOARD_BASE_ADDRESS 0xFFFF0000
0075
0076
0077
0078
0079
0080
0081
0082
0083
0084
0085 #define GROUP_BASE_ADDRESS 0x0000CC00
0086
0087
0088
0089
0090
0091
0092 typedef volatile struct {
0093 unsigned long slave_adr[2];
0094 unsigned long slave_trn[2];
0095 unsigned long slave_ctl;
0096 unsigned long mastr_adr[4];
0097 unsigned long mastr_trn;
0098 unsigned long mastr_att;
0099 unsigned long mastr_ctl;
0100 unsigned long dma_ctl_1;
0101 unsigned long dma_ctl_2;
0102 unsigned long dma_loc_cnt;
0103 unsigned long dma_vme_cnt;
0104 unsigned long dma_byte_cnt;
0105 unsigned long dma_adr_cnt;
0106 unsigned long dma_status;
0107 unsigned long to_ctl;
0108 unsigned long timer_cmp_1;
0109 unsigned long timer_cnt_1;
0110 unsigned long timer_cmp_2;
0111 unsigned long timer_cnt_2;
0112 unsigned long board_ctl;
0113 unsigned long prescaler_cnt;
0114 unsigned long intr_stat;
0115 unsigned long intr_ena;
0116 unsigned long intr_soft_set;
0117 unsigned long intr_clear;
0118 unsigned long intr_level[4];
0119 unsigned long vector_base;
0120 } lcsr_regs;
0121
0122
0123
0124
0125
0126
0127 #define lcsr ((lcsr_regs * const) 0xFFF40000)
0128
0129
0130
0131
0132
0133
0134
0135
0136 #define MASK_INT 0x00800000
0137
0138
0139 #define VBR0 0x6
0140
0141
0142 #define VBR1 0x7
0143
0144
0145
0146
0147 typedef volatile struct pccchip2_regs_ {
0148 unsigned char chip_id;
0149 unsigned char chip_revision;
0150 unsigned char gen_control;
0151 unsigned char vector_base;
0152 unsigned long timer_cmp_1;
0153 unsigned long timer_cnt_1;
0154 unsigned long timer_cmp_2;
0155 unsigned long timer_cnt_2;
0156 unsigned char LSB_prescaler_count;
0157 unsigned char prescaler_clock_adjust;
0158 unsigned char timer_ctl_2;
0159 unsigned char timer_ctl_1;
0160 unsigned char gpi_int_ctl;
0161 unsigned char gpio_ctl;
0162 unsigned char timer_int_ctl_2;
0163 unsigned char timer_int_ctl_1;
0164 unsigned char SCC_error;
0165 unsigned char SCC_modem_int_ctl;
0166 unsigned char SCC_tx_int_ctl;
0167 unsigned char SCC_rx_int_ctl;
0168 unsigned char reserved1[3];
0169 unsigned char modem_piack;
0170 unsigned char reserved2;
0171 unsigned char tx_piack;
0172 unsigned char reserved3;
0173 unsigned char rx_piack;
0174 unsigned char LANC_error;
0175 unsigned char reserved4;
0176 unsigned char LANC_int_ctl;
0177 unsigned char LANC_berr_ctl;
0178 unsigned char SCSI_error;
0179 unsigned char reserved5[2];
0180 unsigned char SCSI_int_ctl;
0181 unsigned char print_ack_int_ctl;
0182 unsigned char print_fault_int_ctl;
0183 unsigned char print_sel_int_ctl;
0184 unsigned char print_pe_int_ctl;
0185 unsigned char print_busy_int_ctl;
0186 unsigned char reserved6;
0187 unsigned char print_input_status;
0188 unsigned char print_ctl;
0189 unsigned char chip_speed;
0190 unsigned char reserved7;
0191 unsigned char print_data;
0192 unsigned char reserved8[3];
0193 unsigned char int_level;
0194 unsigned char int_mask;
0195 } pccchip2_regs;
0196
0197
0198
0199
0200
0201 #define pccchip2 ((pccchip2_regs * const) 0xFFF42000)
0202
0203
0204
0205
0206
0207
0208
0209
0210
0211
0212
0213
0214 #define PCCCHIP2_VBR 0x5
0215
0216
0217
0218
0219
0220
0221
0222 typedef volatile struct {
0223 unsigned char chip_revision;
0224 unsigned char chip_id;
0225 unsigned char lmsig;
0226 unsigned char board_scr;
0227 unsigned short gpr[6];
0228 } gcsr_regs;
0229
0230 #define gcsr_vme ((gcsr_regs * const) (GROUP_BASE_ADDRESS + BOARD_BASE_ADDRESS))
0231 #define gcsr ((gcsr_regs * const) 0xFFF40100)
0232
0233
0234
0235
0236 typedef volatile struct i82596_regs_ {
0237 unsigned short port_lower;
0238 unsigned short port_upper;
0239 unsigned long chan_attn;
0240 } i82596_regs;
0241
0242
0243
0244
0245
0246 #define i82596 ((i82596_regs * const) 0xFFF46000)
0247
0248
0249
0250
0251
0252 #if defined(mvme167)
0253 typedef volatile struct nvram_config_ {
0254 unsigned char cache_mode;
0255 unsigned char console_mode;
0256 unsigned char console_printk_port;
0257 unsigned char pad1;
0258 unsigned long ipaddr;
0259 unsigned long netmask;
0260 unsigned char enaddr[6];
0261 unsigned short processor_id;
0262 unsigned long rma_start;
0263 unsigned long vma_start;
0264 unsigned long ramsize;
0265 } nvram_config;
0266
0267
0268
0269
0270
0271 #define nvram ((nvram_config * const) 0xFFFC0000)
0272
0273 #endif
0274
0275
0276
0277
0278
0279
0280
0281
0282 #if defined(mvme167)
0283 #define NVRAM_CONFIGURE \
0284 ( !( ( (unsigned char)(lcsr->vector_base & 0xFF) ) & 0x10 ) )
0285 #else
0286 #define NVRAM_CONFIGURE 0
0287 #endif
0288
0289 #ifdef __cplusplus
0290 }
0291 #endif
0292
0293 #endif