Go to the documentation of this file.
9 #ifndef __ASM_TXX9_TX4927PCIC_H
10 #define __ASM_TXX9_TX4927PCIC_H
12 #include <linux/pci.h>
87 #define TX4927_PCIC_G2PSTATUS_ALL 0x00000003
88 #define TX4927_PCIC_G2PSTATUS_TTOE 0x00000002
89 #define TX4927_PCIC_G2PSTATUS_RTOE 0x00000001
92 #define TX4927_PCIC_PCISTATUS_ALL 0x0000f900
95 #define TX4927_PCIC_PBACFG_FIXPA 0x00000008
96 #define TX4927_PCIC_PBACFG_RPBA 0x00000004
97 #define TX4927_PCIC_PBACFG_PBAEN 0x00000002
98 #define TX4927_PCIC_PBACFG_BMCEN 0x00000001
101 #define TX4927_PCIC_PBASTATUS_ALL 0x00000001
102 #define TX4927_PCIC_PBASTATUS_BM 0x00000001
105 #define TX4927_PCIC_G2PMnGBASE_BSDIS 0x0000002000000000ULL
106 #define TX4927_PCIC_G2PMnGBASE_ECHG 0x0000001000000000ULL
109 #define TX4927_PCIC_G2PIOGBASE_BSDIS 0x0000002000000000ULL
110 #define TX4927_PCIC_G2PIOGBASE_ECHG 0x0000001000000000ULL
113 #define TX4927_PCIC_PCICSTATUS_ALL 0x000007b8
114 #define TX4927_PCIC_PCICSTATUS_PME 0x00000400
115 #define TX4927_PCIC_PCICSTATUS_TLB 0x00000200
116 #define TX4927_PCIC_PCICSTATUS_NIB 0x00000100
117 #define TX4927_PCIC_PCICSTATUS_ZIB 0x00000080
118 #define TX4927_PCIC_PCICSTATUS_PERR 0x00000020
119 #define TX4927_PCIC_PCICSTATUS_SERR 0x00000010
120 #define TX4927_PCIC_PCICSTATUS_GBE 0x00000008
121 #define TX4927_PCIC_PCICSTATUS_IWB 0x00000002
122 #define TX4927_PCIC_PCICSTATUS_E2PDONE 0x00000001
125 #define TX4927_PCIC_PCICCFG_GBWC_MASK 0x0fff0000
126 #define TX4927_PCIC_PCICCFG_HRST 0x00000800
127 #define TX4927_PCIC_PCICCFG_SRST 0x00000400
128 #define TX4927_PCIC_PCICCFG_IRBER 0x00000200
129 #define TX4927_PCIC_PCICCFG_G2PMEN(ch) (0x00000100>>(ch))
130 #define TX4927_PCIC_PCICCFG_G2PM0EN 0x00000100
131 #define TX4927_PCIC_PCICCFG_G2PM1EN 0x00000080
132 #define TX4927_PCIC_PCICCFG_G2PM2EN 0x00000040
133 #define TX4927_PCIC_PCICCFG_G2PIOEN 0x00000020
134 #define TX4927_PCIC_PCICCFG_TCAR 0x00000010
135 #define TX4927_PCIC_PCICCFG_ICAEN 0x00000008
138 #define TX4927_PCIC_P2GMnGBASE_TMEMEN 0x0000004000000000ULL
139 #define TX4927_PCIC_P2GMnGBASE_TBSDIS 0x0000002000000000ULL
140 #define TX4927_PCIC_P2GMnGBASE_TECHG 0x0000001000000000ULL
143 #define TX4927_PCIC_P2GIOGBASE_TIOEN 0x0000004000000000ULL
144 #define TX4927_PCIC_P2GIOGBASE_TBSDIS 0x0000002000000000ULL
145 #define TX4927_PCIC_P2GIOGBASE_TECHG 0x0000001000000000ULL
147 #define TX4927_PCIC_IDSEL_AD_TO_SLOT(ad) ((ad) - 11)
148 #define TX4927_PCIC_MAX_DEVNU TX4927_PCIC_IDSEL_AD_TO_SLOT(32)
151 #define TX4927_PCIC_PDMCFG_RSTFIFO 0x00200000
152 #define TX4927_PCIC_PDMCFG_EXFER 0x00100000
153 #define TX4927_PCIC_PDMCFG_REQDLY_MASK 0x00003800
154 #define TX4927_PCIC_PDMCFG_REQDLY_NONE (0 << 11)
155 #define TX4927_PCIC_PDMCFG_REQDLY_16 (1 << 11)
156 #define TX4927_PCIC_PDMCFG_REQDLY_32 (2 << 11)
157 #define TX4927_PCIC_PDMCFG_REQDLY_64 (3 << 11)
158 #define TX4927_PCIC_PDMCFG_REQDLY_128 (4 << 11)
159 #define TX4927_PCIC_PDMCFG_REQDLY_256 (5 << 11)
160 #define TX4927_PCIC_PDMCFG_REQDLY_512 (6 << 11)
161 #define TX4927_PCIC_PDMCFG_REQDLY_1024 (7 << 11)
162 #define TX4927_PCIC_PDMCFG_ERRIE 0x00000400
163 #define TX4927_PCIC_PDMCFG_NCCMPIE 0x00000200
164 #define TX4927_PCIC_PDMCFG_NTCMPIE 0x00000100
165 #define TX4927_PCIC_PDMCFG_CHNEN 0x00000080
166 #define TX4927_PCIC_PDMCFG_XFRACT 0x00000040
167 #define TX4927_PCIC_PDMCFG_BSWAP 0x00000020
168 #define TX4927_PCIC_PDMCFG_XFRSIZE_MASK 0x0000000c
169 #define TX4927_PCIC_PDMCFG_XFRSIZE_1DW 0x00000000
170 #define TX4927_PCIC_PDMCFG_XFRSIZE_1QW 0x00000004
171 #define TX4927_PCIC_PDMCFG_XFRSIZE_4QW 0x00000008
172 #define TX4927_PCIC_PDMCFG_XFRDIRC 0x00000002
173 #define TX4927_PCIC_PDMCFG_CHRST 0x00000001
176 #define TX4927_PCIC_PDMSTS_REQCNT_MASK 0x3f000000
177 #define TX4927_PCIC_PDMSTS_FIFOCNT_MASK 0x00f00000
178 #define TX4927_PCIC_PDMSTS_FIFOWP_MASK 0x000c0000
179 #define TX4927_PCIC_PDMSTS_FIFORP_MASK 0x00030000
180 #define TX4927_PCIC_PDMSTS_ERRINT 0x00000800
181 #define TX4927_PCIC_PDMSTS_DONEINT 0x00000400
182 #define TX4927_PCIC_PDMSTS_CHNEN 0x00000200
183 #define TX4927_PCIC_PDMSTS_XFRACT 0x00000100
184 #define TX4927_PCIC_PDMSTS_ACCMP 0x00000080
185 #define TX4927_PCIC_PDMSTS_NCCMP 0x00000040
186 #define TX4927_PCIC_PDMSTS_NTCMP 0x00000020
187 #define TX4927_PCIC_PDMSTS_CFGERR 0x00000008
188 #define TX4927_PCIC_PDMSTS_PCIERR 0x00000004
189 #define TX4927_PCIC_PDMSTS_CHNERR 0x00000002
190 #define TX4927_PCIC_PDMSTS_DATAERR 0x00000001
191 #define TX4927_PCIC_PDMSTS_ALL_CMP 0x000000e0
192 #define TX4927_PCIC_PDMSTS_ALL_ERR 0x0000000f