|
RTEMS
5.1
|
35 volatile uint32_t irq;
36 volatile uint32_t imask;
37 int unused0[(0x10-0x08)/4];
38 volatile uint32_t hwcfg;
40 int unused1[(0x40-0x14)/4];
43 volatile uint32_t bc_stat;
44 volatile uint32_t bc_ctrl;
45 volatile uint32_t bc_bd;
46 volatile uint32_t bc_abd;
47 volatile uint32_t bc_timer;
48 volatile uint32_t bc_wake;
49 volatile uint32_t bc_irqptr;
50 volatile uint32_t bc_busmsk;
52 int unused2[(0x68-0x60)/4];
54 volatile uint32_t bc_slot;
55 volatile uint32_t bc_aslot;
57 int unused3[(0x80-0x70)/4];
60 volatile uint32_t rt_stat;
61 volatile uint32_t rt_cfg;
62 volatile uint32_t rt_stat2;
63 volatile uint32_t rt_statw;
64 volatile uint32_t rt_sync;
65 volatile uint32_t rt_tab;
66 volatile uint32_t rt_mcctrl;
67 int unused4[(0xa4-0x9c)/4];
68 volatile uint32_t rt_ttag;
70 volatile uint32_t rt_evsz;
71 volatile uint32_t rt_evlog;
72 volatile uint32_t rt_evirq;
74 int unused6[(0xc0-0xb8)/4];
77 volatile uint32_t bm_stat;
78 volatile uint32_t bm_ctrl;
79 volatile uint32_t bm_adr;
80 volatile uint32_t bm_subadr;
81 volatile uint32_t bm_mc;
82 volatile uint32_t bm_start;
83 volatile uint32_t bm_end;
84 volatile uint32_t bm_pos;
85 volatile uint32_t bm_ttag;
88 #define GR1553BC_KEY 0x15520000 89 #define GR1553RT_KEY 0x15530000 92 #define GR1553BC_IRQLOG_SIZE 64 93 #define GR1553BC_IRQLOG_CNT (GR1553BC_IRQLOG_SIZE/sizeof(uint32_t)) 96 #define GR1553B_IRQ_BCEV_BIT 0 97 #define GR1553B_IRQ_BCD_BIT 1 98 #define GR1553B_IRQ_BCWK_BIT 2 99 #define GR1553B_IRQ_RTEV_BIT 8 100 #define GR1553B_IRQ_RTD_BIT 9 101 #define GR1553B_IRQ_RTTE_BIT 10 102 #define GR1553B_IRQ_BMD_BIT 16 103 #define GR1553B_IRQ_BMTOF_BIT 17 105 #define GR1553B_IRQ_BCEV (1<<GR1553B_IRQ_BCEV_BIT) 106 #define GR1553B_IRQ_BCD (1<<GR1553B_IRQ_BCD_BIT) 107 #define GR1553B_IRQ_BCWK (1<<GR1553B_IRQ_BCWK_BIT) 108 #define GR1553B_IRQ_RTEV (1<<GR1553B_IRQ_RTEV_BIT) 109 #define GR1553B_IRQ_RTD (1<<GR1553B_IRQ_RTD_BIT) 110 #define GR1553B_IRQ_RTTE (1<<GR1553B_IRQ_RTTE_BIT) 111 #define GR1553B_IRQ_BMD (1<<GR1553B_IRQ_BMD_BIT) 112 #define GR1553B_IRQ_BMTOF (1<<GR1553B_IRQ_BMTOF_BIT) 115 #define GR1553B_IRQEN_BCEVE_BIT 0 116 #define GR1553B_IRQEN_BCDE_BIT 1 117 #define GR1553B_IRQEN_BCWKE_BIT 2 118 #define GR1553B_IRQEN_RTEVE_BIT 8 119 #define GR1553B_IRQEN_RTDE_BIT 9 120 #define GR1553B_IRQEN_RTTEE_BIT 10 121 #define GR1553B_IRQEN_BMDE_BIT 16 122 #define GR1553B_IRQEN_BMTOE_BIT 17 124 #define GR1553B_IRQEN_BCEVE (1<<GR1553B_IRQEN_BCEVE_BIT) 125 #define GR1553B_IRQEN_BCDE (1<<GR1553B_IRQEN_BCDE_BIT) 126 #define GR1553B_IRQEN_BCWKE (1<<GR1553B_IRQEN_BCWKE_BIT) 127 #define GR1553B_IRQEN_RTEVE (1<<GR1553B_IRQEN_RTEVE_BIT) 128 #define GR1553B_IRQEN_RTDE (1<<GR1553B_IRQEN_RTDE_BIT) 129 #define GR1553B_IRQEN_RTTEE (1<<GR1553B_IRQEN_RTTEE_BIT) 130 #define GR1553B_IRQEN_BMDE (1<<GR1553B_IRQEN_BMDE_BIT) 131 #define GR1553B_IRQEN_BMTOE (1<<GR1553B_IRQEN_BMTOE_BIT) 134 #define GR1553B_BC_STAT_SCST_BIT 0 135 #define GR1553B_BC_STAT_SCADL_BIT 3 136 #define GR1553B_BC_STAT_ASST_BIT 8 137 #define GR1553B_BC_STAT_ASADL_BIT 11 138 #define GR1553B_BC_STAT_BCSUP_BIT 31 140 #define GR1553B_BC_STAT_SCST (0x3<<GR1553B_BC_STAT_SCST_BIT) 141 #define GR1553B_BC_STAT_SCADL (0x1f<<GR1553B_BC_STAT_SCADL_BIT) 142 #define GR1553B_BC_STAT_ASST (0x3<<GR1553B_BC_STAT_ASST_BIT) 143 #define GR1553B_BC_STAT_ASADL (0x1f<<GR1553B_BC_STAT_ASADL_BIT) 144 #define GR1553B_BC_STAT_BCSUP (1<<GR1553B_BC_STAT_BCSUP_BIT) 147 #define GR1553B_BC_ACT_SCSRT_BIT 0 148 #define GR1553B_BC_ACT_SCSUS_BIT 1 149 #define GR1553B_BC_ACT_SCSTP_BIT 2 150 #define GR1553B_BC_ACT_SETT_BIT 3 151 #define GR1553B_BC_ACT_CLRT_BIT 4 152 #define GR1553B_BC_ACT_ASSRT_BIT 8 153 #define GR1553B_BC_ACT_ASSTP_BIT 9 154 #define GR1553B_BC_ACT_BCKEY_BIT 16 156 #define GR1553B_BC_ACT_SCSRT (1<<GR1553B_BC_ACT_SCSRT_BIT) 157 #define GR1553B_BC_ACT_SCSUS (1<<GR1553B_BC_ACT_SCSUS_BIT) 158 #define GR1553B_BC_ACT_SCSTP (1<<GR1553B_BC_ACT_SCSTP_BIT) 159 #define GR1553B_BC_ACT_SETT (1<<GR1553B_BC_ACT_SETT_BIT) 160 #define GR1553B_BC_ACT_CLRT (1<<GR1553B_BC_ACT_CLRT_BIT) 161 #define GR1553B_BC_ACT_ASSRT (1<<GR1553B_BC_ACT_ASSRT_BIT) 162 #define GR1553B_BC_ACT_ASSTP (1<<GR1553B_BC_ACT_ASSTP_BIT) 163 #define GR1553B_BC_ACT_BCKEY (0xffff<<GR1553B_BC_ACT_BCKEY_BIT) 166 #define GR1553B_BC_TIMER_SCTM_BIT 0 168 #define GR1553B_BC_TIMER_SCTM (0xffffff<<GR1553B_BC_TIMER_SCTM_BIT) 171 #define GR1553B_BC_WAKE_TIME_BIT 0 172 #define GR1553B_BC_WAKE_WKEN_BIT 31 174 #define GR1553B_BC_WAKE_TIME (0xffffff<<GR1553B_BC_WAKE_TIME_BIT) 175 #define GR1553B_BC_WAKE_WKEN (1<GR1553B_BC_WAKE_WKEN_BIT) 178 #define GR1553B_RT_STAT_RUN_BIT 0 179 #define GR1553B_RT_STAT_SHDB_BIT 1 180 #define GR1553B_RT_STAT_SHDA_BIT 2 181 #define GR1553B_RT_STAT_ACT_BIT 3 182 #define GR1553B_RT_STAT_RTSUP_BIT 31 184 #define GR1553B_RT_STAT_RUN (1<<GR1553B_RT_STAT_RUN_BIT) 185 #define GR1553B_RT_STAT_SHDB (1<<GR1553B_RT_STAT_SHDB_BIT) 186 #define GR1553B_RT_STAT_SHDA (1<<GR1553B_RT_STAT_SHDA_BIT) 187 #define GR1553B_RT_STAT_ACT (1<<GR1553B_RT_STAT_ACT_BIT) 188 #define GR1553B_RT_STAT_RTSUP (1<<GR1553B_RT_STAT_RTSUP_BIT) 192 #define GR1553B_RT_CFG_RTEN_BIT 0 193 #define GR1553B_RT_CFG_RTADDR_BIT 1 194 #define GR1553B_RT_CFG_RTKEY_BIT 16 196 #define GR1553B_RT_CFG_RTEN (1<<GR1553B_RT_CFG_RTEN_BIT) 197 #define GR1553B_RT_CFG_RTADDR (1<<GR1553B_RT_CFG_RTADDR_BIT) 198 #define GR1553B_RT_CFG_RTKEY (0xffff<<GR1553B_RT_CFG_RTKEY_BIT) 201 #define GR1553B_RT_STAT2_TFLG_BIT 0 202 #define GR1553B_RT_STAT2_DBCA_BIT 1 203 #define GR1553B_RT_STAT2_SSF_BIT 2 204 #define GR1553B_RT_STAT2_BUSY_BIT 3 205 #define GR1553B_RT_STAT2_SREQ_BIT 4 206 #define GR1553B_RT_STAT2_TFDE_BIT 8 208 #define GR1553B_RT_STAT2_TFLG (1<<GR1553B_RT_STAT2_TFLG_BIT) 209 #define GR1553B_RT_STAT2_DBCA (1<<GR1553B_RT_STAT2_DBCA_BIT) 210 #define GR1553B_RT_STAT2_SSF (1<<GR1553B_RT_STAT2_SSF_BIT) 211 #define GR1553B_RT_STAT2_BUSY (1<<GR1553B_RT_STAT2_BUSY_BIT) 212 #define GR1553B_RT_STAT2_SREQ (1<<GR1553B_RT_STAT2_SREQ_BIT) 213 #define GR1553B_RT_STAT2_TFDE (1<<GR1553B_RT_STAT2_TFDE_BIT) 216 #define GR1553B_RT_STATW_VECW_BIT 0 217 #define GR1553B_RT_STATW_BITW_BIT 16 219 #define GR1553B_RT_STATW_VECW (0xffff<<GR1553B_RT_STATW_VECW_BIT) 220 #define GR1553B_RT_STATW_BITW (0xffff<<GR1553B_RT_STATW_BITW_BIT) 223 #define GR1553B_RT_SYNC_SYD_BIT 0 224 #define GR1553B_RT_SYNC_SYTM_BIT 16 226 #define GR1553B_RT_SYNC_SYD (0xffff<<GR1553B_RT_SYNC_SYD_BIT) 227 #define GR1553B_RT_SYNC_SYTM (0xffff<<GR1553B_RT_SYNC_SYTM_BIT) 230 #define GR1553B_RT_TAB_SATB_BIT 0 232 #define GR1553B_RT_TAB_SATB (0xffff<<GR1553B_RT_TAB_SATB_BIT) 235 #define GR1553B_RT_MCCTRL_S_BIT 0 236 #define GR1553B_RT_MCCTRL_SB_BIT 2 237 #define GR1553B_RT_MCCTRL_SD_BIT 4 238 #define GR1553B_RT_MCCTRL_SDB_BIT 6 239 #define GR1553B_RT_MCCTRL_TS_BIT 8 240 #define GR1553B_RT_MCCTRL_TSB_BIT 10 241 #define GR1553B_RT_MCCTRL_TVW_BIT 12 242 #define GR1553B_RT_MCCTRL_TBW_BIT 14 243 #define GR1553B_RT_MCCTRL_DBC_BIT 16 244 #define GR1553B_RT_MCCTRL_IST_BIT 18 245 #define GR1553B_RT_MCCTRL_ISTB_BIT 20 246 #define GR1553B_RT_MCCTRL_ITF_BIT 22 247 #define GR1553B_RT_MCCTRL_ITFB_BIT 24 248 #define GR1553B_RT_MCCTRL_RRT_BIT 26 249 #define GR1553B_RT_MCCTRL_RRTB_BIT 28 251 #define GR1553B_RT_MCCTRL_S (1<<GR1553B_RT_MCCTRL_S_BIT) 252 #define GR1553B_RT_MCCTRL_SB (1<<GR1553B_RT_MCCTRL_SB_BIT) 253 #define GR1553B_RT_MCCTRL_SD (1<<GR1553B_RT_MCCTRL_SD_BIT) 254 #define GR1553B_RT_MCCTRL_SDB (1<<GR1553B_RT_MCCTRL_SDB_BIT) 255 #define GR1553B_RT_MCCTRL_TS (1<<GR1553B_RT_MCCTRL_TS_BIT) 256 #define GR1553B_RT_MCCTRL_TSB (1<<GR1553B_RT_MCCTRL_TSB_BIT) 257 #define GR1553B_RT_MCCTRL_TVW (1<<GR1553B_RT_MCCTRL_TVW_BIT) 258 #define GR1553B_RT_MCCTRL_TBW (1<<GR1553B_RT_MCCTRL_TBW_BIT) 259 #define GR1553B_RT_MCCTRL_DBC (1<<GR1553B_RT_MCCTRL_DBC_BIT) 260 #define GR1553B_RT_MCCTRL_IST (1<<GR1553B_RT_MCCTRL_IST_BIT) 261 #define GR1553B_RT_MCCTRL_ISTB (1<<GR1553B_RT_MCCTRL_ISTB_BIT) 262 #define GR1553B_RT_MCCTRL_ITF (1<<GR1553B_RT_MCCTRL_ITF_BIT) 263 #define GR1553B_RT_MCCTRL_ITFB (1<<GR1553B_RT_MCCTRL_ITFB_BIT) 264 #define GR1553B_RT_MCCTRL_RRT (1<<GR1553B_RT_MCCTRL_RRT_BIT) 265 #define GR1553B_RT_MCCTRL_RRTB (1<<GR1553B_RT_MCCTRL_RRTB_BIT) 268 #define GR1553B_RT_TTAG_TVAL_BIT 0 269 #define GR1553B_RT_TTAG_TRES_BIT 16 271 #define GR1553B_RT_TTAG_TVAL (0xffff<<GR1553B_RT_TTAG_TVAL_BIT) 272 #define GR1553B_RT_TTAG_TRES (0xffff<<GR1553B_RT_TTAG_TRES_BIT) 275 #define GR1553B_BM_STAT_BMSUP_BIT 31 277 #define GR1553B_BM_STAT_BMSUP (1<<GR1553B_BM_STAT_BMSUP_BIT) 280 #define GR1553B_BM_CTRL_BMEN_BIT 0 281 #define GR1553B_BM_CTRL_MANL_BIT 1 282 #define GR1553B_BM_CTRL_UDWL_BIT 2 283 #define GR1553B_BM_CTRL_IMCL_BIT 3 285 #define GR1553B_BM_CTRL_BMEN (1<<GR1553B_BM_CTRL_BMEN_BIT) 286 #define GR1553B_BM_CTRL_MANL (1<<GR1553B_BM_CTRL_MANL_BIT) 287 #define GR1553B_BM_CTRL_UDWL (1<<GR1553B_BM_CTRL_UDWL_BIT) 288 #define GR1553B_BM_CTRL_IMCL (1<<GR1553B_BM_CTRL_IMCL_BIT) 291 #define GR1553B_BM_MC_S_BIT 0 292 #define GR1553B_BM_MC_SB_BIT 1 293 #define GR1553B_BM_MC_SD_BIT 2 294 #define GR1553B_BM_MC_SDB_BIT 3 295 #define GR1553B_BM_MC_TS_BIT 4 296 #define GR1553B_BM_MC_TSB_BIT 5 297 #define GR1553B_BM_MC_TVW_BIT 6 298 #define GR1553B_BM_MC_TBW_BIT 7 299 #define GR1553B_BM_MC_DBC_BIT 8 300 #define GR1553B_BM_MC_IST_BIT 9 301 #define GR1553B_BM_MC_ISTB_BIT 10 302 #define GR1553B_BM_MC_ITF_BIT 11 303 #define GR1553B_BM_MC_ITFB_BIT 12 304 #define GR1553B_BM_MC_RRT_BIT 13 305 #define GR1553B_BM_MC_RRTB_BIT 14 306 #define GR1553B_BM_MC_TSW_BIT 15 307 #define GR1553B_BM_MC_TLC_BIT 16 308 #define GR1553B_BM_MC_STS_BIT 17 309 #define GR1553B_BM_MC_STSB_BIT 18 311 #define GR1553B_BM_MC_S (1<<GR1553B_BM_MC_S_BIT) 312 #define GR1553B_BM_MC_SB (1<<GR1553B_BM_MC_SB_BIT) 313 #define GR1553B_BM_MC_SD (1<<GR1553B_BM_MC_SD_BIT) 314 #define GR1553B_BM_MC_SDB (1<<GR1553B_BM_MC_SDB_BIT) 315 #define GR1553B_BM_MC_TS (1<<GR1553B_BM_MC_TS_BIT) 316 #define GR1553B_BM_MC_TSB (1<<GR1553B_BM_MC_TSB_BIT) 317 #define GR1553B_BM_MC_TVW (1<<GR1553B_BM_MC_TVW_BIT) 318 #define GR1553B_BM_MC_TBW (1<<GR1553B_BM_MC_TBW_BIT) 319 #define GR1553B_BM_MC_DBC (1<<GR1553B_BM_MC_DBC_BIT) 320 #define GR1553B_BM_MC_IST (1<<GR1553B_BM_MC_IST_BIT) 321 #define GR1553B_BM_MC_ISTB (1<<GR1553B_BM_MC_ISTB_BIT) 322 #define GR1553B_BM_MC_ITF (1<<GR1553B_BM_MC_ITF_BIT) 323 #define GR1553B_BM_MC_ITFB (1<<GR1553B_BM_MC_ITFB_BIT) 324 #define GR1553B_BM_MC_RRT (1<<GR1553B_BM_MC_RRT_BIT) 325 #define GR1553B_BM_MC_RRTB (1<<GR1553B_BM_MC_RRTB_BIT) 326 #define GR1553B_BM_MC_TSW (1<<GR1553B_BM_MC_TSW_BIT) 327 #define GR1553B_BM_MC_TLC (1<<GR1553B_BM_MC_TLC_BIT) 328 #define GR1553B_BM_MC_STS (1<<GR1553B_BM_MC_STS_BIT) 329 #define GR1553B_BM_MC_STSB (1<<GR1553B_BM_MC_STSB_BIT) 332 #define GR1553B_BM_TTAG_VAL_BIT 0 333 #define GR1553B_BM_TTAG_RES_BIT 24 335 #define GR1553B_BM_TTAG_VAL (0xffffff<<GR1553B_BM_TTAG_VAL_BIT) 336 #define GR1553B_BM_TTAG_RES (0xff<<GR1553B_BM_TTAG_RES_BIT) 339 extern void gr1553_register(
void);
345 extern struct drvmgr_dev **gr1553_bc_open(
int minor);
347 extern void gr1553_bc_close(
struct drvmgr_dev **dev);
353 extern struct drvmgr_dev **gr1553_rt_open(
int minor);
355 extern void gr1553_rt_close(
struct drvmgr_dev **dev);
361 extern struct drvmgr_dev **gr1553_bm_open(
int minor);
363 extern void gr1553_bm_close(
struct drvmgr_dev **dev);