|
RTEMS 6.1-rc2
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
38#define TX4938_REG_BASE 0xFF1F0000
41#define TX4938_PCI1_PCIID 0x7000
42#define TX4938_PCI1_PCISTATUS 0x7004
43#define TX4938_PCI1_PCICFG1 0x700c
44#define TX4938_PCI1_P2GM1PLBASE 0x7018
45#define TX4938_PCI1_P2GCFG 0x7090
46#define TX4938_PCI1_PBAREQPORT 0x7100
47#define TX4938_PCI1_PBACFG 0x7104
48#define TX4938_PCI1_G2PM0GBASE 0x7120
49#define TX4938_PCI1_G2PIOGBASE 0x7138
50#define TX4938_PCI1_G2PM0MASK 0x7140
51#define TX4938_PCI1_G2PIOMASK 0x714c
52#define TX4938_PCI1_G2PM0PBASE 0x7150
53#define TX4938_PCI1_G2PIOPBASE 0x7168
54#define TX4938_PCI1_PCICCFG 0x7170
55#define TX4938_PCI1_PCICSTATUS 0x7174
56#define TX4938_PCI1_P2GM1GBASE 0x7188
57#define TX4938_PCI1_G2PCFGADRS 0x71a0
58#define TX4938_PCI1_G2PCFGDATA 0x71a4
63#define TX4938_CFG_CCFG 0xE000
64#define TX4938_CFG_REVID 0xE008
65#define TX4938_CFG_PCFG 0xE010
66#define TX4938_CFG_TOEA 0xE018
67#define TX4938_CFG_CLKCTR 0xE020
68#define TX4938_CFG_GARBC 0xE030
69#define TX4938_CFG_RAMP 0xE048
72#define SELCHI 0x00100000
73#define SELTMR0 0x00000200
80#define TX4938_TIMER0_BASE 0xF000
81#define TX4938_TIMER1_BASE 0xF100
82#define TX4938_TIMER2_BASE 0xF200
84#define TX4938_TIMER_TCR 0x00
85#define TX4938_TIMER_TISR 0x04
86#define TX4938_TIMER_CPRA 0x08
87#define TX4938_TIMER_CPRB 0x0C
88#define TX4938_TIMER_ITMR 0x10
89#define TX4938_TIMER_CCDR 0x20
90#define TX4938_TIMER_PGMR 0x30
91#define TX4938_TIMER_WTMR 0x40
92#define TX4938_TIMER_TRR 0xF0
95#define TIMER_CLEAR_ENABLE_MASK 0x1
96#define TIMER_INT_ENABLE_MASK 0x8000
113#define TX4938_IRQCTL_DEN 0xF600
114#define TX4938_IRQCTL_DM0 0xF604
115#define TX4938_IRQCTL_DM1 0xF608
116#define TX4938_IRQCTL_LVL0 0xF610
117#define TX4938_IRQCTL_LVL1 0xF614
118#define TX4938_IRQCTL_LVL2 0xF618
119#define TX4938_IRQCTL_LVL3 0xF61C
120#define TX4938_IRQCTL_LVL4 0xF620
121#define TX4938_IRQCTL_LVL5 0xF624
122#define TX4938_IRQCTL_LVL6 0xF628
123#define TX4938_IRQCTL_LVL7 0xF62C
124#define TX4938_IRQCTL_MSK 0xF640
125#define TX4938_IRQCTL_EDC 0xF660
126#define TX4938_IRQCTL_PND 0xF680
127#define TX4938_IRQCTL_CS 0xF6A0
128#define TX4938_IRQCTL_FLAG0 0xF510
129#define TX4938_IRQCTL_FLAG1 0xF514
130#define TX4938_IRQCTL_POL 0xF518
131#define TX4938_IRQCTL_RCNT 0xF51C
132#define TX4938_IRQCTL_MASKINT 0xF520
133#define TX4938_IRQCTL_MASKEXT 0xF524
135#define TX4938_REG_READ( _base, _register ) \
136 *((volatile uint32_t *)((_base) + (_register)))
138#define TX4938_REG_WRITE( _base, _register, _value ) \
139 *((volatile uint32_t *)((_base) + (_register))) = (_value)
146#define TX4938_CCFG_SYSSP_SHF 6
147#define TX4938_CCFG_SYSSP_MSK (MSK(2) << TX4938_CCFG_SYSSP_SHF)
150#define TX4938_CCFG_PCI1DMD_SHF 8
151#define TX4938_CCFG_PCI1DMD_MSK (MSK(1) << TX4938_CCFG_PCI1DMD_SHF)
154#define TX4938_CCFG_PCIDIVMODE_SHF 10
155#define TX4938_CCFG_PCIDIVMODE_MSK (MSK(3) << TX4938_CCFG_PCIDIVMODE_SHF)
158#define TX4938_CCFG_PCI166_SHF 21
159#define TX4938_CCFG_PCI166_MSK ((UINT64)MSK(1) << TX4938_CCFG_PCI166_SHF)
162#define TX4938_CCFG_PCIMODE_SHF 22
163#define TX4938_CCFG_PCIMODE_MSK ((UINT64)MSK(1) << TX4938_CCFG_PCIMODE_SHF)
166#define TX4938_CCFG_BRDTY_SHF 36
167#define TX4938_CCFG_RRDTY_MSK ((UINT64)MSK(4) << TX4938_CCFG_BRDTY_SHF)
170#define TX4938_CCFG_BRDRV_SHF 32
171#define TX4938_CCFG_BRDRV_MSK ((UINT64)MSK(4) << TX4938_CCFG_BRDRV_SHF)
175#define TX4938_CLKCTR_PCIC1RST_SHF 11
176#define TX4938_CLKCTR_PCIC1RST_MSK (MSK(1) << TX4938_CLKCTR_PCIC1RST_SHF)
180#define TX4938_PCI_PCISTATUS_MEMSP_SHF 1
181#define TX4938_PCI_PCISTATUS_MEMSP_MSK (MSK(1) << TX4938_PCI_PCISTATUS_MEMSP_SHF)
184#define TX4938_PCI_PCISTATUS_BM_SHF 2
185#define TX4938_PCI_PCISTATUS_BM_MSK (MSK(1) << TX4938_PCI_PCISTATUS_BM_SHF)
189#define TX4938_PCI_PBACFG_RPBA_SHF 2
190#define TX4938_PCI_PBACFG_RPBA_MSK (MSK(1) << TX4938_PCI_PBACFG_RPBA_SHF)
193#define TX4938_PCI_PBACFG_PBAEN_SHF 1
194#define TX4938_PCI_PBACFG_PBAEN_MSK (MSK(1) << TX4938_PCI_PBACFG_PBAEN_SHF)
198#define TX4938_PCI_PCICFG_G2PM0EN_SHF 6
199#define TX4938_PCI_PCICFG_G2PM0EN_MSK (MSK(1) << TX4938_PCI_PCICFG_G2PM0EN_SHF)
202#define TX4938_PCI_PCICFG_G2PIOEN_SHF 5
203#define TX4938_PCI_PCICFG_G2PIOEN_MSK (MSK(1) << TX4938_PCI_PCICFG_G2PIOEN_SHF)
206#define TX4938_PCI_PCICFG_TCAR_SHF 4
207#define TX4938_PCI_PCICFG_TCAR_MSK (MSK(1) << TX4938_PCI_PCICFG_TCAR_SHF)