|
RTEMS
5.1
|
39 #ifndef _DISCOVERY_DEV_GTREG_H_ 40 #define _DISCOVERY_DEV_GTREG_H_ 43 #define GT__BIT(bit) (1U << (bit)) 44 #define GT__MASK(bit) (GT__BIT(bit) - 1) 45 #define GT__EXT(data, bit, len) (((data) >> (bit)) & GT__MASK(len)) 46 #define GT__CLR(data, bit, len) ((data) &= ~(GT__MASK(len) << (bit))) 47 #define GT__INS(new, bit) ((new) << (bit)) 53 #define GT_SCS0_Low_Decode 0x0008 54 #define GT_SCS0_High_Decode 0x0010 55 #define GT_SCS1_Low_Decode 0x0208 56 #define GT_SCS1_High_Decode 0x0210 57 #define GT_SCS2_Low_Decode 0x0018 58 #define GT_SCS2_High_Decode 0x0020 59 #define GT_SCS3_Low_Decode 0x0218 60 #define GT_SCS3_High_Decode 0x0220 61 #define GT_CS0_Low_Decode 0x0028 62 #define GT_CS0_High_Decode 0x0030 63 #define GT_CS1_Low_Decode 0x0228 64 #define GT_CS1_High_Decode 0x0230 65 #define GT_CS2_Low_Decode 0x0248 66 #define GT_CS2_High_Decode 0x0250 67 #define GT_CS3_Low_Decode 0x0038 68 #define GT_CS3_High_Decode 0x0040 69 #define GT_BootCS_Low_Decode 0x0238 70 #define GT_BootCS_High_Decode 0x0240 71 #define GT_PCI0_IO_Low_Decode 0x0048 72 #define GT_PCI0_IO_High_Decode 0x0050 73 #define GT_PCI0_Mem0_Low_Decode 0x0058 74 #define GT_PCI0_Mem0_High_Decode 0x0060 75 #define GT_PCI0_Mem1_Low_Decode 0x0080 76 #define GT_PCI0_Mem1_High_Decode 0x0088 77 #define GT_PCI0_Mem2_Low_Decode 0x0258 78 #define GT_PCI0_Mem2_High_Decode 0x0260 79 #define GT_PCI0_Mem3_Low_Decode 0x0280 80 #define GT_PCI0_Mem3_High_Decode 0x0288 81 #define GT_PCI1_IO_Low_Decode 0x0090 82 #define GT_PCI1_IO_High_Decode 0x0098 83 #define GT_PCI1_Mem0_Low_Decode 0x00a0 84 #define GT_PCI1_Mem0_High_Decode 0x00a8 85 #define GT_PCI1_Mem1_Low_Decode 0x00b0 86 #define GT_PCI1_Mem1_High_Decode 0x00b8 87 #define GT_PCI1_Mem2_Low_Decode 0x02a0 88 #define GT_PCI1_Mem2_High_Decode 0x02a8 89 #define GT_PCI1_Mem3_Low_Decode 0x02b0 90 #define GT_PCI1_Mem3_High_Decode 0x02b8 91 #define GT_Internal_Decode 0x0068 92 #define GT_CPU0_Low_Decode 0x0290 93 #define GT_CPU0_High_Decode 0x0298 94 #define GT_CPU1_Low_Decode 0x02c0 95 #define GT_CPU1_High_Decode 0x02c8 99 #define GT_PCI0_IO_Remap 0x00f0 100 #define GT_PCI0_Mem0_Remap_Low 0x00f8 101 #define GT_PCI0_Mem0_Remap_High 0x0320 102 #define GT_PCI0_Mem1_Remap_Low 0x0100 103 #define GT_PCI0_Mem1_Remap_High 0x0328 104 #define GT_PCI0_Mem2_Remap_Low 0x02f8 105 #define GT_PCI0_Mem2_Remap_High 0x0330 106 #define GT_PCI0_Mem3_Remap_Low 0x0300 107 #define GT_PCI0_Mem3_Remap_High 0x0338 108 #define GT_PCI1_IO_Remap 0x0108 109 #define GT_PCI1_Mem0_Remap_Low 0x0110 110 #define GT_PCI1_Mem0_Remap_High 0x0340 111 #define GT_PCI1_Mem1_Remap_Low 0x0118 112 #define GT_PCI1_Mem1_Remap_High 0x0348 113 #define GT_PCI1_Mem2_Remap_Low 0x0310 114 #define GT_PCI1_Mem2_Remap_High 0x0350 115 #define GT_PCI1_Mem3_Remap_Low 0x0318 116 #define GT_PCI1_Mem3_Remap_High 0x0358 122 #define GT_CPU_Cfg 0x0000 123 #define GT_CPU_Mode 0x0120 124 #define GT_CPU_Master_Ctl 0x0160 125 #define GT_CPU_If_Xbar_Ctl_Low 0x0150 126 #define GT_CPU_If_Xbar_Ctl_High 0x0158 127 #define GT_CPU_If_Xbar_Timeout 0x0168 128 #define GT_260_CPU_Rd_Rsp_Xbar_Ctl_Low 0x0170 129 #define GT_260_CPU_Rd_Rsp_Xbar_Ctl_High 0x0178 134 #define GT_260_PCI_Sync_Barrier(bus) (0x00c0 | ((bus) << 3)) 135 #define GT_260_PCI0_Sync_Barrier 0x00c0 136 #define GT_260_PCI1_Sync_Barrier 0x00c8 141 #define GT_Protect_Low_0 0x0180 142 #define GT_Protect_High_0 0x0188 143 #define GT_Protect_Low_1 0x0190 144 #define GT_Protect_High_1 0x0198 145 #define GT_Protect_Low_2 0x01a0 146 #define GT_Protect_High_2 0x01a8 147 #define GT_Protect_Low_3 0x01b0 148 #define GT_Protect_High_3 0x01b8 149 #define GT_260_Protect_Low_4 0x01c0 150 #define GT_260_Protect_High_4 0x01c8 151 #define GT_260_Protect_Low_5 0x01d0 152 #define GT_260_Protect_High_5 0x01d8 153 #define GT_260_Protect_Low_6 0x01e0 154 #define GT_260_Protect_High_6 0x01e8 155 #define GT_260_Protect_Low_7 0x01f0 156 #define GT_260_Protect_High_7 0x01f8 161 #define GT_260_Snoop_Base_0 0x0380 162 #define GT_260_Snoop_Top_0 0x0388 163 #define GT_260_Snoop_Base_1 0x0390 164 #define GT_260_Snoop_Top_1 0x0398 165 #define GT_260_Snoop_Base_2 0x03a0 166 #define GT_260_Snoop_Top_2 0x03a8 167 #define GT_260_Snoop_Base_3 0x03b0 168 #define GT_260_Snoop_Top_3 0x03b8 173 #define GT_CPU_Error_Address_Low 0x0070 174 #define GT_CPU_Error_Address_High 0x0078 175 #define GT_CPU_Error_Data_Low 0x0128 176 #define GT_CPU_Error_Data_High 0x0130 177 #define GT_CPU_Error_Parity 0x0138 178 #define GT_CPU_Error_Cause 0x0140 179 #define GT_CPU_Error_Mask 0x0148 181 #define GT_DecodeAddr_SET(g, r, v) \ 183 gt_read((g), GT_Internal_Decode); \ 184 gt_write((g), (r), ((v) & 0xfff00000) >> 20); \ 185 while ((gt_read((g), (r)) & 0xfff) != ((v) >> 20)); \ 188 #define GT_LowAddr_GET(v) (GT__EXT((v), 0, 12) << 20) 189 #define GT_HighAddr_GET(v) ((GT__EXT((v), 0, 12) << 20) | 0xfffff) 191 #define GT_MPP_Control0 0xf000 192 #define GT_MPP_Control1 0xf004 193 #define GT_MPP_Control2 0xf008 194 #define GT_MPP_Control3 0xf00c 196 #define GT_GPP_IO_Control 0xf100 197 #define GT_GPP_Level_Control 0xf110 198 #define GT_GPP_Value 0xf104 199 #define GT_GPP_Interrupt_Cause 0xf108 200 #define GT_GPP_Interrupt_Mask 0xf10c 259 #define GT_PCISwap_GET(v) GT__EXT((v), 24, 3) 260 #define GT_PCISwap_ByteSwap 0 261 #define GT_PCISwap_NoSwap 1 262 #define GT_PCISwap_ByteWordSwap 2 263 #define GT_PCISwap_WordSwap 3 264 #define GT_PCI_LowDecode_PCIReq64 GT__BIT(27) 387 #define GT_CPUCfg_NoMatchCnt_GET(v) GT__EXT((v), 0, 8) 388 #define GT_CPUCfg_NoMatchCntEn GT__BIT( 9) 389 #define GT_CPUCfg_NoMatchCntExt GT__BIT(10) 390 #define GT_CPUCfg_AACKDelay GT__BIT(11) 391 #define GT_CPUCfg_Endianess GT__BIT(12) 392 #define GT_CPUCfg_Pipeline GT__BIT(13) 393 #define GT_CPUCfg_TADelay GT__BIT(15) 394 #define GT_CPUCfg_RdOOO GT__BIT(16) 395 #define GT_CPUCfg_StopRetry GT__BIT(17) 396 #define GT_CPUCfg_MultiGTDec GT__BIT(18) 397 #define GT_CPUCfg_DPValid GT__BIT(19) 398 #define GT_CPUCfg_PErrProp GT__BIT(22) 399 #define GT_CPUCfg_APValid GT__BIT(26) 400 #define GT_CPUCfg_RemapWrDis GT__BIT(27) 401 #define GT_CPUCfg_ConfSBDis GT__BIT(28) 402 #define GT_CPUCfg_IOSBDis GT__BIT(29) 403 #define GT_CPUCfg_ClkSync GT__BIT(30) 419 #define GT_CPUMode_MultiGTID_GET(v) GT__EXT(v, 0, 2) 420 #define GT_CPUMode_MultiGT GT__BIT(2) 421 #define GT_CPUMode_RetryEn GT__BIT(3) 422 #define GT_CPUMode_CPUType_GET(v) GT__EXT(v, 4, 4) 454 #define GT_CPUMstrCtl_IntArb GT__BIT(8) 455 #define GT_CPUMstrCtl_IntBusCtl GT__BIT(9) 456 #define GT_CPUMstrCtl_MWrTrig GT__BIT(10) 457 #define GT_CPUMstrCtl_MRdTrig GT__BIT(11) 458 #define GT_CPUMstrCtl_CleanBlock GT__BIT(12) 459 #define GT_CPUMstrCtl_FlushBlock GT__BIT(13) 461 #define GT_ArbSlice_SDRAM 0x0 462 #define GT_ArbSlice_DEVICE 0x1 463 #define GT_ArbSlice_NULL 0x2 464 #define GT_ArbSlice_PCI0 0x3 465 #define GT_ArbSlice_PCI1 0x4 466 #define GT_ArbSlice_COMM 0x5 467 #define GT_ArbSlice_IDMA0123 0x6 468 #define GT_ArbSlice_IDMA4567 0x7 473 #define GT_XbarCtl_GET_ArbSlice(v, n) GT__EXT((v), (((n) & 7)*4, 4) 561 #define GT_CPU_AccProtect GT__BIT(16) 562 #define GT_CPU_WrProtect GT__BIT(17) 563 #define GT_CPU_CacheProtect GT__BIT(18) 595 #define GT_Snoop_GET(v) GT__EXT((v), 16, 2) 596 #define GT_Snoop_INS(v) GT__INS((v), 16) 597 #define GT_Snoop_None 0 598 #define GT_Snoop_WT 1 599 #define GT_Snoop_WB 2 638 #define GT_CPUErrorAddrHigh_ErrPar_GET(v) GT__EXT((v), 4, 4) 661 #define GT_CPUErrorParity_PErrPar_GET(v) GT__EXT((v), 0, 8) 692 #define GT_CPUError_AddrOut GT__BIT(GT_CPUError_Sel_AddrOut) 693 #define GT_CPUError_AddrPErr GT__BIT(GT_CPUError_Sel_AddrPErr) 694 #define GT_CPUError_TTErr GT__BIT(GT_CPUError_Sel_TTErr) 695 #define GT_CPUError_AccErr GT__BIT(GT_CPUError_Sel_AccErr) 696 #define GT_CPUError_WrErr GT__BIT(GT_CPUError_Sel_WrPErr) 697 #define GT_CPUError_CacheErr GT__BIT(GT_CPUError_Sel_CachePErr) 698 #define GT_CPUError_WrDataPErr GT__BIT(GT_CPUError_Sel_WrDataPErr) 699 #define GT_CPUError_RdDataPErr GT__BIT(GT_CPUError_Sel_RdDataPErr) 701 #define GT_CPUError_Sel_AddrOut 0 702 #define GT_CPUError_Sel_AddrPErr 1 703 #define GT_CPUError_Sel_TTErr 2 704 #define GT_CPUError_Sel_AccErr 3 705 #define GT_CPUError_Sel_WrErr 4 706 #define GT_CPUError_Sel_CacheErr 5 707 #define GT_CPUError_Sel_WrDataPErr 6 708 #define GT_CPUError_Sel_RdDataPErr 7 710 #define GT_CPUError_Sel_GET(v) GT__EXT((v), 27, 5) 730 #define GT_CommUnitArb_Ctrl 0xf300 732 #define GT_CommUnitArb_Ctrl_GPP_Ints_Level_Sensitive (1<<10) 734 #define GT_CommUnitIntr_Cause 0xf310 735 #define GT_CommUnitIntr_Mask 0xf314 736 #define GT_CommUnitIntr_ErrAddr 0xf318 738 #define GT_CommUnitIntr_E0 0x00000007 739 #define GT_CommUnitIntr_E1 0x00000070 740 #define GT_CommUnitIntr_E2 0x00000700 741 #define GT_CommUnitIntr_S0 0x00070000 742 #define GT_CommUnitIntr_S1 0x00700000 743 #define GT_CommUnitIntr_Sel 0x70000000 748 #define GT_260_ECC_Data_Lo 0x484 749 #define GT_260_ECC_Data_Hi 0x480 750 #define GT_260_ECC_Addr 0x490 751 #define GT_260_ECC_Rec 0x488 752 #define GT_260_ECC_Calc 0x48c 753 #define GT_260_ECC_Ctl 0x494 754 #define GT_260_ECC_Count 0x498 758 #define GT_TIMER_0 0x0850 759 #define GT_TIMER_1 0x0854 760 #define GT_TIMER_2 0x0858 761 #define GT_TIMER_3 0x085c 763 #define GT_TIMER_0_3_Ctl 0x0864 765 #define GT_TIMER_0_Ctl_Enb 0x00000001 766 #define GT_TIMER_0_Ctl_Rld 0x00000002 767 #define GT_TIMER_1_Ctl_Enb 0x00000100 768 #define GT_TIMER_1_Ctl_Rld 0x00000200 769 #define GT_TIMER_2_Ctl_Enb 0x00010000 770 #define GT_TIMER_2_Ctl_Rld 0x00020000 771 #define GT_TIMER_3_Ctl_Enb 0x01000000 772 #define GT_TIMER_3_Ctl_Rld 0x02000000 774 #define GT_TIMER_0_3_Intr_Cse 0x0868 775 #define GT_TIMER_0_Intr 0x00000001 776 #define GT_TIMER_1_Intr 0x00000002 777 #define GT_TIMER_2_Intr 0x00000004 778 #define GT_TIMER_3_Intr 0x00000008 779 #define GT_TIMER_Intr_Smry 0x80000000 781 #define GT_TIMER_0_3_Intr_Msk 0x086c 786 #define GT_WDOG_Config 0xb410 787 #define GT_WDOG_Value 0xb414 788 #define GT_WDOG_Value_NMI GT__MASK(24) 789 #define GT_WDOG_Config_Preset GT__MASK(24) 790 #define GT_WDOG_Config_Ctl1a GT__BIT(24) 791 #define GT_WDOG_Config_Ctl1b GT__BIT(25) 792 #define GT_WDOG_Config_Ctl2a GT__BIT(26) 793 #define GT_WDOG_Config_Ctl2b GT__BIT(27) 794 #define GT_WDOG_Config_Enb GT__BIT(31) 796 #define GT_WDOG_NMI_DFLT (GT__MASK(24) & GT_WDOG_Value_NMI) 797 #define GT_WDOG_Preset_DFLT (GT__MASK(22) & GT_WDOG_Config_Preset) 802 #define GT_DEVBUS_ICAUSE 0x4d0 803 #define GT_DEVBUS_IMASK 0x4d4 804 #define GT_DEVBUS_ERR_ADDR 0x4d8 809 #define GT_DEVBUS_DBurstErr GT__BIT(0) 810 #define GT_DEVBUS_DRdyErr GT__BIT(1) 811 #define GT_DEVBUS_Sel GT__BIT(27) 812 #define GT_DEVBUS_RES ~(GT_DEVBUS_DBurstErr|GT_DEVBUS_DRdyErr|GT_DEVBUS_Sel) 830 #define MV_64360_BASE_ADDR_DISBL (0x278) 833 #define MV_64360_SRAM_BASE (0x268) 834 #define MV_64360_SRAM_CTRL (0x380) 836 #define MV_64360_SRAM_CacheWb GT__BIT(1) 844 #define MV_64360_SRAM_Ctl_Setup (0x001600b0) 846 #define MV_64360_SRAM_TEST_MODE (0x3f4) 847 #define MV_64340_SRAM_ERR_CAUSE (0x388) 848 #define MV_64340_SRAM_ERR_ADDR (0x390) 849 #define MV_64340_SRAM_ERR_ADDR_HI (0X3f8) 850 #define MV_64340_SRAM_ERR_DATA_LO (0x398) 851 #define MV_64340_SRAM_ERR_DATA_HI (0x3a0) 852 #define MV_64340_SRAM_ERR_DATA_PARITY (0x3a8)