Go to the documentation of this file.
33 #ifndef XILINX_HWICAP_H_
34 #define XILINX_HWICAP_H_
36 #include <linux/types.h>
89 #define XHI_MAX_RETRIES 5000
93 #define XHI_PAD_FRAMES 0x1
96 #define XHI_WORD_COUNT_MASK_TYPE_1 0x7FFUL
97 #define XHI_WORD_COUNT_MASK_TYPE_2 0x1FFFFFUL
98 #define XHI_TYPE_MASK 0x7
99 #define XHI_REGISTER_MASK 0xF
100 #define XHI_OP_MASK 0x3
102 #define XHI_TYPE_SHIFT 29
103 #define XHI_REGISTER_SHIFT 13
104 #define XHI_OP_SHIFT 27
108 #define XHI_OP_WRITE 2
109 #define XHI_OP_READ 1
112 #define XHI_FAR_CLB_BLOCK 0
113 #define XHI_FAR_BRAM_BLOCK 1
114 #define XHI_FAR_BRAM_INT_BLOCK 2
142 #define XHI_CMD_NULL 0
143 #define XHI_CMD_WCFG 1
144 #define XHI_CMD_MFW 2
145 #define XHI_CMD_DGHIGH 3
146 #define XHI_CMD_RCFG 4
147 #define XHI_CMD_START 5
148 #define XHI_CMD_RCAP 6
149 #define XHI_CMD_RCRC 7
150 #define XHI_CMD_AGHIGH 8
151 #define XHI_CMD_SWITCH 9
152 #define XHI_CMD_GRESTORE 10
153 #define XHI_CMD_SHUTDOWN 11
154 #define XHI_CMD_GCAPTURE 12
155 #define XHI_CMD_DESYNCH 13
156 #define XHI_CMD_IPROG 15
157 #define XHI_CMD_CRCC 16
158 #define XHI_CMD_LTIMER 17
161 #define XHI_SYNC_PACKET 0xAA995566UL
162 #define XHI_DUMMY_PACKET 0xFFFFFFFFUL
163 #define XHI_NOOP_PACKET (XHI_TYPE_1 << XHI_TYPE_SHIFT)
164 #define XHI_TYPE_2_READ ((XHI_TYPE_2 << XHI_TYPE_SHIFT) | \
165 (XHI_OP_READ << XHI_OP_SHIFT))
167 #define XHI_TYPE_2_WRITE ((XHI_TYPE_2 << XHI_TYPE_SHIFT) | \
168 (XHI_OP_WRITE << XHI_OP_SHIFT))
170 #define XHI_TYPE2_CNT_MASK 0x07FFFFFF
172 #define XHI_TYPE_1_PACKET_MAX_WORDS 2047UL
173 #define XHI_TYPE_1_HEADER_BYTES 4
174 #define XHI_TYPE_2_HEADER_BYTES 8
177 #define XHI_DISABLED_AUTO_CRC 0x0000DEFCUL
180 #define XHI_SR_CFGERR_N_MASK 0x00000100
181 #define XHI_SR_DALIGN_MASK 0x00000080
182 #define XHI_SR_RIP_MASK 0x00000040
183 #define XHI_SR_IN_ABORT_N_MASK 0x00000020
184 #define XHI_SR_DONE_MASK 0x00000001
195 static inline u32 hwicap_type_1_read(
u32 reg)
206 static inline u32 hwicap_type_1_write(
u32 reg)