Go to the documentation of this file.
12 #ifndef _ASM_XTALK_XWIDGET_H
13 #define _ASM_XTALK_XWIDGET_H
15 #include <linux/types.h>
18 #define WIDGET_ID 0x04
19 #define WIDGET_STATUS 0x0c
20 #define WIDGET_ERR_UPPER_ADDR 0x14
21 #define WIDGET_ERR_LOWER_ADDR 0x1c
22 #define WIDGET_CONTROL 0x24
23 #define WIDGET_REQ_TIMEOUT 0x2c
24 #define WIDGET_INTDEST_UPPER_ADDR 0x34
25 #define WIDGET_INTDEST_LOWER_ADDR 0x3c
26 #define WIDGET_ERR_CMD_WORD 0x44
27 #define WIDGET_LLP_CFG 0x4c
28 #define WIDGET_TFLUSH 0x54
31 #define WIDGET_REV_NUM 0xf0000000
32 #define WIDGET_PART_NUM 0x0ffff000
33 #define WIDGET_MFG_NUM 0x00000ffe
34 #define WIDGET_REV_NUM_SHFT 28
35 #define WIDGET_PART_NUM_SHFT 12
36 #define WIDGET_MFG_NUM_SHFT 1
38 #define XWIDGET_PART_NUM(widgetid) (((widgetid) & WIDGET_PART_NUM) >> WIDGET_PART_NUM_SHFT)
39 #define XWIDGET_REV_NUM(widgetid) (((widgetid) & WIDGET_REV_NUM) >> WIDGET_REV_NUM_SHFT)
40 #define XWIDGET_MFG_NUM(widgetid) (((widgetid) & WIDGET_MFG_NUM) >> WIDGET_MFG_NUM_SHFT)
43 #define WIDGET_LLP_REC_CNT 0xff000000
44 #define WIDGET_LLP_TX_CNT 0x00ff0000
45 #define WIDGET_PENDING 0x0000001f
48 #define WIDGET_ERR_UPPER_ADDR_ONLY 0x0000ffff
51 #define WIDGET_F_BAD_PKT 0x00010000
52 #define WIDGET_LLP_XBAR_CRD 0x0000f000
53 #define WIDGET_LLP_XBAR_CRD_SHFT 12
54 #define WIDGET_CLR_RLLP_CNT 0x00000800
55 #define WIDGET_CLR_TLLP_CNT 0x00000400
56 #define WIDGET_SYS_END 0x00000200
57 #define WIDGET_MAX_TRANS 0x000001f0
58 #define WIDGET_WIDGET_ID 0x0000000f
61 #define WIDGET_INT_VECTOR 0xff000000
62 #define WIDGET_INT_VECTOR_SHFT 24
63 #define WIDGET_TARGET_ID 0x000f0000
64 #define WIDGET_TARGET_ID_SHFT 16
65 #define WIDGET_UPP_ADDR 0x0000ffff
68 #define WIDGET_DIDN 0xf0000000
69 #define WIDGET_SIDN 0x0f000000
70 #define WIDGET_PACTYP 0x00f00000
71 #define WIDGET_TNUM 0x000f8000
72 #define WIDGET_COHERENT 0x00004000
73 #define WIDGET_DS 0x00003000
74 #define WIDGET_GBR 0x00000800
75 #define WIDGET_VBPM 0x00000400
76 #define WIDGET_ERROR 0x00000200
77 #define WIDGET_BARRIER 0x00000100
80 #define WIDGET_LLP_MAXRETRY 0x03ff0000
81 #define WIDGET_LLP_MAXRETRY_SHFT 16
82 #define WIDGET_LLP_NULLTIMEOUT 0x0000fc00
83 #define WIDGET_LLP_NULLTIMEOUT_SHFT 10
84 #define WIDGET_LLP_MAXBURST 0x000003ff
85 #define WIDGET_LLP_MAXBURST_SHFT 0
159 #define XWIDGET_HARDWARE_ID_MATCH(hwid1, hwid2) \
160 (((hwid1)->part_num == (hwid2)->part_num) && \
161 (((hwid1)->mfg_num == XWIDGET_MFG_NUM_NONE) || \
162 ((hwid2)->mfg_num == XWIDGET_MFG_NUM_NONE) || \
163 ((hwid1)->mfg_num == (hwid2)->mfg_num)))