Go to the documentation of this file.
21 #include <asm/byteorder.h>
24 #define LPFC_FCP_CDB_LEN 16
26 #define list_remove_head(list, entry, type, member) \
29 if (!list_empty(list)) { \
30 entry = list_entry((list)->next, type, member); \
31 list_del_init(&entry->member); \
35 #define list_get_first(list, type, member) \
36 (list_empty(list)) ? NULL : \
37 list_entry((list)->next, type, member)
51 #define RSP_LEN_VALID 0x01
52 #define SNS_LEN_VALID 0x02
53 #define RESID_OVER 0x04
54 #define RESID_UNDER 0x08
70 #define RSP_NO_FAILURE 0x00
71 #define RSP_DATA_BURST_ERR 0x01
72 #define RSP_CMD_FIELD_ERR 0x02
73 #define RSP_RO_MISMATCH_ERR 0x03
74 #define RSP_TM_NOT_SUPPORTED 0x04
75 #define RSP_TM_NOT_COMPLETED 0x05
80 #define SNS_ILLEGAL_REQ 0x05
81 #define SNSCOD_BADCMD 0x20
90 #define HEAD_OF_Q 0x01
91 #define ORDERED_Q 0x02
95 #define FCP_ABORT_TASK_SET 0x02
96 #define FCP_CLEAR_TASK_SET 0x04
97 #define FCP_BUS_RESET 0x08
98 #define FCP_LUN_RESET 0x10
99 #define FCP_TARGET_RESET 0x20
100 #define FCP_CLEAR_ACA 0x40
101 #define FCP_TERMINATE_TASK 0x80
103 #define WRITE_DATA 0x01
104 #define READ_DATA 0x02
154 #ifdef CONFIG_SCSI_LPFC_DEBUG_FS
156 void *prot_data_segment;
159 #define LPFC_INJERR_REFTAG 1
160 #define LPFC_INJERR_APPTAG 2
161 #define LPFC_INJERR_GUARD 3
165 #define LPFC_SCSI_DMA_EXT_SIZE 264
166 #define LPFC_BPL_SIZE 1024
167 #define MDAC_DIRECT_CMD 0x22