37#define MBAR_RESET 0x80000000
42#define ONCHIP_SRAM_OFFSET 0x8000
43#define ONCHIP_SRAM_SIZE 0x4000
54#define MPC5200_CAN_NO 2
55#define MPC5200_PSC_NO 6
59#define MPC5200_PSC_REG_SETS 7
61#define MPC5200_GPT_NO 8
62#define MPC5200_SLT_NO 2
67#define FEC_INTR_HBERR 0x80000000
68#define FEC_INTR_BABR 0x40000000
69#define FEC_INTR_BABT 0x20000000
70#define FEC_INTR_GRA 0x10000000
71#define FEC_INTR_TFINT 0x08000000
75#define FEC_INTR_MII 0x00800000
77#define FEC_INTR_LATE_COL 0x00200000
78#define FEC_INTR_COL_RETRY 0x00100000
79#define FEC_INTR_XFIFO_UN 0x00080000
80#define FEC_INTR_XFIFO_ERR 0x00040000
81#define FEC_INTR_RFIFO_ERR 0x00020000
84#define FEC_INTR_HBEEN FEC_INTR_HBERR
85#define FEC_INTR_BREN FEC_INTR_BABR
86#define FEC_INTR_BTEN FEC_INTR_BABT
87#define FEC_INTR_GRAEN FEC_INTR_GRA
88#define FEC_INTR_TFINTEN FEC_INTR_TFINT
89#define FEC_INTR_MIIEN FEC_INTR_MII
90#define FEC_INTR_LCEN FEC_INTR_LATE_COL
91#define FEC_INTR_CRLEN FEC_INTR_COL_RETRY
92#define FEC_INTR_XFUNEN FEC_INTR_XFIFO_UN
93#define FEC_INTR_XFERREN FEC_INTR_XFIFO_ERR
94#define FEC_INTR_RFERREN FEC_INTR_RFIFO_ERR
95#define FEC_INTR_CLEAR_ALL 0xffffffff
96#define FEC_INTR_MASK_ALL 0x00000000
101#define FEC_ECNTRL_TAG 0xf0000000
103#define FEC_ECNTRL_TESTMD 0x04000000
105#define FEC_ECNTRL_OE 0x00000004
106#define FEC_ECNTRL_EN 0x00000002
107#define FEC_ECNTRL_RESET 0x00000001
113#define FEC_RCNTRL_MAX_FL 0x07ff0000
114#define FEC_RCNTRL_MAX_FL_SHIFT 16
116#define FEC_RCNTRL_FCE 0x00000020
117#define FEC_RCNTRL_BC_REJ 0x00000010
118#define FEC_RCNTRL_PROM 0x00000008
119#define FEC_RCNTRL_MII_MODE 0x00000004
120#define FEC_RCNTRL_DRT 0x00000002
121#define FEC_RCNTRL_LOOP 0x00000001
127#define FEC_XCNTRL_RFC_PAUS 0x00000010
128#define FEC_XCNTRL_TFC_PAUS 0x00000008
129#define FEC_XCNTRL_FDEN 0x00000004
130#define FEC_XCNTRL_HBC 0x00000002
131#define FEC_XCNTRL_GTS 0x00000001
137#define FEC_XSTAT_DEF 0x02000000
138#define FEC_XSTAT_HB 0x01000000
139#define FEC_XSTAT_LC 0x00800000
140#define FEC_XSTAT_RL 0x00400000
141#define FEC_XSTAT_RC 0x003c0000
142#define FEC_XSTAT_UN 0x00020000
143#define FEX_XSTAT_CSL 0x00010000
149#define FEC_XWMRK_64 0x00000000
150#define FEC_XWMRK_128 0x00000001
151#define FEC_XWMRK_192 0x00000002
152#define FEC_XWMRK_256 0x00000003
153#define FEC_XWMRK_320 0x00000004
154#define FEC_XWMRK_384 0x00000005
155#define FEC_XWMRK_448 0x00000006
156#define FEC_XWMRK_512 0x00000007
157#define FEC_XWMRK_576 0x00000008
158#define FEC_XWMRK_640 0x00000009
159#define FEC_XWMRK_704 0x0000000a
160#define FEC_XWMRK_768 0x0000000b
161#define FEC_XWMRK_832 0x0000000c
162#define FEC_XWMRK_896 0x0000000d
163#define FEC_XWMRK_960 0x0000000e
164#define FEC_XWMRK_1024 0x0000000f
170#define FEC_FSM_CRC 0x02000000
171#define FEC_FSM_ENFSM 0x01000000
178#define FEC_FIFO_STAT_IP 0x80000000
180#define FEC_FIFO_STAT_FRAME 0x0f000000
181#define FEC_FIFO_STAT_FAE 0x00800000
182#define FEC_FIFO_STAT_RXW 0x00400000
183#define FEC_FIFO_STAT_UF 0x00200000
184#define FEC_FIFO_STAT_OF 0x00100000
185#define FEC_FIFO_STAT_FR 0x00080000
186#define FEC_FIFO_STAT_FULL 0x00040000
187#define FEC_FIFO_STAT_ALARM 0x00020000
188#define FEC_FIFO_STAT_EMPTY 0x00010000
190#define FEC_FIFO_STAT_ERROR ( FEC_FIFO_STAT_IP \
191 | FEC_FIFO_STAT_FAE \
192 | FEC_FIFO_STAT_RXW \
198#define FEC_FIFO_CNTRL_WCTL 0x40000000
199#define FEC_FIFO_CNTRL_WFR 0x20000000
201#define FEC_FIFO_CNTRL_FRAME 0x08000000
202#define FEC_FIFO_CNTRL_GR 0x07000000
203#define FEC_FIFO_CNTRL_GR_SHIFT 24
204#define FEC_FIFO_CNTRL_IP_MASK 0x00800000
205#define FEC_FIFO_CNTRL_FAE_MASK 0x00400000
206#define FEC_FIFO_CNTRL_RXW_MASK 0x00200000
207#define FEC_FIFO_CNTRL_UF_MASK 0x00100000
208#define FEC_FIFO_CNTRL_OF_MASK 0x00080000
211#define SDMA_TCR_EN BSP_BBIT16(0)
212#define SDMA_TCR_VAL BSP_BBIT16(1)
213#define SDMA_TCR_ALW_INIT BSP_BBIT16(2)
214#define SDMA_TCR_IN(val) BSP_BFLD16(val, 3, 7)
215#define SDMA_TCR_AUTO_START BSP_BBIT16(8)
216#define SDMA_TCR_HIGH_EN BSP_BBIT16(9)
217#define SDMA_TCR_HOLD BSP_BBIT16(10)
218#define SDMA_TCR_AS(val) BSP_BFLD16(val, 12, 15)
220#define SDMA_IPR_HOLD BSP_BBIT8(0)
221#define SDMA_IPR_PRIOR(val) BSP_BFLD8(val, 5, 7)
223#define SDMA_REQMUX_SET_31(reg, val) BSP_BFLD32SET(reg, val, 0, 1)
224#define SDMA_REQMUX_SET_30(reg, val) BSP_BFLD32SET(reg, val, 2, 3)
225#define SDMA_REQMUX_SET_29(reg, val) BSP_BFLD32SET(reg, val, 4, 5)
226#define SDMA_REQMUX_SET_28(reg, val) BSP_BFLD32SET(reg, val, 6, 7)
227#define SDMA_REQMUX_SET_27(reg, val) BSP_BFLD32SET(reg, val, 8, 9)
228#define SDMA_REQMUX_SET_26(reg, val) BSP_BFLD32SET(reg, val, 10, 11)
229#define SDMA_REQMUX_SET_25(reg, val) BSP_BFLD32SET(reg, val, 12, 13)
230#define SDMA_REQMUX_SET_24(reg, val) BSP_BFLD32SET(reg, val, 14, 15)
231#define SDMA_REQMUX_SET_23(reg, val) BSP_BFLD32SET(reg, val, 16, 17)
232#define SDMA_REQMUX_SET_22(reg, val) BSP_BFLD32SET(reg, val, 18, 19)
233#define SDMA_REQMUX_SET_21(reg, val) BSP_BFLD32SET(reg, val, 20, 21)
234#define SDMA_REQMUX_SET_20(reg, val) BSP_BFLD32SET(reg, val, 22, 23)
235#define SDMA_REQMUX_SET_19(reg, val) BSP_BFLD32SET(reg, val, 24, 25)
236#define SDMA_REQMUX_SET_18(reg, val) BSP_BFLD32SET(reg, val, 26, 27)
237#define SDMA_REQMUX_SET_17(reg, val) BSP_BFLD32SET(reg, val, 28, 29)
238#define SDMA_REQMUX_SET_16(reg, val) BSP_BFLD32SET(reg, val, 30, 31)
243 uint32_t currentPointer;
245 uint32_t variablePointer;
265#define CSC_CFG_WAITP(val) BSP_BFLD32(val, 0, 7)
266#define CSC_CFG_WAITX(val) BSP_BFLD32(val, 8, 15)
267#define CSC_CFG_MX BSP_BBIT32(16)
268#define CSC_CFG_AA BSP_BBIT32(18)
269#define CSC_CFG_CE BSP_BBIT32(19)
270#define CSC_CFG_AS(val) BSP_BFLD32(val, 20, 21)
271#define CSC_CFG_DS(val) BSP_BFLD32(val, 22, 23)
272#define CSC_CFG_BANK(val) BSP_BFLD32(val, 24, 25)
273#define CSC_CFG_WTYP(val) BSP_BFLD32(val, 26, 27)
274#define CSC_CFG_WS BSP_BBIT32(28)
275#define CSC_CFG_RS BSP_BBIT32(29)
276#define CSC_CFG_WO BSP_BBIT32(30)
277#define CSC_CFG_RO BSP_BBIT32(31)
285#define CSC_CTRL_ME BSP_BBIT32(7)
288#define CSC_STAT_WOERR BSP_BBIT32(2)
289#define CSC_STAT_ROERR BSP_BBIT32(3)
290#define CSC_STAT_GET_CSXERR(reg) BSP_BFLD32GET(reg, 5, 7)
296#define CSC_BST_CTRL_CW7 BSP_BBIT32(0)
297#define CSC_BST_CTRL_SLB7 BSP_BBIT32(1)
298#define CSC_BST_CTRL_BRE7 BSP_BBIT32(3)
299#define CSC_BST_CTRL_CW6 BSP_BBIT32(4)
300#define CSC_BST_CTRL_SLB6 BSP_BBIT32(5)
301#define CSC_BST_CTRL_BRE6 BSP_BBIT32(7)
302#define CSC_BST_CTRL_CW5 BSP_BBIT32(8)
303#define CSC_BST_CTRL_SLB5 BSP_BBIT32(9)
304#define CSC_BST_CTRL_BRE5 BSP_BBIT32(11)
305#define CSC_BST_CTRL_CW4 BSP_BBIT32(12)
306#define CSC_BST_CTRL_SLB4 BSP_BBIT32(13)
307#define CSC_BST_CTRL_BRE4 BSP_BBIT32(15)
308#define CSC_BST_CTRL_CW3 BSP_BBIT32(16)
309#define CSC_BST_CTRL_SLB3 BSP_BBIT32(17)
310#define CSC_BST_CTRL_BRE3 BSP_BBIT32(19)
311#define CSC_BST_CTRL_CW2 BSP_BBIT32(20)
312#define CSC_BST_CTRL_SLB2 BSP_BBIT32(21)
313#define CSC_BST_CTRL_BRE2 BSP_BBIT32(23)
314#define CSC_BST_CTRL_CW1 BSP_BBIT32(24)
315#define CSC_BST_CTRL_SLB1 BSP_BBIT32(25)
316#define CSC_BST_CTRL_BRE1 BSP_BBIT32(27)
317#define CSC_BST_CTRL_CW0 BSP_BBIT32(28)
318#define CSC_BST_CTRL_SLB0 BSP_BBIT32(29)
319#define CSC_BST_CTRL_BRE0 BSP_BBIT32(31)
320 uint32_t burst_control;
322#define CSC_DCYC_CTRL_DC7(val) BSP_BFLD32(val, 2, 3)
323#define CSC_DCYC_CTRL_SET_DC7(reg, val) BSP_BFLD32SET(reg, val, 2, 3)
324#define CSC_DCYC_CTRL_DC6(val) BSP_BFLD32(val, 6, 7)
325#define CSC_DCYC_CTRL_SET_DC6(reg, val) BSP_BFLD32SET(reg, val, 6, 7)
326#define CSC_DCYC_CTRL_DC5(val) BSP_BFLD32(val, 10, 11)
327#define CSC_DCYC_CTRL_SET_DC5(reg, val) BSP_BFLD32SET(reg, val, 10, 11)
328#define CSC_DCYC_CTRL_DC4(val) BSP_BFLD32(val, 14, 15)
329#define CSC_DCYC_CTRL_SET_DC4(reg, val) BSP_BFLD32SET(reg, val, 14, 15)
330#define CSC_DCYC_CTRL_DC3(val) BSP_BFLD32(val, 18, 19)
331#define CSC_DCYC_CTRL_SET_DC3(reg, val) BSP_BFLD32SET(reg, val, 18, 19)
332#define CSC_DCYC_CTRL_DC2(val) BSP_BFLD32(val, 22, 23)
333#define CSC_DCYC_CTRL_SET_DC2(reg, val) BSP_BFLD32SET(reg, val, 22, 23)
334#define CSC_DCYC_CTRL_DC1(val) BSP_BFLD32(val, 26, 27)
335#define CSC_DCYC_CTRL_SET_DC1(reg, val) BSP_BFLD32SET(reg, val, 26, 27)
336#define CSC_DCYC_CTRL_DC0(val) BSP_BFLD32(val, 30, 31)
337#define CSC_DCYC_CTRL_SET_DC0(reg, val) BSP_BFLD32SET(reg, val, 30, 31)
338 uint32_t deadcycle_control;
340 uint8_t reserved [208];
344 uint32_t memory_address_base;
345 uint32_t cs0_start_address;
346 uint32_t cs0_stop_address;
347 uint32_t cs1_start_address;
348 uint32_t cs1_stop_address;
349 uint32_t cs2_start_address;
350 uint32_t cs2_stop_address;
351 uint32_t cs3_start_address;
352 uint32_t cs3_stop_address;
353 uint32_t cs4_start_address;
354 uint32_t cs4_stop_address;
355 uint32_t cs5_start_address;
356 uint32_t cs5_stop_address;
357 uint32_t sdram_chip_select_0;
358 uint32_t sdram_chip_select_1;
359 uint8_t reserved_0 [16];
360 uint32_t boot_start_address;
361 uint32_t boot_stop_address;
363#define MM_IPBI_CTRL_CS7ENA BSP_BBIT16(4)
364#define MM_IPBI_CTRL_CS6ENA BSP_BBIT16(5)
365#define MM_IPBI_CTRL_BOOTENA BSP_BBIT16(6)
366#define MM_IPBI_CTRL_CS5ENA BSP_BBIT16(10)
367#define MM_IPBI_CTRL_CS4ENA BSP_BBIT16(11)
368#define MM_IPBI_CTRL_CS3ENA BSP_BBIT16(12)
369#define MM_IPBI_CTRL_CS2ENA BSP_BBIT16(13)
370#define MM_IPBI_CTRL_CS1ENA BSP_BBIT16(14)
371#define MM_IPBI_CTRL_CS0ENA BSP_BBIT16(15)
372 uint16_t ipbi_control;
374 uint16_t wait_state_enable;
375 uint32_t cs6_start_address;
376 uint32_t cs6_stop_address;
377 uint32_t cs7_start_address;
378 uint32_t cs7_stop_address;
379 uint8_t reserved_1 [152];
396 volatile uint8_t mc[0x100];
401 volatile uint8_t cdm[0x100];
411 volatile uint8_t sct[0x100];
416 volatile uint32_t per_mask;
417 volatile uint32_t per_pri_1;
418 volatile uint32_t per_pri_2;
419 volatile uint32_t per_pri_3;
421#define ICTL_EET_ECLR0 BSP_BBIT32(4)
422#define ICTL_EET_ECLR1 BSP_BBIT32(5)
423#define ICTL_EET_ECLR2 BSP_BBIT32(6)
424#define ICTL_EET_ECLR3 BSP_BBIT32(7)
425#define ICTL_EET_ETYPE0(val) BSP_BFLD32(val, 8, 9)
426#define ICTL_EET_ETYPE1(val) BSP_BFLD32(val, 10, 11)
427#define ICTL_EET_ETYPE2(val) BSP_BFLD32(val, 12, 13)
428#define ICTL_EET_ETYPE3(val) BSP_BFLD32(val, 14, 15)
429#define ICTL_EET_SET_ETYPE0(reg, val) BSP_BFLD32SET(reg, val, 8, 9)
430#define ICTL_EET_SET_ETYPE1(reg, val) BSP_BFLD32SET(reg, val, 10, 11)
431#define ICTL_EET_SET_ETYPE2(reg, val) BSP_BFLD32SET(reg, val, 12, 13)
432#define ICTL_EET_SET_ETYPE3(reg, val) BSP_BFLD32SET(reg, val, 14, 15)
433#define ICTL_EET_MEE BSP_BBIT32(19)
434#define ICTL_EET_EENA0 BSP_BBIT32(20)
435#define ICTL_EET_EENA1 BSP_BBIT32(21)
436#define ICTL_EET_EENA2 BSP_BBIT32(22)
437#define ICTL_EET_EENA3 BSP_BBIT32(23)
438#define ICTL_EET_CEB BSP_BBIT32(31)
440 volatile uint32_t ext_en_type;
441 volatile uint32_t crit_pri_main_mask;
442 volatile uint32_t main_pri_1;
443 volatile uint32_t main_pri_2;
444 volatile uint32_t res1;
445 volatile uint32_t pmce;
446 volatile uint32_t csa;
447 volatile uint32_t msa;
448 volatile uint32_t psa;
449 volatile uint32_t res2;
450 volatile uint32_t psa_be;
451 volatile uint8_t res3[0xC4];
457 volatile uint32_t emsel;
458 volatile uint32_t count_in;
459 volatile uint32_t pwm_conf;
460 volatile uint32_t status;
461 } gpt[MPC5200_GPT_NO];
463#define GPT_STATUS_RESET 0x0000000F
464#define GPT_STATUS_TEXP (1 << 3)
465#define GPT_STATUS_PIN (1 << 8)
466#define GPT_EMSEL_GPIO_DIR (2 << 4)
467#define GPT_EMSEL_GPIO_OUT (1 << 4)
468#define GPT_EMSEL_GPIO_OUT_HIGH (3 << 4)
469#define GPT_EMSEL_TIMER_MS_GPIO (4 << 0)
470#define GPT_EMSEL_GPIO_IN (0 << 0)
471#define GPT_EMSEL_CE (1 << 12)
472#define GPT_EMSEL_ST_CONT (1 << 10)
473#define GPT_EMSEL_INTEN (1 << 8)
474#define GPT_EMSEL_WDEN (1 << 15)
485 volatile uint8_t gpt_res[0x80];
491 volatile uint32_t tcr;
492 volatile uint32_t cntrl;
493 volatile uint32_t cvr;
494 volatile uint32_t tsr;
495 } slt[MPC5200_SLT_NO];
497 volatile uint8_t slt_res[0xE0];
502 volatile uint8_t rtc[0x100];
509 volatile uint8_t ctl0;
510 volatile uint8_t ctl1;
511 volatile uint8_t res1;
512 volatile uint8_t res2;
513 volatile uint8_t btr0;
514 volatile uint8_t btr1;
515 volatile uint8_t res3;
516 volatile uint8_t res4;
517 volatile uint8_t rflg;
518 volatile uint8_t rier;
519 volatile uint8_t res5;
520 volatile uint8_t res6;
521 volatile uint8_t tflg;
522 volatile uint8_t tier;
523 volatile uint8_t res7;
524 volatile uint8_t res8;
525 volatile uint8_t tarq;
526 volatile uint8_t taak;
527 volatile uint8_t res9;
528 volatile uint8_t res10;
529 volatile uint8_t bsel;
530 volatile uint8_t idac;
531 volatile uint8_t res11;
532 volatile uint8_t res12;
533 volatile uint8_t res13;
534 volatile uint8_t res14;
535 volatile uint8_t res15;
536 volatile uint8_t res16;
537 volatile uint8_t rxerr;
538 volatile uint8_t txerr;
539 volatile uint8_t res17;
540 volatile uint8_t res18;
541 volatile uint8_t idar0;
542 volatile uint8_t idar1;
543 volatile uint8_t res19;
544 volatile uint8_t res20;
545 volatile uint8_t idar2;
546 volatile uint8_t idar3;
547 volatile uint8_t res21;
548 volatile uint8_t res22;
549 volatile uint8_t idmr0;
550 volatile uint8_t idmr1;
551 volatile uint8_t res23;
552 volatile uint8_t res24;
553 volatile uint8_t idmr2;
554 volatile uint8_t idmr3;
555 volatile uint8_t res25;
556 volatile uint8_t res26;
557 volatile uint8_t idar4;
558 volatile uint8_t idar5;
559 volatile uint8_t res27;
560 volatile uint8_t res28;
561 volatile uint8_t idar6;
562 volatile uint8_t idar7;
563 volatile uint8_t res29;
564 volatile uint8_t res30;
565 volatile uint8_t idmr4;
566 volatile uint8_t idmr5;
567 volatile uint8_t res31;
568 volatile uint8_t res32;
569 volatile uint8_t idmr6;
570 volatile uint8_t idmr7;
571 volatile uint8_t res33;
572 volatile uint8_t res34;
573 volatile uint8_t rxidr0;
574 volatile uint8_t rxidr1;
575 volatile uint8_t res35;
576 volatile uint8_t res36;
577 volatile uint8_t rxidr2;
578 volatile uint8_t rxidr3;
579 volatile uint8_t res37;
580 volatile uint8_t res38;
581 volatile uint8_t rxdsr0;
582 volatile uint8_t rxdsr1;
583 volatile uint8_t res39;
584 volatile uint8_t res40;
585 volatile uint8_t rxdsr2;
586 volatile uint8_t rxdsr3;
587 volatile uint8_t res41;
588 volatile uint8_t res42;
589 volatile uint8_t rxdsr4;
590 volatile uint8_t rxdsr5;
591 volatile uint8_t res43;
592 volatile uint8_t res44;
593 volatile uint8_t rxdsr6;
594 volatile uint8_t rxdsr7;
595 volatile uint8_t res45;
596 volatile uint8_t res46;
597 volatile uint8_t rxdlr;
598 volatile uint8_t res47;
599 volatile uint8_t res48;
600 volatile uint8_t res49;
601 volatile uint8_t rxtimh;
602 volatile uint8_t rxtiml;
603 volatile uint8_t res50;
604 volatile uint8_t res51;
605 volatile uint8_t txidr0;
606 volatile uint8_t txidr1;
607 volatile uint8_t res52;
608 volatile uint8_t res53;
609 volatile uint8_t txidr2;
610 volatile uint8_t txidr3;
611 volatile uint8_t res54;
612 volatile uint8_t res55;
613 volatile uint8_t txdsr0;
614 volatile uint8_t txdsr1;
615 volatile uint8_t res56;
616 volatile uint8_t res57;
617 volatile uint8_t txdsr2;
618 volatile uint8_t txdsr3;
619 volatile uint8_t res58;
620 volatile uint8_t res59;
621 volatile uint8_t txdsr4;
622 volatile uint8_t txdsr5;
623 volatile uint8_t res60;
624 volatile uint8_t res61;
625 volatile uint8_t txdsr6;
626 volatile uint8_t txdsr7;
627 volatile uint8_t res62;
628 volatile uint8_t res63;
629 volatile uint8_t txdlr;
630 volatile uint8_t txtbpr;
631 volatile uint8_t res64;
632 volatile uint8_t res65;
633 volatile uint8_t txtimh;
634 volatile uint8_t txtiml;
635 volatile uint8_t res66;
636 volatile uint8_t res67;
637 }
mscan[MPC5200_CAN_NO];
639 volatile uint8_t res[0x100];
644 volatile uint32_t gpiopcr;
645 #define GPIO_PCR_CHIP_SELECT_1 0x80000000
646 #define GPIO_PCR_CHIP_ALTS 0x30000000
647 #define GPIO_PCR_CHIP_ALTS_NONE 0x00000000
648 #define GPIO_PCR_CHIP_ALTS_CAN 0x10000000
649 #define GPIO_PCR_CHIP_ALTS_SPI 0x20000000
650 #define GPIO_PCR_CHIP_ALTS_BOTH 0x30000000
651 #define GPIO_PCR_CHIP_SELECT_7 0x08000000
652 #define GPIO_PCR_CHIP_SELECT_6 0x04000000
653 #define GPIO_PCR_CHIP_SELECT_ATA 0x03000000
654 #define GPIO_PCR_CHIP_SELECT_IR_USB_CLK 0x00800000
655 #define GPIO_PCR_IRDA 0x00700000
656 #define GPIO_PCR_ETHERNET 0x000F0000
657 #define GPIO_PCR_PCI_DIS 0x00008000
658 #define GPIO_PCR_USB_SE 0x00004000
659 #define GPIO_PCR_USB_GPIO 0x00003000
660 #define GPIO_PCR_PSC3 0x00000F00
661 #define GPIO_PCR_PSC2 0x00000070
662 #define GPIO_PCR_PSC1 0x00000007
664 #define GPIO_S_PIN_IR_USB_CLK BSP_BBIT32(2)
665 #define GPIO_S_PIN_IRDA_TX BSP_BBIT32(3)
666 #define GPIO_S_PIN_ETH_11 BSP_BBIT32(4)
667 #define GPIO_S_PIN_ETH_10 BSP_BBIT32(5)
668 #define GPIO_S_PIN_ETH_9 BSP_BBIT32(6)
669 #define GPIO_S_PIN_ETH_8 BSP_BBIT32(7)
670 #define GPIO_S_PIN_USB1_8 BSP_BBIT32(12)
671 #define GPIO_S_PIN_USB1_7 BSP_BBIT32(13)
672 #define GPIO_S_PIN_USB1_6 BSP_BBIT32(14)
673 #define GPIO_S_PIN_USB1_0 BSP_BBIT32(15)
674 #define GPIO_S_PIN_PSC3_7 BSP_BBIT32(18)
675 #define GPIO_S_PIN_PSC3_6 BSP_BBIT32(19)
676 #define GPIO_S_PIN_PSC3_3 BSP_BBIT32(20)
677 #define GPIO_S_PIN_PSC3_2 BSP_BBIT32(21)
678 #define GPIO_S_PIN_PSC3_1 BSP_BBIT32(22)
679 #define GPIO_S_PIN_PSC3_0 BSP_BBIT32(23)
680 #define GPIO_S_PIN_PSC2_3 BSP_BBIT32(24)
681 #define GPIO_S_PIN_PSC2_2 BSP_BBIT32(25)
682 #define GPIO_S_PIN_PSC2_1 BSP_BBIT32(26)
683 #define GPIO_S_PIN_PSC2_0 BSP_BBIT32(27)
684 #define GPIO_S_PIN_PSC1_3 BSP_BBIT32(28)
685 #define GPIO_S_PIN_PSC1_2 BSP_BBIT32(29)
686 #define GPIO_S_PIN_PSC1_1 BSP_BBIT32(30)
687 #define GPIO_S_PIN_PSC1_0 BSP_BBIT32(31)
689 volatile uint32_t gpiosen;
690 volatile uint32_t gpiosod;
691 volatile uint32_t gpiosdd;
692 volatile uint32_t gpiosdo;
693 volatile uint32_t gpiosdi;
695 #define GPIO_O_PIN_ETH_7 BSP_BBIT32(0)
696 #define GPIO_O_PIN_ETH_6 BSP_BBIT32(1)
697 #define GPIO_O_PIN_ETH_5 BSP_BBIT32(2)
698 #define GPIO_O_PIN_ETH_4 BSP_BBIT32(3)
699 #define GPIO_O_PIN_ETH_3 BSP_BBIT32(4)
700 #define GPIO_O_PIN_ETH_2 BSP_BBIT32(5)
701 #define GPIO_O_PIN_ETH_1 BSP_BBIT32(6)
702 #define GPIO_O_PIN_ETH_0 BSP_BBIT32(7)
703 #define GPIO_O_PIN_I2C_3 BSP_BBIT32(13)
704 #define GPIO_O_PIN_I2C_0 BSP_BBIT32(14)
705 #define GPIO_O_PIN_I2C_1 BSP_BBIT32(15)
707 volatile uint32_t gpiooe;
708 volatile uint32_t gpioodo;
710 #define GPIO_I_PIN_ETH_16 BSP_BBIT32(0)
711 #define GPIO_I_PIN_ETH_15 BSP_BBIT32(1)
712 #define GPIO_I_PIN_ETH_14 BSP_BBIT32(2)
713 #define GPIO_I_PIN_ETH_13 BSP_BBIT32(3)
714 #define GPIO_I_PIN_USB1_9 BSP_BBIT32(4)
715 #define GPIO_I_PIN_PSC3_8 BSP_BBIT32(5)
716 #define GPIO_I_PIN_PSC3_5 BSP_BBIT32(6)
717 #define GPIO_I_PIN_PSC3_4 BSP_BBIT32(7)
719 volatile uint32_t gpiosie;
720 #define GPIO_SIE_SINT_7_ETH_16_PIN 0x80000000
721 #define GPIO_SIE_SINT_6_ETH_15_PIN 0x40000000
722 #define GPIO_SIE_SINT_5_ETH_14_PIN 0x20000000
723 #define GPIO_SIE_SINT_4_ETH_13_PIN 0x10000000
724 #define GPIO_SIE_SINT_3_USB1_9_PIN 0x08000000
725 #define GPIO_SIE_SINT_2_PSC3_8_PIN 0x04000000
726 #define GPIO_SIE_SINT_1_PSC3_5_PIN 0x02000000
727 #define GPIO_SIE_SINT_0_PSC3_4_PIN 0x01000000
729 volatile uint32_t gpiosiod;
731 volatile uint32_t gpiosidd;
732 #define GPIO_SIDD_SINT_7_ETH_16_PIN 0x80000000
733 #define GPIO_SIDD_SINT_6_ETH_15_PIN 0x40000000
734 #define GPIO_SIDD_SINT_5_ETH_14_PIN 0x20000000
735 #define GPIO_SIDD_SINT_4_ETH_13_PIN 0x10000000
736 #define GPIO_SIDD_SINT_3_USB1_9_PIN 0x08000000
737 #define GPIO_SIDD_SINT_2_PSC3_8_PIN 0x04000000
738 #define GPIO_SIDD_SINT_1_PSC3_5_PIN 0x02000000
739 #define GPIO_SIDD_SINT_0_PSC3_4_PIN 0x01000000
741 volatile uint32_t gpiosido;
743 volatile uint32_t gpiosiie;
744 #define GPIO_SIIE_SINT_7_ETH_16_PIN 0x80000000
745 #define GPIO_SIIE_SINT_6_ETH_15_PIN 0x40000000
746 #define GPIO_SIIE_SINT_5_ETH_14_PIN 0x20000000
747 #define GPIO_SIIE_SINT_4_ETH_13_PIN 0x10000000
748 #define GPIO_SIIE_SINT_3_USB1_9_PIN 0x08000000
749 #define GPIO_SIIE_SINT_2_PSC3_8_PIN 0x04000000
750 #define GPIO_SIIE_SINT_1_PSC3_5_PIN 0x02000000
751 #define GPIO_SIIE_SINT_0_PSC3_4_PIN 0x01000000
753 volatile uint32_t gpiosiit;
754 #define GPIO_SIIT_SET_ETH_16_PIN(reg, val) BSP_BFLD32SET(reg, val, 0, 1)
755 #define GPIO_SIIT_SET_ETH_15_PIN(reg, val) BSP_BFLD32SET(reg, val, 2, 3)
756 #define GPIO_SIIT_SET_ETH_14_PIN(reg, val) BSP_BFLD32SET(reg, val, 4, 5)
757 #define GPIO_SIIT_SET_ETH_13_PIN(reg, val) BSP_BFLD32SET(reg, val, 6, 7)
758 #define GPIO_SIIT_SET_USB1_9_PIN(reg, val) BSP_BFLD32SET(reg, val, 8, 9)
759 #define GPIO_SIIT_SET_PSC3_8_PIN(reg, val) BSP_BFLD32SET(reg, val, 10, 11)
760 #define GPIO_SIIT_SET_PSC3_5_PIN(reg, val) BSP_BFLD32SET(reg, val, 12, 13)
761 #define GPIO_SIIT_SET_PSC3_4_PIN(reg, val) BSP_BFLD32SET(reg, val, 14, 15)
763 #define GPIO_SIIT_SINT_7_ETH_16_PIN_MASK 0xc0000000
764 #define GPIO_SIIT_SINT_6_ETH_15_PIN_MASK 0x30000000
765 #define GPIO_SIIT_SINT_5_ETH_14_PIN_MASK 0x0c000000
766 #define GPIO_SIIT_SINT_4_ETH_13_PIN_MASK 0x03000000
767 #define GPIO_SIIT_SINT_3_USB1_9_PIN_MASK 0x00c00000
768 #define GPIO_SIIT_SINT_2_PSC3_8_PIN_MASK 0x00300000
769 #define GPIO_SIIT_SINT_1_PSC3_5_PIN_MASK 0x000c0000
770 #define GPIO_SIIT_SINT_0_PSC3_4_PIN_MASK 0x00030000
772 #define GPIO_SIIT_ON_ANY_TRANSITION 0x00000000
773 #define GPIO_SIIT_ON_RISING_EDGE 0x00000001
774 #define GPIO_SIIT_ON_FALLING_EDGE 0x00000002
775 #define GPIO_SIIT_ON_PULSE 0x00000003
777 #define GPIO_SIIT_SINT_7_ETH_16_PIN_SHIFT 16
778 #define GPIO_SIIT_SINT_6_ETH_15_PIN_SHIFT 18
779 #define GPIO_SIIT_SINT_5_ETH_14_PIN_SHIFT 20
780 #define GPIO_SIIT_SINT_4_ETH_13_PIN_SHIFT 22
781 #define GPIO_SIIT_SINT_3_USB1_9_PIN_SHIFT 24
782 #define GPIO_SIIT_SINT_2_PSC3_8_PIN_SHIFT 26
783 #define GPIO_SIIT_SINT_1_PSC3_5_PIN_SHIFT 28
784 #define GPIO_SIIT_SINT_0_PSC3_4_PIN_SHIFT 30
786 volatile uint32_t gpiosime;
787 #define GPIO_SIME_MASTER_ENABLE 0x10000000
789 volatile uint32_t gpiosist;
790 #define GPIO_SIST_SINT_7_ETH_16_PIN_STATUS 0x80000000
791 #define GPIO_SIST_SINT_6_ETH_15_PIN_STATUS 0x40000000
792 #define GPIO_SIST_SINT_5_ETH_14_PIN_STATUS 0x20000000
793 #define GPIO_SIST_SINT_4_ETH_13_PIN_STATUS 0x10000000
794 #define GPIO_SIST_SINT_3_USB1_9_PIN_STATUS 0x08000000
795 #define GPIO_SIST_SINT_2_PSC3_8_PIN_STATUS 0x04000000
796 #define GPIO_SIST_SINT_1_PSC3_5_PIN_STATUS 0x02000000
797 #define GPIO_SIST_SINT_0_PSC3_4_PIN_STATUS 0x01000000
798 #define GPIO_SIST_SINT_7_ETH_16_PIN_VALUE 0x00800000
799 #define GPIO_SIST_SINT_6_ETH_15_PIN_VALUE 0x00400000
800 #define GPIO_SIST_SINT_5_ETH_14_PIN_VALUE 0x00200000
801 #define GPIO_SIST_SINT_4_ETH_13_PIN_VALUE 0x00100000
802 #define GPIO_SIST_SINT_3_USB1_9_PIN_VALUE 0x00080000
803 #define GPIO_SIST_SINT_2_PSC3_8_PIN_VALUE 0x00040000
804 #define GPIO_SIST_SINT_1_PSC3_5_PIN_VALUE 0x00020000
805 #define GPIO_SIST_SINT_0_PSC3_4_PIN_VALUE 0x00010000
807 #define GPIO_SIST_SINT_CLEAR_ALL 0xff000000
809 volatile uint8_t res4[0xC0];
815 #define GPIO_W_PIN_GPIO_WKUP_7 BSP_BBIT32(0)
816 #define GPIO_W_PIN_GPIO_WKUP_6 BSP_BBIT32(1)
817 #define GPIO_W_PIN_PSC6_1 BSP_BBIT32(2)
818 #define GPIO_W_PIN_PSC6_0 BSP_BBIT32(3)
819 #define GPIO_W_PIN_ETH_17 BSP_BBIT32(4)
820 #define GPIO_W_PIN_PSC3_9 BSP_BBIT32(5)
821 #define GPIO_W_PIN_PSC2_4 BSP_BBIT32(6)
822 #define GPIO_W_PIN_PSC1_4 BSP_BBIT32(7)
824 volatile uint32_t gpiowe;
825 volatile uint32_t gpiowod;
826 volatile uint32_t gpiowdd;
827 volatile uint32_t gpiowdo;
828 volatile uint32_t gpiowue;
829 volatile uint32_t gpiowsie;
830 volatile uint32_t gpiowt;
831 volatile uint32_t gpiowme;
832 volatile uint32_t gpiowi;
833 volatile uint32_t gpiows;
834 volatile uint8_t gpiow_res[0xD8];
839 volatile uint8_t ppci[0x100];
844 volatile uint8_t ir[0x100];
849 volatile uint8_t spi[0x100];
854 volatile uint8_t usb[0x200];
861 volatile uint32_t EU00;
862 volatile uint32_t EU01;
863 volatile uint32_t EU02;
864 volatile uint32_t EU03;
865 volatile uint32_t EU04;
866 volatile uint32_t EU05;
867 volatile uint32_t EU06;
868 volatile uint32_t EU07;
869 volatile uint32_t EU10;
870 volatile uint32_t EU11;
871 volatile uint32_t EU12;
872 volatile uint32_t EU13;
873 volatile uint32_t EU14;
874 volatile uint32_t EU15;
875 volatile uint32_t EU16;
876 volatile uint32_t EU17;
877 volatile uint32_t EU20;
878 volatile uint32_t EU21;
879 volatile uint32_t EU22;
880 volatile uint32_t EU23;
881 volatile uint32_t EU24;
882 volatile uint32_t EU25;
883 volatile uint32_t EU26;
884 volatile uint32_t EU27;
885 volatile uint32_t EU30;
886 volatile uint32_t EU31;
887 volatile uint32_t EU32;
888 volatile uint32_t EU33;
889 volatile uint32_t EU34;
890 volatile uint32_t EU35;
891 volatile uint32_t EU36;
892 volatile uint32_t EU37;
894 volatile uint32_t res8[0x340];
896 volatile uint8_t res_1300[0xc00];
898 volatile uint32_t reserved0;
899 volatile uint32_t reserved1;
900 volatile uint32_t reserved2;
901 volatile uint32_t reserved3;
902 volatile uint32_t reserved4;
903 volatile uint32_t reserved5;
904 volatile uint32_t reserved6;
905 volatile uint32_t reserved7;
906 volatile uint32_t reserved8;
907 volatile uint32_t reserved9;
908 volatile uint32_t reserved10;
909 volatile uint32_t reserved11;
910 volatile uint32_t reserved12;
911 volatile uint32_t reserved13;
912 volatile uint32_t reserved14;
913 volatile uint32_t reserved15;
915#define XLB_CFG_PLDIS BSP_BBIT32(0)
916#define XLB_CFG_BSDIS BSP_BBIT32(15)
917#define XLB_CFG_SE BSP_BBIT32(16)
918#define XLB_CFG_USE_WWF BSP_BBIT32(17)
919#define XLB_CFG_TBEN BSP_BBIT32(18)
920#define XLB_CFG_WS BSP_BBIT32(20)
921#define XLB_CFG_SP(val) BSP_BFLD32(val, 21, 23)
922#define XLB_CFG_SET_SP(reg, val) BSP_BFLD32SET(reg, val, 21, 23)
923#define XLB_CFG_PM(val) BSP_BFLD32(val, 25, 26)
924#define XLB_CFG_SET_PM(reg, val) BSP_BFLD32SET(reg, val, 25, 26)
925#define XLB_CFG_BA BSP_BBIT32(28)
926#define XLB_CFG_DT BSP_BBIT32(29)
927#define XLB_CFG_AT BSP_BBIT32(30)
930 volatile uint32_t version;
932#define XLB_ST_SEA BSP_BBIT32(23)
933#define XLB_ST_MM BSP_BBIT32(24)
934#define XLB_ST_TTA BSP_BBIT32(25)
935#define XLB_ST_TTR BSP_BBIT32(26)
936#define XLB_ST_ECW BSP_BBIT32(27)
937#define XLB_ST_TTM BSP_BBIT32(28)
938#define XLB_ST_BA BSP_BBIT32(29)
939#define XLB_ST_DT BSP_BBIT32(30)
940#define XLB_ST_AT BSP_BBIT32(31)
942 volatile uint32_t xlb_status;
943 volatile uint32_t int_enable;
944 volatile uint32_t add_capture;
945 volatile uint32_t bus_sig_capture;
946 volatile uint32_t add_time_out;
947 volatile uint32_t data_time_out;
948 volatile uint32_t bus_time_out;
949 volatile uint32_t priority_enable;
950 volatile uint32_t priority;
951 volatile uint32_t arb_base_addr2;
952 volatile uint32_t snoop_window;
954 volatile uint32_t reserved16;
955 volatile uint32_t reserved17;
956 volatile uint32_t reserved18;
959 volatile uint32_t init_total_count;
960 volatile uint32_t int_total_count;
962 volatile uint32_t reserved19;
964 volatile uint32_t lower_address;
965 volatile uint32_t higher_address;
966 volatile uint32_t int_window_count;
967 volatile uint32_t window_ter_count;
968 volatile uint8_t res_0x1fa0[0x60];
978 volatile uint8_t res1[3];
979 volatile uint16_t sr_csr;
980 volatile uint16_t res2[1];
981 volatile uint16_t cr;
982 volatile uint16_t res3[1];
983 volatile uint32_t rb_tb;
984 volatile uint16_t ipcr_acr;
985 volatile uint16_t res4[1];
986 volatile uint16_t isr_imr;
987#define ISR_TX_RDY (1 << 8)
988#define ISR_RX_RDY_FULL (1 << 9)
989#define ISR_RB (1 << 15)
990#define ISR_FE (1 << 14)
991#define ISR_PE (1 << 13)
992#define ISR_OE (1 << 12)
993#define ISR_ERROR (ISR_FE | ISR_PE | ISR_OE)
995#define IMR_TX_RDY (1 << 8)
996#define IMR_RX_RDY_FULL (1 << 9)
997 volatile uint16_t res5[1];
998 volatile uint8_t ctur;
999 volatile uint8_t res6[3];
1000 volatile uint8_t ctlr;
1001 volatile uint8_t res7[0x13];
1002 volatile uint8_t ivr;
1003 volatile uint8_t res8[3];
1004 volatile uint8_t ip;
1005 volatile uint8_t res9[3];
1006 volatile uint8_t op1;
1007 volatile uint8_t res10[3];
1008 volatile uint8_t op0;
1009 volatile uint8_t res11[3];
1010 volatile uint8_t sicr;
1011 volatile uint8_t res12[0x17];
1012 volatile uint16_t rfnum;
1013 volatile uint16_t res13[1];
1014 volatile uint16_t tfnum;
1015 volatile uint16_t res14[1];
1016 volatile uint16_t rfdata;
1017 volatile uint16_t res15[1];
1018 volatile uint16_t rfstat;
1019 volatile uint16_t res16[1];
1020 volatile uint8_t rfcntl;
1021 volatile uint8_t res17[5];
1022 volatile uint16_t rfalarm;
1023 volatile uint8_t res18[2];
1024 volatile uint16_t rfrptr;
1025 volatile uint16_t res19[1];
1026 volatile uint16_t rfwptr;
1027 volatile uint16_t res20[1];
1028 volatile uint16_t rflrfptr;
1029 volatile uint16_t rflwfptr;
1030 volatile uint16_t res21[1];
1031 volatile uint16_t tfdata;
1032 volatile uint16_t res22[1];
1033 volatile uint16_t tfstat;
1034 volatile uint16_t res23[1];
1035 volatile uint8_t tfcntl;
1036 volatile uint8_t res24[5];
1037 volatile uint16_t tfalarm;
1038 volatile uint8_t res25[2];
1039 volatile uint16_t tfrptr;
1040 volatile uint16_t res26[1];
1041 volatile uint16_t tfwptr;
1042 volatile uint16_t res27[1];
1043 volatile uint16_t tflrfptr;
1044 volatile uint16_t tflwfptr;
1045 volatile uint16_t res28[1];
1046 volatile uint8_t res29[0x160];
1047 } psc[MPC5200_PSC_REG_SETS];
1052#define TX_FIFO_SIZE 256
1053#define RX_FIFO_SIZE 512
1056 volatile uint8_t irda[0x200];
1064 volatile uint32_t fec_id;
1065 volatile uint32_t ievent;
1066 volatile uint32_t imask;
1068 volatile uint32_t res9[1];
1069 volatile uint32_t r_des_active;
1070 volatile uint32_t x_des_active;
1071 volatile uint32_t r_des_active_cl;
1072 volatile uint32_t x_des_active_cl;
1073 volatile uint32_t ivent_set;
1074 volatile uint32_t ecntrl;
1076 volatile uint32_t res10[6];
1077 volatile uint32_t mii_data;
1078 volatile uint32_t mii_speed;
1079 volatile uint32_t mii_status;
1081 volatile uint32_t res11[5];
1082 volatile uint32_t mib_data;
1083 volatile uint32_t mib_control;
1085 volatile uint32_t res12[6];
1086 volatile uint32_t r_activate;
1087 volatile uint32_t r_cntrl;
1088 volatile uint32_t r_hash;
1089 volatile uint32_t r_data;
1090 volatile uint32_t ar_done;
1091 volatile uint32_t r_test;
1092 volatile uint32_t r_mib;
1093 volatile uint32_t r_da_low;
1094 volatile uint32_t r_da_high;
1096 volatile uint32_t res13[7];
1097 volatile uint32_t x_activate;
1098 volatile uint32_t x_cntrl;
1099 volatile uint32_t backoff;
1100 volatile uint32_t x_data;
1101 volatile uint32_t x_status;
1102 volatile uint32_t x_mib;
1103 volatile uint32_t x_test;
1104 volatile uint32_t fdxfc_da1;
1105 volatile uint32_t fdxfc_da2;
1106 volatile uint32_t paddr1;
1107 volatile uint32_t paddr2;
1108 volatile uint32_t op_pause;
1110 volatile uint32_t res14[4];
1111 volatile uint32_t instr_reg;
1112 volatile uint32_t context_reg;
1113 volatile uint32_t test_cntrl;
1114 volatile uint32_t acc_reg;
1115 volatile uint32_t ones;
1116 volatile uint32_t zeros;
1117 volatile uint32_t iaddr1;
1118 volatile uint32_t iaddr2;
1119 volatile uint32_t gaddr1;
1120 volatile uint32_t gaddr2;
1121 volatile uint32_t random;
1122 volatile uint32_t rand1;
1123 volatile uint32_t tmp;
1125 volatile uint32_t res15[3];
1126 volatile uint32_t fifo_id;
1127 volatile uint32_t x_wmrk;
1128 volatile uint32_t fcntrl;
1129 volatile uint32_t r_bound;
1130 volatile uint32_t r_fstart;
1131 volatile uint32_t r_count;
1132 volatile uint32_t r_lag;
1133 volatile uint32_t r_read;
1134 volatile uint32_t r_write;
1135 volatile uint32_t x_count;
1136 volatile uint32_t x_lag;
1137 volatile uint32_t x_retry;
1138 volatile uint32_t x_write;
1139 volatile uint32_t x_read;
1141 volatile uint32_t res16[2];
1142 volatile uint32_t fm_cntrl;
1143 volatile uint32_t rfifo_data;
1144 volatile uint32_t rfifo_status;
1145 volatile uint32_t rfifo_cntrl;
1146 volatile uint32_t rfifo_lrf_ptr;
1147 volatile uint32_t rfifo_lwf_ptr;
1148 volatile uint32_t rfifo_alarm;
1149 volatile uint32_t rfifo_rdptr;
1150 volatile uint32_t rfifo_wrptr;
1151 volatile uint32_t tfifo_data;
1152 volatile uint32_t tfifo_status;
1153 volatile uint32_t tfifo_cntrl;
1154 volatile uint32_t tfifo_lrf_ptr;
1155 volatile uint32_t tfifo_lwf_ptr;
1156 volatile uint32_t tfifo_alarm;
1157 volatile uint32_t tfifo_rdptr;
1158 volatile uint32_t tfifo_wrptr;
1160 volatile uint32_t reset_cntrl;
1161 volatile uint32_t xmit_fsm;
1163 volatile uint32_t res17[3];
1164 volatile uint32_t rdes_data0;
1165 volatile uint32_t rdes_data1;
1166 volatile uint32_t r_length;
1167 volatile uint32_t x_length;
1168 volatile uint32_t x_addr;
1169 volatile uint32_t cdes_data;
1170 volatile uint32_t status;
1171 volatile uint32_t dma_control;
1172 volatile uint32_t des_cmnd;
1173 volatile uint32_t data;
1175 volatile uint8_t RES[0x600];
1181 volatile uint32_t rmon_t_drop;
1182 volatile uint32_t rmon_t_packets;
1183 volatile uint32_t rmon_t_bc_pkt;
1184 volatile uint32_t rmon_t_mc_pkt;
1185 volatile uint32_t rmon_t_crc_align;
1186 volatile uint32_t rmon_t_undersize;
1187 volatile uint32_t rmon_t_oversize;
1188 volatile uint32_t rmon_t_frag;
1189 volatile uint32_t rmon_t_jab;
1190 volatile uint32_t rmon_t_col;
1191 volatile uint32_t rmon_t_p64;
1192 volatile uint32_t rmon_t_p65to127;
1193 volatile uint32_t rmon_t_p128to255;
1194 volatile uint32_t rmon_t_p256to511;
1195 volatile uint32_t rmon_t_p512to1023;
1196 volatile uint32_t rmon_t_p1024to2047;
1197 volatile uint32_t rmon_t_p_gte2048;
1198 volatile uint32_t rmon_t_octets;
1199 volatile uint32_t ieee_t_drop;
1200 volatile uint32_t ieee_t_frame_ok;
1201 volatile uint32_t ieee_t_1col;
1202 volatile uint32_t ieee_t_mcol;
1203 volatile uint32_t ieee_t_def;
1204 volatile uint32_t ieee_t_lcol;
1205 volatile uint32_t ieee_t_excol;
1206 volatile uint32_t ieee_t_macerr;
1207 volatile uint32_t ieee_t_cserr;
1208 volatile uint32_t ieee_t_sqe;
1209 volatile uint32_t t_fdxfc;
1210 volatile uint32_t ieee_t_octets_ok;
1212 volatile uint32_t res18[2];
1213 volatile uint32_t rmon_r_drop;
1214 volatile uint32_t rmon_r_packets;
1215 volatile uint32_t rmon_r_bc_pkt;
1216 volatile uint32_t rmon_r_mc_pkt;
1217 volatile uint32_t rmon_r_crc_align;
1218 volatile uint32_t rmon_r_undersize;
1219 volatile uint32_t rmon_r_oversize;
1220 volatile uint32_t rmon_r_frag;
1221 volatile uint32_t rmon_r_jab;
1223 volatile uint32_t rmon_r_resvd_0;
1225 volatile uint32_t rmon_r_p64;
1226 volatile uint32_t rmon_r_p65to127;
1227 volatile uint32_t rmon_r_p128to255;
1228 volatile uint32_t rmon_r_p256to511;
1229 volatile uint32_t rmon_r_p512to1023;
1230 volatile uint32_t rmon_r_p1024to2047;
1231 volatile uint32_t rmon_r_p_gte2048;
1232 volatile uint32_t rmon_r_octets;
1233 volatile uint32_t ieee_r_drop;
1234 volatile uint32_t ieee_r_frame_ok;
1235 volatile uint32_t ieee_r_crc;
1236 volatile uint32_t ieee_r_align;
1237 volatile uint32_t r_macerr;
1238 volatile uint32_t r_fdxfc;
1239 volatile uint32_t ieee_r_octets_ok;
1241 volatile uint32_t res19[6];
1243 volatile uint32_t res20[64];
1245 volatile uint32_t res21[256];
1251 volatile uint8_t pci[0x200];
1258 volatile uint32_t ata_hcfg;
1259 volatile uint32_t ata_hsr;
1260 volatile uint32_t ata_pio1;
1261 volatile uint32_t ata_pio2;
1262 volatile uint32_t ata_dma1;
1263 volatile uint32_t ata_dma2;
1264 volatile uint32_t ata_udma1;
1265 volatile uint32_t ata_udma2;
1266 volatile uint32_t ata_udma3;
1267 volatile uint32_t ata_udma4;
1268 volatile uint32_t ata_udma5;
1269 volatile uint32_t ata_res1[4];
1272 volatile uint32_t ata_rtfdwr;
1274#define ATA_RTFSR_ERR BSP_BBIT32(9)
1275#define ATA_RTFSR_UF BSP_BBIT32(10)
1276#define ATA_RTFSR_OF BSP_BBIT32(11)
1277#define ATA_RTFSR_FULL BSP_BBIT32(12)
1278#define ATA_RTFSR_HI BSP_BBIT32(13)
1279#define ATA_RTFSR_LO BSP_BBIT32(14)
1280#define ATA_RTFSR_EMPTY BSP_BBIT32(15)
1282 volatile uint32_t ata_rtfsr;
1284#define ATA_RTFCR_WFR BSP_BBIT32(2)
1285#define ATA_RTFCR_GR(val) BSP_BFLD32(val, 5, 7)
1287 volatile uint32_t ata_rtfcr;
1288 volatile uint32_t ata_rtfar;
1289 volatile uint32_t ata_rtfrpr;
1290 volatile uint32_t ata_rtfwpr;
1291 volatile uint32_t ata_res2[2];
1294 volatile uint32_t ata_dctr_dasr;
1295 volatile uint32_t ata_ddr;
1296 volatile uint32_t ata_dfr_der;
1297 volatile uint32_t ata_dscr;
1298 volatile uint32_t ata_dsnr;
1299 volatile uint32_t ata_dclr;
1300 volatile uint32_t ata_dchr;
1301 volatile uint32_t ata_ddhr;
1302 volatile uint32_t ata_dcr_dsr;
1303 volatile uint32_t ata_res3[0xA0];
1309 volatile uint8_t madr;
1310 volatile uint8_t res_1[3];
1311 volatile uint8_t mfdr;
1312 volatile uint8_t res_5[3];
1313 volatile uint8_t mcr;
1314 volatile uint8_t res_9[3];
1316#define MPC5200_I2C_MCR_MEN (1 << (7-0))
1317#define MPC5200_I2C_MCR_MIEN (1 << (7-1))
1318#define MPC5200_I2C_MCR_MSTA (1 << (7-2))
1319#define MPC5200_I2C_MCR_MTX (1 << (7-3))
1320#define MPC5200_I2C_MCR_TXAK (1 << (7-4))
1321#define MPC5200_I2C_MCR_RSTA (1 << (7-5))
1323 volatile uint8_t msr;
1324 volatile uint8_t res_d[3];
1325#define MPC5200_I2C_MSR_CF (1 << (7-0))
1326#define MPC5200_I2C_MSR_MAAS (1 << (7-1))
1327#define MPC5200_I2C_MSR_BB (1 << (7-2))
1328#define MPC5200_I2C_MSR_MAL (1 << (7-3))
1329#define MPC5200_I2C_MSR_SRW (1 << (7-5))
1330#define MPC5200_I2C_MSR_MIF (1 << (7-6))
1331#define MPC5200_I2C_MSR_RXAK (1 << (7-7))
1332 volatile uint8_t mdr;
1333 volatile uint8_t res_11[3];
1334 volatile uint8_t res_14[12];
1335 volatile uint8_t icr;
1336#define MPC5200_I2C_ICR_BNBE2 (1 << (7-0))
1337#define MPC5200_I2C_ICR_TE2 (1 << (7-1))
1338#define MPC5200_I2C_ICR_RE2 (1 << (7-2))
1339#define MPC5200_I2C_ICR_IE2 (1 << (7-3))
1340#define MPC5200_I2C_ICR_MASK2 (MPC5200_I2C_ICR_BNBE2|MPC5200_I2C_ICR_TE2\
1341 |MPC5200_I2C_ICR_RE2|MPC5200_I2C_ICR_IE2)
1342#define MPC5200_I2C_ICR_BNBE1 (1 << (7-4))
1343#define MPC5200_I2C_ICR_TE1 (1 << (7-5))
1344#define MPC5200_I2C_ICR_RE1 (1 << (7-6))
1345#define MPC5200_I2C_ICR_IE1 (1 << (7-7))
1346#define MPC5200_I2C_ICR_MASK1 (MPC5200_I2C_ICR_BNBE1|MPC5200_I2C_ICR_TE1\
1347 |MPC5200_I2C_ICR_RE1|MPC5200_I2C_ICR_IE1)
1348 volatile uint8_t res_21[3];
1349 volatile uint32_t res_24[7];
1351 volatile uint8_t res_3d80[0x280];
1356 volatile uint8_t sram_res0x4000[0x4000];
1357 volatile uint8_t sram[0x4000];
struct mpc5200_mscan mscan
MSCAN registers.
Definition: mscan-base.h:242
Definition: deflate.c:115
Definition: intercom.c:74
Definition: mpc5200.h:456
Definition: mpc5200.h:1308
Definition: mpc5200.h:508
Definition: mpc5200.h:976
Definition: mpc5200.h:490
Definition: mpc5200.h:387
Definition: mpc5200.h:264
Definition: mpc5200.h:343
Definition: mpc5200.h:241