Go to the documentation of this file.
22 #define CPM_CR_RST ((ushort)0x8000)
23 #define CPM_CR_OPCODE ((ushort)0x0f00)
24 #define CPM_CR_CHAN ((ushort)0x00f0)
25 #define CPM_CR_FLG ((ushort)0x0001)
28 #define CPM_CR_INIT_TRX ((ushort)0x0000)
29 #define CPM_CR_INIT_RX ((ushort)0x0001)
30 #define CPM_CR_INIT_TX ((ushort)0x0002)
31 #define CPM_CR_HUNT_MODE ((ushort)0x0003)
32 #define CPM_CR_STOP_TX ((ushort)0x0004)
33 #define CPM_CR_GRSTOP_TX ((ushort)0x0005)
34 #define CPM_CR_RESTART_TX ((ushort)0x0006)
35 #define CPM_CR_CLOSE_RXBD ((ushort)0x0007)
36 #define CPM_CR_SET_GADDR ((ushort)0x0008)
37 #define CPM_CR_GCI_TIMEOUT ((ushort)0x0009)
38 #define CPM_CR_GCI_ABORT ((ushort)0x000a)
39 #define CPM_CR_RESET_BCS ((ushort)0x000a)
42 #define CPM_CR_CH_SCC1 ((ushort)0x0000)
43 #define CPM_CR_CH_SCC2 ((ushort)0x0004)
44 #define CPM_CR_CH_SPI ((ushort)0x0005)
45 #define CPM_CR_CH_TMR ((ushort)0x0005)
46 #define CPM_CR_CH_SCC3 ((ushort)0x0008)
47 #define CPM_CR_CH_SMC1 ((ushort)0x0009)
48 #define CPM_CR_CH_IDMA1 ((ushort)0x0009)
49 #define CPM_CR_CH_SCC4 ((ushort)0x000c)
50 #define CPM_CR_CH_SMC2 ((ushort)0x000d)
51 #define CPM_CR_CH_IDMA2 ((ushort)0x000d)
54 #define mk_cr_cmd(CH, CMD) ((CMD << 8) | (CH << 4))
65 #define CPM_DATAONLY_BASE ((uint)0x0000)
66 #define CPM_DATAONLY_SIZE ((uint)0x0800)
67 #define CPM_DP_NOSPACE ((uint)0x7fffffff)
91 #define BD_SC_EMPTY ((ushort)0x8000)
92 #define BD_SC_WRAP ((ushort)0x2000)
93 #define BD_SC_INTRPT ((ushort)0x1000)
94 #define BD_SC_LAST ((ushort)0x0800)
96 #define BD_SC_FIRST ((ushort)0x0400)
97 #define BD_SC_ADDR ((ushort)0x0400)
99 #define BD_SC_CM ((ushort)0x0200)
100 #define BD_SC_ID ((ushort)0x0100)
102 #define BD_SC_AM ((ushort)0x0080)
103 #define BD_SC_DE ((ushort)0x0080)
105 #define BD_SC_BR ((ushort)0x0020)
106 #define BD_SC_LG ((ushort)0x0020)
108 #define BD_SC_FR ((ushort)0x0010)
109 #define BD_SC_NO ((ushort)0x0010)
111 #define BD_SC_PR ((ushort)0x0008)
112 #define BD_SC_AB ((ushort)0x0008)
114 #define BD_SC_OV ((ushort)0x0002)
115 #define BD_SC_CD ((ushort)0x0001)
118 #define BD_SC_READY ((ushort)0x8000)
119 #define BD_SC_TC ((ushort)0x0400)
120 #define BD_SC_P ((ushort)0x0100)
121 #define BD_SC_UN ((ushort)0x0002)
134 #define PRSLOT_SCC1 0
135 #define PRSLOT_SCC2 1
136 #define PRSLOT_SCC3 2
137 #define PRSLOT_SMC1 2
138 #define PRSLOT_SCC4 3
139 #define PRSLOT_SMC2 3
179 #define SMC_EB ((u_char)0x10)
183 #define SMCMR_REN ((ushort)0x0001)
184 #define SMCMR_TEN ((ushort)0x0002)
185 #define SMCMR_DM ((ushort)0x000c)
186 #define SMCMR_SM_GCI ((ushort)0x0000)
187 #define SMCMR_SM_UART ((ushort)0x0020)
188 #define SMCMR_SM_TRANS ((ushort)0x0030)
189 #define SMCMR_SM_MASK ((ushort)0x0030)
190 #define SMCMR_PM_EVEN ((ushort)0x0100)
191 #define SMCMR_REVD SMCMR_PM_EVEN
192 #define SMCMR_PEN ((ushort)0x0200)
193 #define SMCMR_BS SMCMR_PEN
194 #define SMCMR_SL ((ushort)0x0400)
195 #define SMCR_CLEN_MASK ((ushort)0x7800)
196 #define smcr_mk_clen(C) (((C) << 11) & SMCR_CLEN_MASK)
235 #define SMC_CENT_F ((u_char)0x08)
236 #define SMC_CENT_PE ((u_char)0x04)
237 #define SMC_CENT_S ((u_char)0x02)
241 #define SMCM_BRKE ((unsigned char)0x40)
242 #define SMCM_BRK ((unsigned char)0x10)
243 #define SMCM_TXE ((unsigned char)0x10)
244 #define SMCM_BSY ((unsigned char)0x04)
245 #define SMCM_TX ((unsigned char)0x02)
246 #define SMCM_RX ((unsigned char)0x01)
250 #define CPM_BRG_RST ((uint)0x00020000)
251 #define CPM_BRG_EN ((uint)0x00010000)
252 #define CPM_BRG_EXTC_INT ((uint)0x00000000)
253 #define CPM_BRG_EXTC_CLK2 ((uint)0x00004000)
254 #define CPM_BRG_EXTC_CLK6 ((uint)0x00008000)
255 #define CPM_BRG_ATB ((uint)0x00002000)
256 #define CPM_BRG_CD_MASK ((uint)0x00001ffe)
257 #define CPM_BRG_DIV16 ((uint)0x00000001)
261 #define SCC_GSMRH_IRP ((uint)0x00040000)
262 #define SCC_GSMRH_GDE ((uint)0x00010000)
263 #define SCC_GSMRH_TCRC_CCITT ((uint)0x00008000)
264 #define SCC_GSMRH_TCRC_BISYNC ((uint)0x00004000)
265 #define SCC_GSMRH_TCRC_HDLC ((uint)0x00000000)
266 #define SCC_GSMRH_REVD ((uint)0x00002000)
267 #define SCC_GSMRH_TRX ((uint)0x00001000)
268 #define SCC_GSMRH_TTX ((uint)0x00000800)
269 #define SCC_GSMRH_CDP ((uint)0x00000400)
270 #define SCC_GSMRH_CTSP ((uint)0x00000200)
271 #define SCC_GSMRH_CDS ((uint)0x00000100)
272 #define SCC_GSMRH_CTSS ((uint)0x00000080)
273 #define SCC_GSMRH_TFL ((uint)0x00000040)
274 #define SCC_GSMRH_RFW ((uint)0x00000020)
275 #define SCC_GSMRH_TXSY ((uint)0x00000010)
276 #define SCC_GSMRH_SYNL16 ((uint)0x0000000c)
277 #define SCC_GSMRH_SYNL8 ((uint)0x00000008)
278 #define SCC_GSMRH_SYNL4 ((uint)0x00000004)
279 #define SCC_GSMRH_RTSM ((uint)0x00000002)
280 #define SCC_GSMRH_RSYN ((uint)0x00000001)
282 #define SCC_GSMRL_SIR ((uint)0x80000000)
283 #define SCC_GSMRL_EDGE_NONE ((uint)0x60000000)
284 #define SCC_GSMRL_EDGE_NEG ((uint)0x40000000)
285 #define SCC_GSMRL_EDGE_POS ((uint)0x20000000)
286 #define SCC_GSMRL_EDGE_BOTH ((uint)0x00000000)
287 #define SCC_GSMRL_TCI ((uint)0x10000000)
288 #define SCC_GSMRL_TSNC_3 ((uint)0x0c000000)
289 #define SCC_GSMRL_TSNC_4 ((uint)0x08000000)
290 #define SCC_GSMRL_TSNC_14 ((uint)0x04000000)
291 #define SCC_GSMRL_TSNC_INF ((uint)0x00000000)
292 #define SCC_GSMRL_RINV ((uint)0x02000000)
293 #define SCC_GSMRL_TINV ((uint)0x01000000)
294 #define SCC_GSMRL_TPL_128 ((uint)0x00c00000)
295 #define SCC_GSMRL_TPL_64 ((uint)0x00a00000)
296 #define SCC_GSMRL_TPL_48 ((uint)0x00800000)
297 #define SCC_GSMRL_TPL_32 ((uint)0x00600000)
298 #define SCC_GSMRL_TPL_16 ((uint)0x00400000)
299 #define SCC_GSMRL_TPL_8 ((uint)0x00200000)
300 #define SCC_GSMRL_TPL_NONE ((uint)0x00000000)
301 #define SCC_GSMRL_TPP_ALL1 ((uint)0x00180000)
302 #define SCC_GSMRL_TPP_01 ((uint)0x00100000)
303 #define SCC_GSMRL_TPP_10 ((uint)0x00080000)
304 #define SCC_GSMRL_TPP_ZEROS ((uint)0x00000000)
305 #define SCC_GSMRL_TEND ((uint)0x00040000)
306 #define SCC_GSMRL_TDCR_32 ((uint)0x00030000)
307 #define SCC_GSMRL_TDCR_16 ((uint)0x00020000)
308 #define SCC_GSMRL_TDCR_8 ((uint)0x00010000)
309 #define SCC_GSMRL_TDCR_1 ((uint)0x00000000)
310 #define SCC_GSMRL_RDCR_32 ((uint)0x0000c000)
311 #define SCC_GSMRL_RDCR_16 ((uint)0x00008000)
312 #define SCC_GSMRL_RDCR_8 ((uint)0x00004000)
313 #define SCC_GSMRL_RDCR_1 ((uint)0x00000000)
314 #define SCC_GSMRL_RENC_DFMAN ((uint)0x00003000)
315 #define SCC_GSMRL_RENC_MANCH ((uint)0x00002000)
316 #define SCC_GSMRL_RENC_FM0 ((uint)0x00001000)
317 #define SCC_GSMRL_RENC_NRZI ((uint)0x00000800)
318 #define SCC_GSMRL_RENC_NRZ ((uint)0x00000000)
319 #define SCC_GSMRL_TENC_DFMAN ((uint)0x00000600)
320 #define SCC_GSMRL_TENC_MANCH ((uint)0x00000400)
321 #define SCC_GSMRL_TENC_FM0 ((uint)0x00000200)
322 #define SCC_GSMRL_TENC_NRZI ((uint)0x00000100)
323 #define SCC_GSMRL_TENC_NRZ ((uint)0x00000000)
324 #define SCC_GSMRL_DIAG_LE ((uint)0x000000c0)
325 #define SCC_GSMRL_DIAG_ECHO ((uint)0x00000080)
326 #define SCC_GSMRL_DIAG_LOOP ((uint)0x00000040)
327 #define SCC_GSMRL_DIAG_NORM ((uint)0x00000000)
328 #define SCC_GSMRL_ENR ((uint)0x00000020)
329 #define SCC_GSMRL_ENT ((uint)0x00000010)
330 #define SCC_GSMRL_MODE_ENET ((uint)0x0000000c)
331 #define SCC_GSMRL_MODE_DDCMP ((uint)0x00000009)
332 #define SCC_GSMRL_MODE_BISYNC ((uint)0x00000008)
333 #define SCC_GSMRL_MODE_V14 ((uint)0x00000007)
334 #define SCC_GSMRL_MODE_AHDLC ((uint)0x00000006)
335 #define SCC_GSMRL_MODE_PROFIBUS ((uint)0x00000005)
336 #define SCC_GSMRL_MODE_UART ((uint)0x00000004)
337 #define SCC_GSMRL_MODE_SS7 ((uint)0x00000003)
338 #define SCC_GSMRL_MODE_ATALK ((uint)0x00000002)
339 #define SCC_GSMRL_MODE_HDLC ((uint)0x00000000)
341 #define SCC_TODR_TOD ((ushort)0x8000)
345 #define SCCM_TXE ((unsigned char)0x10)
346 #define SCCM_BSY ((unsigned char)0x04)
347 #define SCCM_TX ((unsigned char)0x02)
348 #define SCCM_RX ((unsigned char)0x01)
373 #define SCC_EB ((u_char)0x10)
374 #define SCC_FC_DMA ((u_char)0x08)
433 #if defined (CONFIG_UCQUICC)
444 #define PA_ENET_RXD PA_RXD1
445 #define PA_ENET_TXD PA_TXD1
446 #define PA_ENET_TCLK PA_CLK1
447 #define PA_ENET_RCLK PA_CLK2
448 #define PC_ENET_TENA PC_RTS1
449 #define PC_ENET_CLSN PC_CTS1
450 #define PC_ENET_RENA PC_CD1
455 #define SICR_ENET_MASK ((uint)0x000000ff)
456 #define SICR_ENET_CLKRT ((uint)0x0000002c)
468 #define PA_ENET_RXD ((ushort)0x0001)
469 #define PA_ENET_TXD ((ushort)0x0002)
470 #define PA_ENET_TCLK ((ushort)0x0200)
471 #define PA_ENET_RCLK ((ushort)0x0800)
472 #define PC_ENET_TENA ((ushort)0x0001)
473 #define PC_ENET_CLSN ((ushort)0x0010)
474 #define PC_ENET_RENA ((ushort)0x0020)
479 #define SICR_ENET_MASK ((uint)0x000000ff)
480 #define SICR_ENET_CLKRT ((uint)0x0000003d)
483 #ifdef CONFIG_RPXLITE
488 #define PA_ENET_RXD ((ushort)0x0004)
489 #define PA_ENET_TXD ((ushort)0x0008)
490 #define PA_ENET_TCLK ((ushort)0x0200)
491 #define PA_ENET_RCLK ((ushort)0x0800)
492 #define PB_ENET_TENA ((uint)0x00002000)
493 #define PC_ENET_CLSN ((ushort)0x0040)
494 #define PC_ENET_RENA ((ushort)0x0080)
496 #define SICR_ENET_MASK ((uint)0x0000ff00)
497 #define SICR_ENET_CLKRT ((uint)0x00003d00)
504 #define PA_ENET_RXD ((ushort)0x0004)
505 #define PA_ENET_TXD ((ushort)0x0008)
506 #define PA_ENET_TCLK ((ushort)0x0100)
507 #define PA_ENET_RCLK ((ushort)0x0200)
508 #define PB_ENET_TENA ((uint)0x00002000)
509 #define PC_ENET_CLSN ((ushort)0x0040)
510 #define PC_ENET_RENA ((ushort)0x0080)
514 #define PB_BSE_POWERUP ((uint)0x00000004)
515 #define PB_BSE_FDXDIS ((uint)0x00008000)
516 #define PC_BSE_LOOPBACK ((ushort)0x0800)
518 #define SICR_ENET_MASK ((uint)0x0000ff00)
519 #define SICR_ENET_CLKRT ((uint)0x00002c00)
524 #define SCCE_ENET_GRA ((ushort)0x0080)
525 #define SCCE_ENET_TXE ((ushort)0x0010)
526 #define SCCE_ENET_RXF ((ushort)0x0008)
527 #define SCCE_ENET_BSY ((ushort)0x0004)
528 #define SCCE_ENET_TXB ((ushort)0x0002)
529 #define SCCE_ENET_RXB ((ushort)0x0001)
533 #define SCC_PMSR_HBC ((ushort)0x8000)
534 #define SCC_PMSR_FC ((ushort)0x4000)
535 #define SCC_PMSR_RSH ((ushort)0x2000)
536 #define SCC_PMSR_IAM ((ushort)0x1000)
537 #define SCC_PMSR_ENCRC ((ushort)0x0800)
538 #define SCC_PMSR_PRO ((ushort)0x0200)
539 #define SCC_PMSR_BRO ((ushort)0x0100)
540 #define SCC_PMSR_SBT ((ushort)0x0080)
541 #define SCC_PMSR_LPB ((ushort)0x0040)
542 #define SCC_PMSR_SIP ((ushort)0x0020)
543 #define SCC_PMSR_LCW ((ushort)0x0010)
544 #define SCC_PMSR_NIB22 ((ushort)0x000a)
545 #define SCC_PMSR_FDE ((ushort)0x0001)
549 #define BD_ENET_RX_EMPTY ((ushort)0x8000)
550 #define BD_ENET_RX_WRAP ((ushort)0x2000)
551 #define BD_ENET_RX_INTR ((ushort)0x1000)
552 #define BD_ENET_RX_LAST ((ushort)0x0800)
553 #define BD_ENET_RX_FIRST ((ushort)0x0400)
554 #define BD_ENET_RX_MISS ((ushort)0x0100)
555 #define BD_ENET_RX_LG ((ushort)0x0020)
556 #define BD_ENET_RX_NO ((ushort)0x0010)
557 #define BD_ENET_RX_SH ((ushort)0x0008)
558 #define BD_ENET_RX_CR ((ushort)0x0004)
559 #define BD_ENET_RX_OV ((ushort)0x0002)
560 #define BD_ENET_RX_CL ((ushort)0x0001)
561 #define BD_ENET_RX_STATS ((ushort)0x013f)
565 #define BD_ENET_TX_READY ((ushort)0x8000)
566 #define BD_ENET_TX_PAD ((ushort)0x4000)
567 #define BD_ENET_TX_WRAP ((ushort)0x2000)
568 #define BD_ENET_TX_INTR ((ushort)0x1000)
569 #define BD_ENET_TX_LAST ((ushort)0x0800)
570 #define BD_ENET_TX_TC ((ushort)0x0400)
571 #define BD_ENET_TX_DEF ((ushort)0x0200)
572 #define BD_ENET_TX_HB ((ushort)0x0100)
573 #define BD_ENET_TX_LC ((ushort)0x0080)
574 #define BD_ENET_TX_RL ((ushort)0x0040)
575 #define BD_ENET_TX_RCMASK ((ushort)0x003c)
576 #define BD_ENET_TX_UN ((ushort)0x0002)
577 #define BD_ENET_TX_CSL ((ushort)0x0001)
578 #define BD_ENET_TX_STATS ((ushort)0x03ff)
613 #define UART_SCCM_GLR ((ushort)0x1000)
614 #define UART_SCCM_GLT ((ushort)0x0800)
615 #define UART_SCCM_AB ((ushort)0x0200)
616 #define UART_SCCM_IDL ((ushort)0x0100)
617 #define UART_SCCM_GRA ((ushort)0x0080)
618 #define UART_SCCM_BRKE ((ushort)0x0040)
619 #define UART_SCCM_BRKS ((ushort)0x0020)
620 #define UART_SCCM_CCR ((ushort)0x0008)
621 #define UART_SCCM_BSY ((ushort)0x0004)
622 #define UART_SCCM_TX ((ushort)0x0002)
623 #define UART_SCCM_RX ((ushort)0x0001)
627 #define SCU_PMSR_FLC ((ushort)0x8000)
628 #define SCU_PMSR_SL ((ushort)0x4000)
629 #define SCU_PMSR_CL ((ushort)0x3000)
630 #define SCU_PMSR_UM ((ushort)0x0c00)
631 #define SCU_PMSR_FRZ ((ushort)0x0200)
632 #define SCU_PMSR_RZS ((ushort)0x0100)
633 #define SCU_PMSR_SYN ((ushort)0x0080)
634 #define SCU_PMSR_DRT ((ushort)0x0040)
635 #define SCU_PMSR_PEN ((ushort)0x0010)
636 #define SCU_PMSR_RPM ((ushort)0x000c)
637 #define SCU_PMSR_REVP ((ushort)0x0008)
638 #define SCU_PMSR_TPM ((ushort)0x0003)
639 #define SCU_PMSR_TEVP ((ushort)0x0003)
649 #define BD_SCC_TX_LAST ((ushort)0x0800)
695 #define CICR_SCD_SCC4 ((uint)0x00c00000)
696 #define CICR_SCC_SCC3 ((uint)0x00200000)
697 #define CICR_SCB_SCC2 ((uint)0x00040000)
698 #define CICR_SCA_SCC1 ((uint)0x00000000)
699 #define CICR_IRL_MASK ((uint)0x0000e000)
700 #define CICR_HP_MASK ((uint)0x00001f00)
701 #define CICR_IEN ((uint)0x00000080)
702 #define CICR_SPS ((uint)0x00000001)