60 #define _mtspr(_spr,_reg) __asm__ volatile ( "mtspr %0, %1\n" : : "i" ((_spr)), "r" ((_reg)) ) 61 #define _mfspr(_reg,_spr) __asm__ volatile ( "mfspr %0, %1\n" : "=r" ((_reg)) : "i" ((_spr)) ) 63 #define _isync __asm__ volatile ("isync\n"::) 70 #define M8xx_ICTRL 158 71 #define M8xx_TBL_WR 284 72 #define M8xx_TBU_WR 285 78 #define M8xx_IC_CST 560 79 #define M8xx_DC_CST 568 80 #define M8xx_IC_ADR 561 81 #define M8xx_DC_ADR 569 82 #define M8xx_IC_DAT 562 83 #define M8xx_DC_DAT 570 89 #define M8xx_MI_CTR 784 90 #define M8xx_MD_CTR 792 92 #define M8xx_MI_EPN 787 93 #define M8xx_MD_EPN 795 94 #define M8xx_MI_TWC 789 95 #define M8xx_MD_TWC 797 96 #define M8xx_MI_RPN 790 97 #define M8xx_MD_RPN 798 99 #define M8xx_M_TWB 796 101 #define M8xx_M_CASID 793 102 #define M8xx_MI_AP 786 103 #define M8xx_MD_AP 794 105 #define M8xx_M_TW 799 107 #define M8xx_MI_CAM 816 108 #define M8xx_MI_RAM0 817 109 #define M8xx_MI_RAM1 818 110 #define M8xx_MD_CAM 824 111 #define M8xx_MD_RAM0 825 112 #define M8xx_MD_RAM1 826 114 #define M8xx_MI_CTR_GPM (1<<31) 115 #define M8xx_MI_CTR_PPM (1<<30) 116 #define M8xx_MI_CTR_CIDEF (1<<29) 117 #define M8xx_MI_CTR_RSV4I (1<<27) 118 #define M8xx_MI_CTR_PPCS (1<<25) 119 #define M8xx_MI_CTR_ITLB_INDX(x) ((x)<<8) 121 #define M8xx_MD_CTR_GPM (1<<31) 122 #define M8xx_MD_CTR_PPM (1<<30) 123 #define M8xx_MD_CTR_CIDEF (1<<29) 124 #define M8xx_MD_CTR_WTDEF (1<<28) 125 #define M8xx_MD_CTR_RSV4D (1<<27) 126 #define M8xx_MD_CTR_TWAM (1<<26) 127 #define M8xx_MD_CTR_PPCS (1<<25) 128 #define M8xx_MD_CTR_DTLB_INDX(x) ((x)<<8) 130 #define M8xx_MI_EPN_VALID (1<<9) 132 #define M8xx_MD_EPN_VALID (1<<9) 134 #define M8xx_MI_TWC_G (1<<4) 135 #define M8xx_MI_TWC_PSS (0<<2) 136 #define M8xx_MI_TWC_PS512 (1<<2) 137 #define M8xx_MI_TWC_PS8 (3<<2) 138 #define M8xx_MI_TWC_VALID (1) 140 #define M8xx_MD_TWC_G (1<<4) 141 #define M8xx_MD_TWC_PSS (0<<2) 142 #define M8xx_MD_TWC_PS512 (1<<2) 143 #define M8xx_MD_TWC_PS8 (3<<2) 144 #define M8xx_MD_TWC_WT (1<<1) 145 #define M8xx_MD_TWC_VALID (1) 147 #define M8xx_MI_RPN_F (0xf<<4) 148 #define M8xx_MI_RPN_16K (1<<3) 149 #define M8xx_MI_RPN_SHARED (1<<2) 150 #define M8xx_MI_RPN_CI (1<<1) 151 #define M8xx_MI_RPN_VALID (1) 153 #define M8xx_MD_RPN_CHANGE (1<<8) 154 #define M8xx_MD_RPN_F (0xf<<4) 155 #define M8xx_MD_RPN_16K (1<<3) 156 #define M8xx_MD_RPN_SHARED (1<<2) 157 #define M8xx_MD_RPN_CI (1<<1) 158 #define M8xx_MD_RPN_VALID (1) 160 #define M8xx_MI_AP_Kp (1) 162 #define M8xx_MD_AP_Kp (1) 164 #define M8xx_CACHE_CMD_SFWT (0x1<<24) 165 #define M8xx_CACHE_CMD_ENABLE (0x2<<24) 166 #define M8xx_CACHE_CMD_CFWT (0x3<<24) 167 #define M8xx_CACHE_CMD_DISABLE (0x4<<24) 168 #define M8xx_CACHE_CMD_STLES (0x5<<24) 169 #define M8xx_CACHE_CMD_LLCB (0x6<<24) 170 #define M8xx_CACHE_CMD_CLES (0x7<<24) 171 #define M8xx_CACHE_CMD_UNLOCK (0x8<<24) 172 #define M8xx_CACHE_CMD_UNLOCKALL (0xa<<24) 173 #define M8xx_CACHE_CMD_INVALIDATE (0xc<<24) 174 #define M8xx_CACHE_CMD_FLUSH (0xe<<24) 229 uint32_t hash_table_high;
230 uint32_t hash_table_low;
231 uint32_t r_des_start;
232 uint32_t x_des_start;
239 uint32_t r_des_active;
240 uint32_t x_des_active;
260 #define M8xx_FEC_IEVENT_HBERR (1 << 31) 261 #define M8xx_FEC_IEVENT_BABR (1 << 30) 262 #define M8xx_FEC_IEVENT_BABT (1 << 29) 263 #define M8xx_FEC_IEVENT_GRA (1 << 28) 264 #define M8xx_FEC_IEVENT_TFINT (1 << 27) 265 #define M8xx_FEC_IEVENT_TXB (1 << 26) 266 #define M8xx_FEC_IEVENT_RFINT (1 << 25) 267 #define M8xx_FEC_IEVENT_RXB (1 << 24) 268 #define M8xx_FEC_IEVENT_MII (1 << 23) 269 #define M8xx_FEC_IEVENT_EBERR (1 << 22) 270 #define M8xx_FEC_IMASK_HBEEN (1 << 31) 271 #define M8xx_FEC_IMASK_BREEN (1 << 30) 272 #define M8xx_FEC_IMASK_BTEN (1 << 29) 273 #define M8xx_FEC_IMASK_GRAEN (1 << 28) 274 #define M8xx_FEC_IMASK_TFIEN (1 << 27) 275 #define M8xx_FEC_IMASK_TBIEN (1 << 26) 276 #define M8xx_FEC_IMASK_RFIEN (1 << 25) 277 #define M8xx_FEC_IMASK_RBIEN (1 << 24) 278 #define M8xx_FEC_IMASK_MIIEN (1 << 23) 279 #define M8xx_FEC_IMASK_EBERREN (1 << 22) 284 #define M8xx_FEC_MII_DATA_ST ( 1 << (31- 1)) 285 #define M8xx_FEC_MII_DATA_OP_RD ( 2 << (31- 3)) 286 #define M8xx_FEC_MII_DATA_OP_WR ( 1 << (31- 3)) 287 #define M8xx_FEC_MII_DATA_PHYAD(n) (((n) & 0x3f) << (31- 8)) 288 #define M8xx_FEC_MII_DATA_PHYRA(n) (((n) & 0x3f) << (31-13)) 289 #define M8xx_FEC_MII_DATA_TA ( 2 << (31-15)) 290 #define M8xx_FEC_MII_DATA_WDATA(n) ((n) & 0xffff ) 291 #define M8xx_FEC_MII_DATA_RDATA(reg) ((reg) & 0xffff ) 295 #define M8xx_FEC_ECNTRL_FEC_PINMUX ( 1 << (31-29)) 296 #define M8xx_FEC_ECNTRL_ETHER_EN ( 1 << (31-30)) 297 #define M8xx_FEC_ECNTRL_RESET ( 1 << (31-31)) 302 #define M8xx_FEC_R_CNTRL_BC_REJ ( 1 << (31-27)) 303 #define M8xx_FEC_R_CNTRL_PROM ( 1 << (31-28)) 304 #define M8xx_FEC_R_CNTRL_MII_MODE ( 1 << (31-29)) 305 #define M8xx_FEC_R_CNTRL_DRT ( 1 << (31-30)) 306 #define M8xx_FEC_R_CNTRL_LOOP ( 1 << (31-31)) 311 #define M8xx_FEC_X_CNTRL_FDEN ( 1 << (31-29)) 312 #define M8xx_FEC_X_CNTRL_HBC ( 1 << (31-30)) 313 #define M8xx_FEC_X_CNTRL_GTS ( 1 << (31-31)) 344 #define M8xx_RCCR_TIME (1<<15) 345 #define M8xx_RCCR_TIMEP(x) ((x)<<8) 346 #define M8xx_RCCR_DR1M (1<<7) 347 #define M8xx_RCCR_DR0M (1<<6) 348 #define M8xx_RCCR_DRQP(x) ((x)<<4) 349 #define M8xx_RCCR_EIE (1<<3) 350 #define M8xx_RCCR_SCD (1<<2) 351 #define M8xx_RCCR_ERAM(x) (x) 357 #define M8xx_TM_CMD_V (1<<31) 358 #define M8xx_TM_CMD_R (1<<30) 359 #define M8xx_TM_CMD_PWM (1<<29) 360 #define M8xx_TM_CMD_TIMER(x) ((x)<<16) 361 #define M8xx_TM_CMD_PERIOD(x) (x) 452 uint16_t character[8];
493 uint16_t character[8];
518 uint32_t _tbuf0data0;
519 uint32_t _tbuf0data1;
530 uint32_t _tbuf1data0;
531 uint32_t _tbuf1data1;
552 #define M8xx_RFCR_BO(x) ((x)<<3) 553 #define M8xx_RFCR_MOT (2<<3) 554 #define M8xx_RFCR_DMA_SPACE(x) (x) 555 #define M8xx_TFCR_BO(x) ((x)<<3) 556 #define M8xx_TFCR_MOT (2<<3) 557 #define M8xx_TFCR_DMA_SPACE(x) (x) 562 #define M8xx_SCCE_BRKE (1<<6) 563 #define M8xx_SCCE_BRK (1<<4) 564 #define M8xx_SCCE_BSY (1<<2) 565 #define M8xx_SCCE_TX (1<<1) 566 #define M8xx_SCCE_RX (1<<0) 607 #define M8xx_SMCMR_CLEN(x) ((x)<<11) 608 #define M8xx_SMCMR_2STOP (1<<10) 609 #define M8xx_SMCMR_PARITY (1<<9) 610 #define M8xx_SMCMR_EVEN (1<<8) 611 #define M8xx_SMCMR_SM_GCI (0<<4) 612 #define M8xx_SMCMR_SM_UART (2<<4) 613 #define M8xx_SMCMR_SM_TRANSPARENT (3<<4) 614 #define M8xx_SMCMR_DM_LOOPBACK (1<<2) 615 #define M8xx_SMCMR_DM_ECHO (2<<2) 616 #define M8xx_SMCMR_TEN (1<<1) 617 #define M8xx_SMCMR_REN (1<<0) 622 #define M8xx_SMCE_BRKE (1<<6) 623 #define M8xx_SMCE_BRK (1<<4) 624 #define M8xx_SMCE_BSY (1<<2) 625 #define M8xx_SMCE_TX (1<<1) 626 #define M8xx_SMCE_RX (1<<0) 654 #define M8xx_SPMODE_LOOP (1<<14) 655 #define M8xx_SPMODE_CI (1<<13) 656 #define M8xx_SPMODE_CP (1<<12) 657 #define M8xx_SPMODE_DIV16 (1<<11) 658 #define M8xx_SPMODE_REV (1<<10) 659 #define M8xx_SPMODE_MASTER (1<<9) 660 #define M8xx_SPMODE_EN (1<<8) 661 #define M8xx_SPMODE_CLEN(x) ((x)<<4) 662 #define M8xx_SPMODE_PM(x) (x) 667 #define M8xx_SPCOM_STR (1<<7) 672 #define M8xx_SPIE_MME (1<<5) 673 #define M8xx_SPIE_TXE (1<<4) 674 #define M8xx_SPIE_BSY (1<<2) 675 #define M8xx_SPIE_TXB (1<<1) 676 #define M8xx_SPIE_RXB (1<<0) 684 volatile uint16_t status;
692 #define M8xx_BD_EMPTY (1<<15) 693 #define M8xx_BD_WRAP (1<<13) 694 #define M8xx_BD_INTERRUPT (1<<12) 695 #define M8xx_BD_LAST (1<<11) 696 #define M8xx_BD_CONTROL_CHAR (1<<11) 697 #define M8xx_BD_FIRST_IN_FRAME (1<<10) 698 #define M8xx_BD_ADDRESS (1<<10) 699 #define M8xx_BD_CONTINUOUS (1<<9) 700 #define M8xx_BD_MISS (1<<8) 701 #define M8xx_BD_IDLE (1<<8) 702 #define M8xx_BD_ADDRSS_MATCH (1<<7) 703 #define M8xx_BD_LONG (1<<5) 704 #define M8xx_BD_BREAK (1<<5) 705 #define M8xx_BD_NONALIGNED (1<<4) 706 #define M8xx_BD_FRAMING_ERROR (1<<4) 707 #define M8xx_BD_SHORT (1<<3) 708 #define M8xx_BD_PARITY_ERROR (1<<3) 709 #define M8xx_BD_CRC_ERROR (1<<2) 710 #define M8xx_BD_OVERRUN (1<<1) 711 #define M8xx_BD_COLLISION (1<<0) 712 #define M8xx_BD_CARRIER_LOST (1<<0) 713 #define M8xx_BD_MASTER_ERROR (1<<0) 719 #define M8xx_BD_READY (1<<15) 720 #define M8xx_BD_PAD (1<<14) 721 #define M8xx_BD_CTS_REPORT (1<<11) 722 #define M8xx_BD_TX_CRC (1<<10) 723 #define M8xx_BD_DEFER (1<<9) 724 #define M8xx_BD_HEARTBEAT (1<<8) 725 #define M8xx_BD_PREAMBLE (1<<8) 726 #define M8xx_BD_LATE_COLLISION (1<<7) 727 #define M8xx_BD_NO_STOP_BIT (1<<7) 728 #define M8xx_BD_RETRY_LIMIT (1<<6) 729 #define M8xx_BD_RETRY_COUNT(x) (((x)&0x3C)>>2) 730 #define M8xx_BD_UNDERRUN (1<<1) 731 #define M8xx_BD_CARRIER_LOST (1<<0) 732 #define M8xx_BD_CTS_LOST (1<<0) 753 #define M8xx_CR_RST (1<<15) 754 #define M8xx_CR_OP_INIT_RX_TX (0<<8) 755 #define M8xx_CR_OP_INIT_RX (1<<8) 756 #define M8xx_CR_OP_INIT_TX (2<<8) 757 #define M8xx_CR_OP_INIT_HUNT (3<<8) 758 #define M8xx_CR_OP_STOP_TX (4<<8) 759 #define M8xx_CR_OP_GR_STOP_TX (5<<8) 760 #define M8xx_CR_OP_INIT_IDMA (5<<8) 761 #define M8xx_CR_OP_RESTART_TX (6<<8) 762 #define M8xx_CR_OP_CLOSE_RX_BD (7<<8) 763 #define M8xx_CR_OP_SET_GRP_ADDR (8<<8) 764 #define M8xx_CR_OP_SET_TIMER (8<<8) 765 #define M8xx_CR_OP_GCI_TIMEOUT (9<<8) 766 #define M8xx_CR_OP_RESERT_BCS (10<<8) 767 #define M8xx_CR_OP_GCI_ABORT (10<<8) 768 #define M8xx_CR_OP_STOP_IDMA (11<<8) 769 #define M8xx_CR_OP_START_DSP (12<<8) 770 #define M8xx_CR_OP_INIT_DSP (13<<8) 772 #define M8xx_CR_CHAN_SCC1 (0<<4) 773 #define M8xx_CR_CHAN_I2C (1<<4) 774 #define M8xx_CR_CHAN_IDMA1 (1<<4) 775 #define M8xx_CR_CHAN_SCC2 (4<<4) 776 #define M8xx_CR_CHAN_SPI (5<<4) 777 #define M8xx_CR_CHAN_IDMA2 (5<<4) 778 #define M8xx_CR_CHAN_TIMER (5<<4) 779 #define M8xx_CR_CHAN_SCC3 (8<<4) 780 #define M8xx_CR_CHAN_SMC1 (9<<4) 781 #define M8xx_CR_CHAN_DSP1 (9<<4) 782 #define M8xx_CR_CHAN_SCC4 (12<<4) 783 #define M8xx_CR_CHAN_SMC2 (13<<4) 784 #define M8xx_CR_CHAN_DSP2 (13<<4) 785 #define M8xx_CR_FLG (1<<0) 792 #define M8xx_SYPCR_SWTC(x) ((x)<<16) 793 #define M8xx_SYPCR_BMT(x) ((x)<<8) 794 #define M8xx_SYPCR_BME (1<<7) 795 #define M8xx_SYPCR_SWF (1<<3) 796 #define M8xx_SYPCR_SWE (1<<2) 797 #define M8xx_SYPCR_SWRI (1<<1) 798 #define M8xx_SYPCR_SWP (1<<0) 805 #define M8xx_PCMCIA_POR_BSIZE_1B (0x00 << (31-4)) 806 #define M8xx_PCMCIA_POR_BSIZE_2B (0x01 << (31-4)) 807 #define M8xx_PCMCIA_POR_BSIZE_4B (0x03 << (31-4)) 808 #define M8xx_PCMCIA_POR_BSIZE_8B (0x02 << (31-4)) 809 #define M8xx_PCMCIA_POR_BSIZE_16B (0x06 << (31-4)) 810 #define M8xx_PCMCIA_POR_BSIZE_32B (0x07 << (31-4)) 811 #define M8xx_PCMCIA_POR_BSIZE_64B (0x05 << (31-4)) 812 #define M8xx_PCMCIA_POR_BSIZE_128B (0x04 << (31-4)) 813 #define M8xx_PCMCIA_POR_BSIZE_256B (0x0C << (31-4)) 814 #define M8xx_PCMCIA_POR_BSIZE_512B (0x0D << (31-4)) 815 #define M8xx_PCMCIA_POR_BSIZE_1KB (0x0F << (31-4)) 816 #define M8xx_PCMCIA_POR_BSIZE_2KB (0x0E << (31-4)) 817 #define M8xx_PCMCIA_POR_BSIZE_4KB (0x0A << (31-4)) 818 #define M8xx_PCMCIA_POR_BSIZE_8KB (0x0B << (31-4)) 819 #define M8xx_PCMCIA_POR_BSIZE_16KB (0x09 << (31-4)) 820 #define M8xx_PCMCIA_POR_BSIZE_32KB (0x08 << (31-4)) 821 #define M8xx_PCMCIA_POR_BSIZE_64KB (0x18 << (31-4)) 822 #define M8xx_PCMCIA_POR_BSIZE_128KB (0x19 << (31-4)) 823 #define M8xx_PCMCIA_POR_BSIZE_256KB (0x1B << (31-4)) 824 #define M8xx_PCMCIA_POR_BSIZE_512KB (0x1A << (31-4)) 825 #define M8xx_PCMCIA_POR_BSIZE_1MB (0x1E << (31-4)) 826 #define M8xx_PCMCIA_POR_BSIZE_2MB (0x1F << (31-4)) 827 #define M8xx_PCMCIA_POR_BSIZE_4MB (0x1D << (31-4)) 828 #define M8xx_PCMCIA_POR_BSIZE_8MB (0x1C << (31-4)) 829 #define M8xx_PCMCIA_POR_BSIZE_16MB (0x14 << (31-4)) 830 #define M8xx_PCMCIA_POR_BSIZE_32MB (0x15 << (31-4)) 831 #define M8xx_PCMCIA_POR_BSIZE_64MB (0x17 << (31-4)) 833 #define M8xx_PCMCIA_POR_PSHT(x) (((x) & 0x0f) << (31-15)) 834 #define M8xx_PCMCIA_POR_PSST(x) (((x) & 0x0f) << (31-19)) 835 #define M8xx_PCMCIA_POR_PSL(x) (((x) & 0x1f) << (31-24)) 836 #define M8xx_PCMCIA_POR_PPS_8 ((0) << (31-19)) 837 #define M8xx_PCMCIA_POR_PPS_16 ((1) << (31-19)) 839 #define M8xx_PCMCIA_POR_PRS_MEM ((0) << (31-28)) 840 #define M8xx_PCMCIA_POR_PRS_ATT ((2) << (31-28)) 841 #define M8xx_PCMCIA_POR_PRS_IO ((3) << (31-28)) 842 #define M8xx_PCMCIA_POR_PRS_DMA ((4) << (31-28)) 843 #define M8xx_PCMCIA_POR_PRS_DML ((5) << (31-28)) 845 #define M8xx_PCMCIA_POR_PSLOT_A ((0) << (31-29)) 846 #define M8xx_PCMCIA_POR_PSLOT_B ((1) << (31-29)) 848 #define M8xx_PCMCIA_POR_WP ((1) << (31-30)) 849 #define M8xx_PCMCIA_POR_VALID ((1) << (31-31)) 851 #define M8xx_PCMCIA_PGCR_CIRQLVL(x) (((x) & 0xff) << (31- 7)) 852 #define M8xx_PCMCIA_PGCR_CSCHLVL(x) (((x) & 0xff) << (31-15)) 853 #define M8xx_PCMCIA_PGCR_CDRQ_OFF ((0) << (31-17)) 854 #define M8xx_PCMCIA_PGCR_CDRQ_IOIS16 ((2) << (31-17)) 855 #define M8xx_PCMCIA_PGCR_CDRQ_SPKR ((3) << (31-17)) 856 #define M8xx_PCMCIA_PGCR_COE ((1) << (31-24)) 857 #define M8xx_PCMCIA_PGCR_CRESET ((1) << (31-25)) 859 #define M8xx_PCMCIA_PIPR_CAVS1 ((1) << (31- 0)) 860 #define M8xx_PCMCIA_PIPR_CAVS2 ((1) << (31- 1)) 861 #define M8xx_PCMCIA_PIPR_CAWP ((1) << (31- 2)) 862 #define M8xx_PCMCIA_PIPR_CACD2 ((1) << (31- 3)) 863 #define M8xx_PCMCIA_PIPR_CACD1 ((1) << (31- 4)) 864 #define M8xx_PCMCIA_PIPR_CABVD2 ((1) << (31- 5)) 865 #define M8xx_PCMCIA_PIPR_CABVD1 ((1) << (31- 6)) 866 #define M8xx_PCMCIA_PIPR_CARDY ((1) << (31- 7)) 867 #define M8xx_PCMCIA_PIPR_CBVS1 ((1) << (31-16)) 868 #define M8xx_PCMCIA_PIPR_CBVS2 ((1) << (31-17)) 869 #define M8xx_PCMCIA_PIPR_CBWP ((1) << (31-18)) 870 #define M8xx_PCMCIA_PIPR_CBCD2 ((1) << (31-19)) 871 #define M8xx_PCMCIA_PIPR_CBCD1 ((1) << (31-20)) 872 #define M8xx_PCMCIA_PIPR_CBBVD2 ((1) << (31-21)) 873 #define M8xx_PCMCIA_PIPR_CBBVD1 ((1) << (31-22)) 874 #define M8xx_PCMCIA_PIPR_CBRDY ((1) << (31-23)) 877 #define M8xx_SYPCR_BMT(x) ((x)<<8) 878 #define M8xx_SYPCR_BME (1<<7) 879 #define M8xx_SYPCR_SWF (1<<3) 880 #define M8xx_SYPCR_SWE (1<<2) 881 #define M8xx_SYPCR_SWRI (1<<1) 882 #define M8xx_SYPCR_SWP (1<<0) 889 #define M8xx_UPM_AMX_8col (0<<20) 890 #define M8xx_UPM_AMX_9col (1<<20) 891 #define M8xx_UPM_AMX_10col (2<<20) 892 #define M8xx_UPM_AMX_11col (3<<20) 893 #define M8xx_UPM_AMX_12col (4<<20) 894 #define M8xx_UPM_AMX_13col (5<<20) 895 #define M8xx_MSR_PER(x) (0x100<<(7-x)) 896 #define M8xx_MSR_WPER (1<<7) 897 #define M8xx_MPTPR_PTP(x) ((x)<<8) 898 #define M8xx_BR_BA(x) ((x)&0xffff8000) 899 #define M8xx_BR_AT(x) ((x)<<12) 900 #define M8xx_BR_PS8 (1<<10) 901 #define M8xx_BR_PS16 (2<<10) 902 #define M8xx_BR_PS32 (0<<10) 903 #define M8xx_BR_PARE (1<<9) 904 #define M8xx_BR_WP (1<<8) 905 #define M8xx_BR_MS_GPCM (0<<6) 906 #define M8xx_BR_MS_UPMA (2<<6) 907 #define M8xx_BR_MS_UPMB (3<<6) 908 #define M8xx_MEMC_BR_V (1<<0) 910 #define M8xx_MEMC_OR_32K 0xffff8000 911 #define M8xx_MEMC_OR_64K 0xffff0000 912 #define M8xx_MEMC_OR_128K 0xfffe0000 913 #define M8xx_MEMC_OR_256K 0xfffc0000 914 #define M8xx_MEMC_OR_512K 0xfff80000 915 #define M8xx_MEMC_OR_1M 0xfff00000 916 #define M8xx_MEMC_OR_2M 0xffe00000 917 #define M8xx_MEMC_OR_4M 0xffc00000 918 #define M8xx_MEMC_OR_8M 0xff800000 919 #define M8xx_MEMC_OR_16M 0xff000000 920 #define M8xx_MEMC_OR_32M 0xfe000000 921 #define M8xx_MEMC_OR_64M 0xfc000000 922 #define M8xx_MEMC_OR_128 0xf8000000 923 #define M8xx_MEMC_OR_256M 0xf0000000 924 #define M8xx_MEMC_OR_512M 0xe0000000 925 #define M8xx_MEMC_OR_1G 0xc0000000 926 #define M8xx_MEMC_OR_2G 0x80000000 927 #define M8xx_MEMC_OR_4G 0x00000000 928 #define M8xx_MEMC_OR_ATM(x) ((x)<<12) 929 #define M8xx_MEMC_OR_CSNT (1<<11) 930 #define M8xx_MEMC_OR_SAM (1<<11) 931 #define M8xx_MEMC_OR_ACS_NORM (0<<9) 932 #define M8xx_MEMC_OR_ACS_QRTR (2<<9) 933 #define M8xx_MEMC_OR_ACS_HALF (3<<9) 934 #define M8xx_MEMC_OR_BI (1<<8) 935 #define M8xx_MEMC_OR_SCY(x) ((x)<<4) 936 #define M8xx_MEMC_OR_SETA (1<<3) 937 #define M8xx_MEMC_OR_TRLX (1<<2) 938 #define M8xx_MEMC_OR_EHTR (1<<1) 945 #define M8xx_MEMC_MMR_PTP(x) ((x)<<24) 946 #define M8xx_MEMC_MMR_PTE (1<<23) 947 #define M8xx_MEMC_MMR_DSP(x) ((x)<<17) 948 #define M8xx_MEMC_MMR_G0CL(x) ((x)<<13) 949 #define M8xx_MEMC_MMR_UPWAIT (1<<12) 950 #define M8xx_MEMC_MMR_RLF(x) ((x)<<8) 951 #define M8xx_MEMC_MMR_WLF(x) ((x)<<4) 952 #define M8xx_MEMC_MMR_TLF(x) ((x)<<0) 958 #define M8xx_MEMC_MCR_WRITE (0<<30) 959 #define M8xx_MEMC_MCR_READ (1<<30) 960 #define M8xx_MEMC_MCR_RUN (2<<30) 961 #define M8xx_MEMC_MCR_UPMA (0<<23) 962 #define M8xx_MEMC_MCR_UPMB (1<<23) 963 #define M8xx_MEMC_MCR_MB(x) ((x)<<13) 964 #define M8xx_MEMC_MCR_MCLF(x) ((x)<<8) 965 #define M8xx_MEMC_MCR_MAD(x) (x) 974 #define M8xx_SI_SMC2_BITS 0xFFFF0000 975 #define M8xx_SI_SMC2_TDM (1<<31) 976 #define M8xx_SI_SMC2_BRG1 (0<<28) 977 #define M8xx_SI_SMC2_BRG2 (1<<28) 978 #define M8xx_SI_SMC2_BRG3 (2<<28) 979 #define M8xx_SI_SMC2_BRG4 (3<<28) 980 #define M8xx_SI_SMC2_CLK5 (0<<28) 981 #define M8xx_SI_SMC2_CLK6 (1<<28) 982 #define M8xx_SI_SMC2_CLK7 (2<<28) 983 #define M8xx_SI_SMC2_CLK8 (3<<28) 984 #define M8xx_SI_SMC1_BITS 0x0000FFFF 985 #define M8xx_SI_SMC1_TDM (1<<15) 986 #define M8xx_SI_SMC1_BRG1 (0<<12) 987 #define M8xx_SI_SMC1_BRG2 (1<<12) 988 #define M8xx_SI_SMC1_BRG3 (2<<12) 989 #define M8xx_SI_SMC1_BRG4 (3<<12) 990 #define M8xx_SI_SMC1_CLK1 (0<<12) 991 #define M8xx_SI_SMC1_CLK2 (1<<12) 992 #define M8xx_SI_SMC1_CLK3 (2<<12) 993 #define M8xx_SI_SMC1_CLK4 (3<<12) 1000 #define M8xx_SDCR_FREEZE (2<<13) 1001 #define M8xx_SDCR_RAID_5 (1<<0) 1008 #define M8xx_SDSR_SBER (1<<7) 1009 #define M8xx_SDSR_DSP2 (1<<1) 1010 #define M8xx_SDSR_DSP1 (1<<0) 1017 #define M8xx_BRG_RST (1<<17) 1018 #define M8xx_BRG_EN (1<<16) 1019 #define M8xx_BRG_EXTC_BRGCLK (0<<14) 1020 #define M8xx_BRG_EXTC_CLK2 (1<<14) 1021 #define M8xx_BRG_EXTC_CLK6 (2<<14) 1022 #define M8xx_BRG_ATB (1<<13) 1023 #define M8xx_BRG_115200 (21<<1) 1024 #define M8xx_BRG_57600 (32<<1) 1025 #define M8xx_BRG_38400 (64<<1) 1026 #define M8xx_BRG_19200 (129<<1) 1027 #define M8xx_BRG_9600 (259<<1) 1028 #define M8xx_BRG_4800 (520<<1) 1029 #define M8xx_BRG_2400 (1040<<1) 1030 #define M8xx_BRG_1200 (2082<<1) 1031 #define M8xx_BRG_600 ((259<<1) | 1) 1032 #define M8xx_BRG_300 ((520<<1) | 1) 1033 #define M8xx_BRG_150 ((1040<<1) | 1) 1034 #define M8xx_BRG_75 ((2080<<1) | 1) 1036 #define M8xx_TGCR_CAS4 (1<<15) 1037 #define M8xx_TGCR_CAS2 (1<<7) 1038 #define M8xx_TGCR_FRZ1 (1<<2) 1039 #define M8xx_TGCR_FRZ2 (1<<6) 1040 #define M8xx_TGCR_FRZ3 (1<<10) 1041 #define M8xx_TGCR_FRZ4 (1<<14) 1042 #define M8xx_TGCR_STP1 (1<<1) 1043 #define M8xx_TGCR_STP2 (1<<5) 1044 #define M8xx_TGCR_STP3 (1<<9) 1045 #define M8xx_TGCR_STP4 (1<<13) 1046 #define M8xx_TGCR_RST1 (1<<0) 1047 #define M8xx_TGCR_RST2 (1<<4) 1048 #define M8xx_TGCR_RST3 (1<<8) 1049 #define M8xx_TGCR_RST4 (1<<12) 1050 #define M8xx_TGCR_GM1 (1<<3) 1051 #define M8xx_TGCR_GM2 (1<<11) 1053 #define M8xx_TMR_PS(x) ((x)<<8) 1054 #define M8xx_TMR_CE_RISE (1<<6) 1055 #define M8xx_TMR_CE_FALL (2<<6) 1056 #define M8xx_TMR_CE_ANY (3<<6) 1057 #define M8xx_TMR_OM_TOGGLE (1<<5) 1058 #define M8xx_TMR_ORI (1<<4) 1059 #define M8xx_TMR_RESTART (1<<3) 1060 #define M8xx_TMR_ICLK_INT (1<<1) 1061 #define M8xx_TMR_ICLK_INT16 (2<<1) 1062 #define M8xx_TMR_ICLK_TIN (3<<1) 1063 #define M8xx_TMR_TGATE (1<<0) 1065 #define M8xx_PISCR_PIRQ(x) (1<<(15-x)) 1066 #define M8xx_PISCR_PS (1<<7) 1067 #define M8xx_PISCR_PIE (1<<2) 1068 #define M8xx_PISCR_PITF (1<<1) 1069 #define M8xx_PISCR_PTE (1<<0) 1071 #define M8xx_TBSCR_TBIRQ(x) (1<<(15-x)) 1072 #define M8xx_TBSCR_REFA (1<<7) 1073 #define M8xx_TBSCR_REFB (1<<6) 1074 #define M8xx_TBSCR_REFAE (1<<3) 1075 #define M8xx_TBSCR_REFBE (1<<2) 1076 #define M8xx_TBSCR_TBF (1<<1) 1077 #define M8xx_TBSCR_TBE (1<<0) 1079 #define M8xx_SIMASK_IRM0 (1<<31) 1080 #define M8xx_SIMASK_LVM0 (1<<30) 1081 #define M8xx_SIMASK_IRM1 (1<<29) 1082 #define M8xx_SIMASK_LVM1 (1<<28) 1083 #define M8xx_SIMASK_IRM2 (1<<27) 1084 #define M8xx_SIMASK_LVM2 (1<<26) 1085 #define M8xx_SIMASK_IRM3 (1<<25) 1086 #define M8xx_SIMASK_LVM3 (1<<24) 1087 #define M8xx_SIMASK_IRM4 (1<<23) 1088 #define M8xx_SIMASK_LVM4 (1<<22) 1089 #define M8xx_SIMASK_IRM5 (1<<21) 1090 #define M8xx_SIMASK_LVM5 (1<<20) 1091 #define M8xx_SIMASK_IRM6 (1<<19) 1092 #define M8xx_SIMASK_LVM6 (1<<18) 1093 #define M8xx_SIMASK_IRM7 (1<<17) 1094 #define M8xx_SIMASK_LVM7 (1<<16) 1096 #define M8xx_SIUMCR_EARB (1<<31) 1097 #define M8xx_SIUMCR_EARP0 (0<<28) 1098 #define M8xx_SIUMCR_EARP1 (1<<28) 1099 #define M8xx_SIUMCR_EARP2 (2<<28) 1100 #define M8xx_SIUMCR_EARP3 (3<<28) 1101 #define M8xx_SIUMCR_EARP4 (4<<28) 1102 #define M8xx_SIUMCR_EARP5 (5<<28) 1103 #define M8xx_SIUMCR_EARP6 (6<<28) 1104 #define M8xx_SIUMCR_EARP7 (7<<28) 1105 #define M8xx_SIUMCR_DSHW (1<<23) 1106 #define M8xx_SIUMCR_DBGC0 (0<<21) 1107 #define M8xx_SIUMCR_DBGC1 (1<<21) 1108 #define M8xx_SIUMCR_DBGC2 (2<<21) 1109 #define M8xx_SIUMCR_DBGC3 (3<<21) 1110 #define M8xx_SIUMCR_DBPC0 (0<<19) 1111 #define M8xx_SIUMCR_DBPC1 (1<<19) 1112 #define M8xx_SIUMCR_DBPC2 (2<<19) 1113 #define M8xx_SIUMCR_DBPC3 (3<<19) 1114 #define M8xx_SIUMCR_FRC (1<<17) 1115 #define M8xx_SIUMCR_DLK (1<<16) 1116 #define M8xx_SIUMCR_PNCS (1<<15) 1117 #define M8xx_SIUMCR_OPAR (1<<14) 1118 #define M8xx_SIUMCR_DPC (1<<13) 1119 #define M8xx_SIUMCR_MPRE (1<<12) 1120 #define M8xx_SIUMCR_MLRC0 (0<<10) 1121 #define M8xx_SIUMCR_MLRC1 (1<<10) 1122 #define M8xx_SIUMCR_MLRC2 (2<<10) 1123 #define M8xx_SIUMCR_MLRC3 (3<<10) 1124 #define M8xx_SIUMCR_AEME (1<<9) 1125 #define M8xx_SIUMCR_SEME (1<<8) 1126 #define M8xx_SIUMCR_BSC (1<<7) 1127 #define M8xx_SIUMCR_GB5E (1<<6) 1128 #define M8xx_SIUMCR_B2DD (1<<5) 1129 #define M8xx_SIUMCR_B3DD (1<<4) 1134 #define M8xx_UNLOCK_KEY 0x55CCAA33 1150 #elif defined(mpc821) 1162 uint8_t _pad2[0x80-0x34];
1183 uint8_t _pad3[0xe0-0xc0];
1197 uint8_t _pad7[0x164-0x140];
1206 uint8_t _pad9[0x200-0x180];
1215 uint8_t _pad11[0x220-0x20c];
1228 uint8_t _pad15[0x280-0x24c];
1237 uint8_t _pad16[0x300-0x28c];
1255 uint8_t _pad19[0x380-0x348];
1263 uint8_t _pad20[0x400-0x38c];
1264 uint8_t _pad21[0x800-0x400];
1265 uint8_t _pad22[0x860-0x800];
1282 uint8_t _pad28[0x900-0x875];
1300 uint8_t _pad35[0x930-0x91d];
1376 uint8_t _pad48[0x9f0-0x9dc];
1394 #elif defined(mpc821) 1395 uint8_t _pad72[0xa80-0xa40];
1442 uint8_t _pad60[0xc00-0xb00];
1449 #elif defined(mpc821) 1450 uint8_t lcdram[512];
1452 uint8_t _pad62[0x2000-0x1000];
1457 uint8_t dpram0[0x200];
1458 uint8_t dpram1[0x200];
1459 uint8_t dpram2[0x400];
1460 uint8_t dpram3[0x600];
1461 uint8_t dpram4[0x200];
1462 uint8_t _pad63[0x3c00-0x3000];
1507 extern volatile m8xx_t m8xx;
Definition: 8xx_immap.h:340
Definition: mpc8xx.h:1141