Go to the documentation of this file. 1 #ifndef _ASM_IA64_SN_TIO_TIOCA_H
2 #define _ASM_IA64_SN_TIO_TIOCA_H
13 #define TIOCA_PART_NUM 0xE020
14 #define TIOCA_MFGR_NUM 0x24
15 #define TIOCA_REV_A 0x1
81 #define CA_SYS_BIG_END (1ull << 0)
82 #define CA_DMA_AGP_SWAP (1ull << 1)
83 #define CA_DMA_PCI_SWAP (1ull << 2)
84 #define CA_PIO_IO_SWAP (1ull << 3)
85 #define CA_PIO_MEM_SWAP (1ull << 4)
86 #define CA_GFX_WR_SWAP (1ull << 5)
87 #define CA_AGP_FW_ENABLE (1ull << 6)
88 #define CA_AGP_CAL_CYCLE (0x7ull << 7)
89 #define CA_AGP_CAL_CYCLE_SHFT 7
90 #define CA_AGP_CAL_PRSCL_BYP (1ull << 10)
91 #define CA_AGP_INIT_CAL_ENB (1ull << 11)
92 #define CA_INJ_ADDR_PERR (1ull << 12)
93 #define CA_INJ_DATA_PERR (1ull << 13)
95 #define CA_PCIM_IO_NBE_AD (0x7ull << 16)
96 #define CA_PCIM_IO_NBE_AD_SHFT 16
97 #define CA_PCIM_FAST_BTB_ENB (1ull << 19)
99 #define CA_PIO_ADDR_OFFSET (0xffull << 24)
100 #define CA_PIO_ADDR_OFFSET_SHFT 24
102 #define CA_AGPDMA_OP_COMBDELAY (0x1full << 36)
103 #define CA_AGPDMA_OP_COMBDELAY_SHFT 36
105 #define CA_AGPDMA_OP_ENB_COMBDELAY (1ull << 42)
106 #define CA_PCI_INT_LPCNT (0xffull << 44)
107 #define CA_PCI_INT_LPCNT_SHFT 44
111 #define CA_AGP_LATENCY_TO (0xffull << 0)
112 #define CA_AGP_LATENCY_TO_SHFT 0
113 #define CA_PCI_LATENCY_TO (0xffull << 8)
114 #define CA_PCI_LATENCY_TO_SHFT 8
115 #define CA_PCI_MAX_RETRY (0x3ffull << 16)
116 #define CA_PCI_MAX_RETRY_SHFT 16
118 #define CA_RT_INT_EN (0x3ull << 28)
119 #define CA_RT_INT_EN_SHFT 28
120 #define CA_MSI_INT_ENB (1ull << 30)
121 #define CA_PCI_ARB_ERR_ENB (1ull << 31)
122 #define CA_GART_MEM_PARAM (0x3ull << 32)
123 #define CA_GART_MEM_PARAM_SHFT 32
124 #define CA_GART_RD_PREFETCH_ENB (1ull << 34)
125 #define CA_GART_WR_PREFETCH_ENB (1ull << 35)
126 #define CA_GART_FLUSH_TLB (1ull << 36)
128 #define CA_CRM_TNUMTO_PERIOD (0x1fffull << 40)
129 #define CA_CRM_TNUMTO_PERIOD_SHFT 40
131 #define CA_CRM_TNUMTO_ENB (1ull << 56)
132 #define CA_CRM_PRESCALER_BYP (1ull << 57)
134 #define CA_CRM_MAX_CREDIT (0x7ull << 60)
135 #define CA_CRM_MAX_CREDIT_SHFT 60
139 #define CA_CORELET_ID (0x3ull << 0)
140 #define CA_CORELET_ID_SHFT 0
141 #define CA_INTA_N (1ull << 2)
142 #define CA_INTB_N (1ull << 3)
143 #define CA_CRM_CREDIT_AVAIL (0x7ull << 4)
144 #define CA_CRM_CREDIT_AVAIL_SHFT 4
146 #define CA_CRM_SPACE_AVAIL (0x7full << 8)
147 #define CA_CRM_SPACE_AVAIL_SHFT 8
149 #define CA_GART_TLB_VAL (0xffull << 16)
150 #define CA_GART_TLB_VAL_SHFT 16
154 #define CA_GFX_CREDIT_AVAIL (0xffull << 0)
155 #define CA_GFX_CREDIT_AVAIL_SHFT 0
156 #define CA_GFX_OPQ_AVAIL (0xffull << 8)
157 #define CA_GFX_OPQ_AVAIL_SHFT 8
158 #define CA_GFX_WRBUFF_AVAIL (0xffull << 16)
159 #define CA_GFX_WRBUFF_AVAIL_SHFT 16
160 #define CA_ADMA_OPQ_AVAIL (0xffull << 24)
161 #define CA_ADMA_OPQ_AVAIL_SHFT 24
162 #define CA_ADMA_WRBUFF_AVAIL (0xffull << 32)
163 #define CA_ADMA_WRBUFF_AVAIL_SHFT 32
164 #define CA_ADMA_RDBUFF_AVAIL (0x7full << 40)
165 #define CA_ADMA_RDBUFF_AVAIL_SHFT 40
166 #define CA_PCI_PIO_OP_STAT (1ull << 47)
167 #define CA_PDMA_OPQ_AVAIL (0xfull << 48)
168 #define CA_PDMA_OPQ_AVAIL_SHFT 48
169 #define CA_PDMA_WRBUFF_AVAIL (0xfull << 52)
170 #define CA_PDMA_WRBUFF_AVAIL_SHFT 52
171 #define CA_PDMA_RDBUFF_AVAIL (0x3ull << 56)
172 #define CA_PDMA_RDBUFF_AVAIL_SHFT 56
176 #define CA_GART_AP_ENB_AGP (1ull << 0)
177 #define CA_GART_PAGE_SIZE (1ull << 1)
178 #define CA_GART_AP_ENB_PCI (1ull << 2)
180 #define CA_GART_AP_SIZE (0x3ffull << 12)
181 #define CA_GART_AP_SIZE_SHFT 12
182 #define CA_GART_AP_BASE (0x3ffffffffffull << 22)
183 #define CA_GART_AP_BASE_SHFT 22
189 #define CA_INT_DEST_ADDR (0x7ffffffffffffull << 3)
190 #define CA_INT_DEST_ADDR_SHFT 3
192 #define CA_INT_DEST_VECT (0xffull << 56)
193 #define CA_INT_DEST_VECT_SHFT 56
201 #define CA_PCI_ERR (1ull << 0)
203 #define CA_GART_FETCH_ERR (1ull << 4)
204 #define CA_GFX_WR_OVFLW (1ull << 5)
205 #define CA_PIO_REQ_OVFLW (1ull << 6)
206 #define CA_CRM_PKTERR (1ull << 7)
207 #define CA_CRM_DVERR (1ull << 8)
208 #define CA_TNUMTO (1ull << 9)
209 #define CA_CXM_RSP_CRED_OVFLW (1ull << 10)
210 #define CA_CXM_REQ_CRED_OVFLW (1ull << 11)
211 #define CA_PIO_INVALID_ADDR (1ull << 12)
212 #define CA_PCI_ARB_TO (1ull << 13)
213 #define CA_AGP_REQ_OFLOW (1ull << 14)
214 #define CA_SBA_TYPE1_ERR (1ull << 15)
216 #define CA_INTA (1ull << 17)
217 #define CA_INTB (1ull << 18)
218 #define CA_MULT_INTA (1ull << 19)
219 #define CA_MULT_INTB (1ull << 20)
220 #define CA_GFX_CREDIT_OVFLW (1ull << 21)
225 #define CA_CRM_PKTERR_SBERR_HDR (1ull << 0)
226 #define CA_CRM_PKTERR_DIDN (1ull << 1)
227 #define CA_CRM_PKTERR_PACTYPE (1ull << 2)
228 #define CA_CRM_PKTERR_INV_TNUM (1ull << 3)
229 #define CA_CRM_PKTERR_ADDR_RNG (1ull << 4)
230 #define CA_CRM_PKTERR_ADDR_ALGN (1ull << 5)
231 #define CA_CRM_PKTERR_HDR_PARAM (1ull << 6)
232 #define CA_CRM_PKTERR_CW_ERR (1ull << 7)
233 #define CA_CRM_PKTERR_SBERR_NH (1ull << 8)
234 #define CA_CRM_PKTERR_EARLY_TERM (1ull << 9)
235 #define CA_CRM_PKTERR_EARLY_TAIL (1ull << 10)
236 #define CA_CRM_PKTERR_MSSNG_TAIL (1ull << 11)
237 #define CA_CRM_PKTERR_MSSNG_HDR (1ull << 12)
239 #define CA_FIRST_CRM_PKTERR_SBERR_HDR (1ull << 16)
240 #define CA_FIRST_CRM_PKTERR_DIDN (1ull << 17)
241 #define CA_FIRST_CRM_PKTERR_PACTYPE (1ull << 18)
242 #define CA_FIRST_CRM_PKTERR_INV_TNUM (1ull << 19)
243 #define CA_FIRST_CRM_PKTERR_ADDR_RNG (1ull << 20)
244 #define CA_FIRST_CRM_PKTERR_ADDR_ALGN (1ull << 21)
245 #define CA_FIRST_CRM_PKTERR_HDR_PARAM (1ull << 22)
246 #define CA_FIRST_CRM_PKTERR_CW_ERR (1ull << 23)
247 #define CA_FIRST_CRM_PKTERR_SBERR_NH (1ull << 24)
248 #define CA_FIRST_CRM_PKTERR_EARLY_TERM (1ull << 25)
249 #define CA_FIRST_CRM_PKTERR_EARLY_TAIL (1ull << 26)
250 #define CA_FIRST_CRM_PKTERR_MSSNG_TAIL (1ull << 27)
251 #define CA_FIRST_CRM_PKTERR_MSSNG_HDR (1ull << 28)
255 #define CA_PKT_TYPE (0xfull << 0)
256 #define CA_PKT_TYPE_SHFT 0
257 #define CA_SRC_ID (0x3ull << 4)
258 #define CA_SRC_ID_SHFT 4
259 #define CA_DATA_SZ (0x3ull << 6)
260 #define CA_DATA_SZ_SHFT 6
261 #define CA_TNUM (0xffull << 8)
262 #define CA_TNUM_SHFT 8
263 #define CA_DW_DATA_EN (0xffull << 16)
264 #define CA_DW_DATA_EN_SHFT 16
265 #define CA_GFX_CRED (0xffull << 24)
266 #define CA_GFX_CRED_SHFT 24
267 #define CA_MEM_RD_PARAM (0x3ull << 32)
268 #define CA_MEM_RD_PARAM_SHFT 32
269 #define CA_PIO_OP (1ull << 34)
270 #define CA_CW_ERR (1ull << 35)
272 #define CA_VALID (1ull << 63)
276 #define CA_PKT_ADDR (0x1fffffffffffffull << 3)
277 #define CA_PKT_ADDR_SHFT 3
281 #define CA_CRM_TNUMTO_VAL (0xffull << 0)
282 #define CA_CRM_TNUMTO_VAL_SHFT 0
283 #define CA_CRM_TNUMTO_WR (1ull << 8)
287 #define CA_GART_ERR_SOURCE (0x3ull << 0)
288 #define CA_GART_ERR_SOURCE_SHFT 0
290 #define CA_GART_ERR_ADDR (0xfffffffffull << 4)
291 #define CA_GART_ERR_ADDR_SHFT 4
295 #define CA_PCIERR_DATA (0xffffffffull << 0)
296 #define CA_PCIERR_DATA_SHFT 0
297 #define CA_PCIERR_ENB (0xfull << 32)
298 #define CA_PCIERR_ENB_SHFT 32
299 #define CA_PCIERR_CMD (0xfull << 36)
300 #define CA_PCIERR_CMD_SHFT 36
301 #define CA_PCIERR_A64 (1ull << 40)
302 #define CA_PCIERR_SLV_SERR (1ull << 41)
303 #define CA_PCIERR_SLV_WR_PERR (1ull << 42)
304 #define CA_PCIERR_SLV_RD_PERR (1ull << 43)
305 #define CA_PCIERR_MST_SERR (1ull << 44)
306 #define CA_PCIERR_MST_WR_PERR (1ull << 45)
307 #define CA_PCIERR_MST_RD_PERR (1ull << 46)
308 #define CA_PCIERR_MST_MABT (1ull << 47)
309 #define CA_PCIERR_MST_TABT (1ull << 48)
310 #define CA_PCIERR_MST_RETRY_TOUT (1ull << 49)
312 #define CA_PCIERR_TYPES \
313 (CA_PCIERR_A64|CA_PCIERR_SLV_SERR| \
314 CA_PCIERR_SLV_WR_PERR|CA_PCIERR_SLV_RD_PERR| \
315 CA_PCIERR_MST_SERR|CA_PCIERR_MST_WR_PERR|CA_PCIERR_MST_RD_PERR| \
316 CA_PCIERR_MST_MABT|CA_PCIERR_MST_TABT|CA_PCIERR_MST_RETRY_TOUT)
321 #define CA_UPPER_NODE_OFFSET (0x3full << 0)
322 #define CA_UPPER_NODE_OFFSET_SHFT 0
324 #define CA_CHIPLET_ID (0x3ull << 8)
325 #define CA_CHIPLET_ID_SHFT 8
327 #define CA_PCI_DMA_NODE_ID (0xffffull << 12)
328 #define CA_PCI_DMA_NODE_ID_SHFT 12
330 #define CA_PCI_DMA_PIO_MEM_TYPE (1ull << 28)
336 #define CA_AGP_DMA_NODE_ID (0xffffull << 20)
337 #define CA_AGP_DMA_NODE_ID_SHFT 20
339 #define CA_AGP_DMA_PIO_MEM_TYPE (1ull << 28)
343 #define CA_DEBUG_MN_VSEL (0xfull << 0)
344 #define CA_DEBUG_MN_VSEL_SHFT 0
345 #define CA_DEBUG_PP_VSEL (0xfull << 4)
346 #define CA_DEBUG_PP_VSEL_SHFT 4
347 #define CA_DEBUG_GW_VSEL (0xfull << 8)
348 #define CA_DEBUG_GW_VSEL_SHFT 8
349 #define CA_DEBUG_GT_VSEL (0xfull << 12)
350 #define CA_DEBUG_GT_VSEL_SHFT 12
351 #define CA_DEBUG_PD_VSEL (0xfull << 16)
352 #define CA_DEBUG_PD_VSEL_SHFT 16
353 #define CA_DEBUG_AD_VSEL (0xfull << 20)
354 #define CA_DEBUG_AD_VSEL_SHFT 20
355 #define CA_DEBUG_CX_VSEL (0xfull << 24)
356 #define CA_DEBUG_CX_VSEL_SHFT 24
357 #define CA_DEBUG_CR_VSEL (0xfull << 28)
358 #define CA_DEBUG_CR_VSEL_SHFT 28
359 #define CA_DEBUG_BA_VSEL (0xfull << 32)
360 #define CA_DEBUG_BA_VSEL_SHFT 32
361 #define CA_DEBUG_PE_VSEL (0xfull << 36)
362 #define CA_DEBUG_PE_VSEL_SHFT 36
363 #define CA_DEBUG_BO_VSEL (0xfull << 40)
364 #define CA_DEBUG_BO_VSEL_SHFT 40
365 #define CA_DEBUG_BI_VSEL (0xfull << 44)
366 #define CA_DEBUG_BI_VSEL_SHFT 44
367 #define CA_DEBUG_AS_VSEL (0xfull << 48)
368 #define CA_DEBUG_AS_VSEL_SHFT 48
369 #define CA_DEBUG_PS_VSEL (0xfull << 52)
370 #define CA_DEBUG_PS_VSEL_SHFT 52
371 #define CA_DEBUG_PM_VSEL (0xfull << 56)
372 #define CA_DEBUG_PM_VSEL_SHFT 56
377 #define CA_DEBUG_MSEL0 (0x7ull << 0)
378 #define CA_DEBUG_MSEL0_SHFT 0
380 #define CA_DEBUG_NSEL0 (0x7ull << 4)
381 #define CA_DEBUG_NSEL0_SHFT 4
383 #define CA_DEBUG_MSEL1 (0x7ull << 8)
384 #define CA_DEBUG_MSEL1_SHFT 8
386 #define CA_DEBUG_NSEL1 (0x7ull << 12)
387 #define CA_DEBUG_NSEL1_SHFT 12
389 #define CA_DEBUG_MSEL2 (0x7ull << 16)
390 #define CA_DEBUG_MSEL2_SHFT 16
392 #define CA_DEBUG_NSEL2 (0x7ull << 20)
393 #define CA_DEBUG_NSEL2_SHFT 20
395 #define CA_DEBUG_MSEL3 (0x7ull << 24)
396 #define CA_DEBUG_MSEL3_SHFT 24
398 #define CA_DEBUG_NSEL3 (0x7ull << 28)
399 #define CA_DEBUG_NSEL3_SHFT 28
401 #define CA_DEBUG_MSEL4 (0x7ull << 32)
402 #define CA_DEBUG_MSEL4_SHFT 32
404 #define CA_DEBUG_NSEL4 (0x7ull << 36)
405 #define CA_DEBUG_NSEL4_SHFT 36
407 #define CA_DEBUG_MSEL5 (0x7ull << 40)
408 #define CA_DEBUG_MSEL5_SHFT 40
410 #define CA_DEBUG_NSEL5 (0x7ull << 44)
411 #define CA_DEBUG_NSEL5_SHFT 44
413 #define CA_DEBUG_MSEL6 (0x7ull << 48)
414 #define CA_DEBUG_MSEL6_SHFT 48
416 #define CA_DEBUG_NSEL6 (0x7ull << 52)
417 #define CA_DEBUG_NSEL6_SHFT 52
419 #define CA_DEBUG_MSEL7 (0x7ull << 56)
420 #define CA_DEBUG_MSEL7_SHFT 56
422 #define CA_DEBUG_NSEL7 (0x7ull << 60)
423 #define CA_DEBUG_NSEL7_SHFT 60
428 #define CA_DEBUG_DOMAIN_L (1ull << 0)
429 #define CA_DEBUG_DOMAIN_H (1ull << 1)
433 #define CA_GART_PTR_VAL (1ull << 0)
435 #define CA_GART_PTR_ADDR (0xfffffffffffull << 12)
436 #define CA_GART_PTR_ADDR_SHFT 12
440 #define CA_GART_TLB_ADDR (0xffffffffffffffull << 0)
441 #define CA_GART_TLB_ADDR_SHFT 0
443 #define CA_GART_TLB_ENTRY_VAL (1ull << 63)
450 #define CA_PIO_ADMIN 0x00000000
451 #define CA_PIO_ADMIN_LEN 0x00010000
454 #define CA_PIO_GFX 0x00010000
455 #define CA_PIO_GFX_LEN 0x00010000
458 #define CA_PIO_AGP_DMAWRITE 0x00020000
459 #define CA_PIO_AGP_DMAWRITE_LEN 0x00010000
462 #define CA_PIO_AGP_DMAREAD 0x00030000
463 #define CA_PIO_AGP_DMAREAD_LEN 0x00010000
466 #define CA_PIO_PCI_TYPE0_CONFIG 0x01000000
467 #define CA_PIO_PCI_TYPE0_CONFIG_LEN 0x01000000
470 #define CA_PIO_PCI_TYPE1_CONFIG 0x02000000
471 #define CA_PIO_PCI_TYPE1_CONFIG_LEN 0x01000000
474 #define CA_PIO_PCI_IO 0x03000000
475 #define CA_PIO_PCI_IO_LEN 0x05000000
479 #define CA_PIO_PCI_MEM_OFFSET 0x08000000
480 #define CA_PIO_PCI_MEM_OFFSET_LEN 0x08000000
484 #define CA_PIO_PCI_MEM 0x40000000
485 #define CA_PIO_PCI_MEM_LEN 0xc0000000
581 #define CA_PCI32_DIRECT_BASE 0xC0000000UL
582 #define CA_PCI32_DIRECT_SIZE 0x00000000UL
584 #define CA_PCI32_MAPPED_BASE 0xC0000000UL
585 #define CA_PCI32_MAPPED_SIZE 0x40000000UL
587 #define CA_AGP_MAPPED_BASE 0x80000000UL
588 #define CA_AGP_MAPPED_SIZE 0x40000000UL
590 #define CA_AGP_DIRECT_BASE 0x40000000UL
591 #define CA_AGP_DIRECT_SIZE 0x40000000UL
593 #define CA_APERATURE_BASE (CA_AGP_MAPPED_BASE)
594 #define CA_APERATURE_SIZE (CA_AGP_MAPPED_SIZE+CA_PCI32_MAPPED_SIZE)