Go to the documentation of this file.
8 #ifndef _ASM_S390_FCX_H
9 #define _ASM_S390_FCX_H _ASM_S390_FCX_H
11 #include <linux/types.h>
13 #define TCW_FORMAT_DEFAULT 0
14 #define TCW_TIDAW_FORMAT_DEFAULT 0
15 #define TCW_FLAGS_INPUT_TIDA 1 << (23 - 5)
16 #define TCW_FLAGS_TCCB_TIDA 1 << (23 - 6)
17 #define TCW_FLAGS_OUTPUT_TIDA 1 << (23 - 7)
18 #define TCW_FLAGS_TIDAW_FORMAT(x) ((x) & 3) << (23 - 9)
19 #define TCW_FLAGS_GET_TIDAW_FORMAT(x) (((x) >> (23 - 9)) & 3)
57 #define TIDAW_FLAGS_LAST 1 << (7 - 0)
58 #define TIDAW_FLAGS_SKIP 1 << (7 - 1)
59 #define TIDAW_FLAGS_DATA_INT 1 << (7 - 2)
60 #define TIDAW_FLAGS_TTIC 1 << (7 - 3)
61 #define TIDAW_FLAGS_INSERT_CBC 1 << (7 - 4)
109 #define TSA_INTRG_FLAGS_CU_STATE_VALID 1 << (7 - 0)
110 #define TSA_INTRG_FLAGS_DEV_STATE_VALID 1 << (7 - 1)
111 #define TSA_INTRG_FLAGS_OP_STATE_VALID 1 << (7 - 2)
138 #define TSB_FORMAT_NONE 0
139 #define TSB_FORMAT_IOSTAT 1
140 #define TSB_FORMAT_DDPC 2
141 #define TSB_FORMAT_INTRG 3
143 #define TSB_FLAGS_DCW_OFFSET_VALID 1 << (7 - 0)
144 #define TSB_FLAGS_COUNT_VALID 1 << (7 - 1)
145 #define TSB_FLAGS_CACHE_MISS 1 << (7 - 2)
146 #define TSB_FLAGS_TIME_VALID 1 << (7 - 3)
147 #define TSB_FLAGS_FORMAT(x) ((x) & 7)
148 #define TSB_FORMAT(t) ((t)->flags & 7)
173 #define DCW_INTRG_FORMAT_DEFAULT 0
175 #define DCW_INTRG_RC_UNSPECIFIED 0
176 #define DCW_INTRG_RC_TIMEOUT 1
178 #define DCW_INTRG_RCQ_UNSPECIFIED 0
179 #define DCW_INTRG_RCQ_PRIMARY 1
180 #define DCW_INTRG_RCQ_SECONDARY 2
182 #define DCW_INTRG_FLAGS_MPM 1 < (7 - 0)
183 #define DCW_INTRG_FLAGS_PPR 1 < (7 - 1)
184 #define DCW_INTRG_FLAGS_CRIT 1 < (7 - 2)
219 #define DCW_FLAGS_CC 1 << (7 - 1)
221 #define DCW_CMD_WRITE 0x01
222 #define DCW_CMD_READ 0x02
223 #define DCW_CMD_CONTROL 0x03
224 #define DCW_CMD_SENSE 0x04
225 #define DCW_CMD_SENSE_ID 0xe4
226 #define DCW_CMD_INTRG 0x40
246 #define TCCB_FORMAT_DEFAULT 0x7f
247 #define TCCB_MAX_DCW 30
248 #define TCCB_MAX_SIZE (sizeof(struct tccb_tcah) + \
249 TCCB_MAX_DCW * sizeof(struct dcw) + \
250 sizeof(struct tccb_tcat))
251 #define TCCB_SAC_DEFAULT 0x1ffe
252 #define TCCB_SAC_INTRG 0x1fff