Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_xpt.c
Show All 12 Lines | |||||
#define CAM_QUIRK_NORPTLUNS 0x10 | #define CAM_QUIRK_NORPTLUNS 0x10 | ||||
u_int mintags; | u_int mintags; | ||||
u_int maxtags; | u_int maxtags; | ||||
}; | }; | ||||
#define SCSI_QUIRK(dev) ((struct scsi_quirk_entry *)((dev)->quirk)) | #define SCSI_QUIRK(dev) ((struct scsi_quirk_entry *)((dev)->quirk)) | ||||
static int cam_srch_hi = 0; | static int cam_srch_hi = 0; | ||||
static int sysctl_cam_search_luns(SYSCTL_HANDLER_ARGS); | static int sysctl_cam_search_luns(SYSCTL_HANDLER_ARGS); | ||||
SYSCTL_PROC(_kern_cam, OID_AUTO, cam_srch_hi, CTLTYPE_INT | CTLFLAG_RWTUN, 0, 0, | SYSCTL_PROC(_kern_cam, OID_AUTO, cam_srch_hi, | ||||
CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NEEDGIANT, 0, 0, | |||||
sysctl_cam_search_luns, "I", | sysctl_cam_search_luns, "I", | ||||
"allow search above LUN 7 for SCSI3 and greater devices"); | "allow search above LUN 7 for SCSI3 and greater devices"); | ||||
#define CAM_SCSI2_MAXLUN 8 | #define CAM_SCSI2_MAXLUN 8 | ||||
#define CAM_CAN_GET_SIMPLE_LUN(x, i) \ | #define CAM_CAN_GET_SIMPLE_LUN(x, i) \ | ||||
((((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ | ((((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ | ||||
RPL_LUNDATA_ATYP_PERIPH) || \ | RPL_LUNDATA_ATYP_PERIPH) || \ | ||||
(((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ | (((x)->luns[i].lundata[0] & RPL_LUNDATA_ATYP_MASK) == \ | ||||
Show All 12 Lines |