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