Go to the documentation of this file. 1 #ifndef TARGET_CORE_BASE_H
2 #define TARGET_CORE_BASE_H
12 #define TARGET_CORE_MOD_VERSION "v4.1.0-rc2-ml"
13 #define TARGET_CORE_VERSION TARGET_CORE_MOD_VERSION
17 #define TRANSPORT_MAX_LUNS_PER_TPG 256
30 #define TCM_MAX_COMMAND_SIZE 32
35 #define TRANSPORT_SENSE_BUFFER SCSI_SENSE_BUFFERSIZE
37 #define SPC_SENSE_KEY_OFFSET 2
38 #define SPC_ADD_SENSE_LEN_OFFSET 7
39 #define SPC_ASC_KEY_OFFSET 12
40 #define SPC_ASCQ_KEY_OFFSET 13
41 #define TRANSPORT_IQN_LEN 224
43 #define LU_GROUP_NAME_BUF 256
45 #define TG_PT_GROUP_NAME_BUF 256
47 #define VPD_TMP_BUF_SIZE 128
49 #define READ_BLOCK_LEN 6
50 #define READ_CAP_LEN 8
51 #define READ_POSITION_LEN 20
52 #define INQUIRY_LEN 36
54 #define INQUIRY_VPD_SERIAL_LEN 254
56 #define INQUIRY_VPD_DEVICE_IDENTIFIER_LEN 254
59 #define PYX_TRANSPORT_WINDOW_CLOSED_THRESHOLD 3
60 #define PYX_TRANSPORT_WINDOW_CLOSED_WAIT_SHORT 3
61 #define PYX_TRANSPORT_WINDOW_CLOSED_WAIT_LONG 10
63 #define PYX_TRANSPORT_STATUS_INTERVAL 5
68 #define SDF_FIRMWARE_VPD_UNIT_SERIAL 0x00000001
69 #define SDF_EMULATED_VPD_UNIT_SERIAL 0x00000002
70 #define SDF_USING_UDEV_PATH 0x00000004
71 #define SDF_USING_ALIAS 0x00000008
76 #define DF_SPC2_RESERVATIONS 0x00000001
77 #define DF_SPC2_RESERVATIONS_WITH_ISID 0x00000002
81 #define DA_MAX_UNMAP_LBA_COUNT 0
83 #define DA_MAX_UNMAP_BLOCK_DESC_COUNT 0
85 #define DA_UNMAP_GRANULARITY_DEFAULT 0
87 #define DA_UNMAP_GRANULARITY_ALIGNMENT_DEFAULT 0
89 #define DA_FABRIC_MAX_SECTORS 8192
91 #define DA_EMULATE_DPO 0
93 #define DA_EMULATE_FUA_WRITE 1
95 #define DA_EMULATE_FUA_READ 0
97 #define DA_EMULATE_WRITE_CACHE 0
99 #define DA_EMULATE_UA_INTLLCK_CTRL 0
101 #define DA_EMULATE_TAS 1
103 #define DA_EMULATE_TPU 0
108 #define DA_EMULATE_TPWS 0
110 #define DA_EMULATE_RESERVATIONS 0
112 #define DA_EMULATE_ALUA 0
114 #define DA_ENFORCE_PR_ISIDS 1
115 #define DA_STATUS_MAX_SECTORS_MIN 16
116 #define DA_STATUS_MAX_SECTORS_MAX 8192
118 #define DA_IS_NONROT 0
120 #define DA_EMULATE_REST_REORD 0
122 #define SE_INQUIRY_BUF 512
123 #define SE_MODE_PAGE_BUF 512
124 #define SE_SENSE_BUF 96
331 #define ALUA_MD_BUF_LEN 1024
388 #define PR_REG_ISID_LEN 16
390 #define PR_REG_ISID_ID_LEN (PR_REG_ISID_LEN + 5)
393 #define PR_APTPL_MAX_IPORT_LEN 256
396 #define PR_APTPL_MAX_TPORT_LEN 256
446 #define PR_APTPL_BUF_LEN 8192
534 #define CMD_T_ABORTED (1 << 0)
535 #define CMD_T_ACTIVE (1 << 1)
536 #define CMD_T_COMPLETE (1 << 2)
537 #define CMD_T_QUEUED (1 << 3)
538 #define CMD_T_SENT (1 << 4)
539 #define CMD_T_STOP (1 << 5)
540 #define CMD_T_FAILED (1 << 6)
541 #define CMD_T_LUN_STOP (1 << 7)
542 #define CMD_T_LUN_FE_STOP (1 << 8)
543 #define CMD_T_DEV_ACTIVE (1 << 9)
544 #define CMD_T_REQUEST_STOP (1 << 10)
545 #define CMD_T_BUSY (1 << 11)
621 struct se_transform_info;
712 #define SE_DEV_ALIAS_LEN 512
715 #define SE_UDEV_PATH_LEN 512