Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_enc.c
Show All 12 Lines | |||||
static periph_init_t enc_init; | static periph_init_t enc_init; | ||||
static periph_ctor_t enc_ctor; | static periph_ctor_t enc_ctor; | ||||
static periph_oninv_t enc_oninvalidate; | static periph_oninv_t enc_oninvalidate; | ||||
static periph_dtor_t enc_dtor; | static periph_dtor_t enc_dtor; | ||||
static void enc_async(void *, uint32_t, struct cam_path *, void *); | static void enc_async(void *, uint32_t, struct cam_path *, void *); | ||||
static enctyp enc_type(struct ccb_getdev *); | static enctyp enc_type(struct ccb_getdev *); | ||||
SYSCTL_NODE(_kern_cam, OID_AUTO, enc, CTLFLAG_RD, 0, | SYSCTL_NODE(_kern_cam, OID_AUTO, enc, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"CAM Enclosure Services driver"); | "CAM Enclosure Services driver"); | ||||
#if defined(DEBUG) || defined(ENC_DEBUG) | #if defined(DEBUG) || defined(ENC_DEBUG) | ||||
int enc_verbose = 1; | int enc_verbose = 1; | ||||
#else | #else | ||||
int enc_verbose = 0; | int enc_verbose = 0; | ||||
#endif | #endif | ||||
SYSCTL_INT(_kern_cam_enc, OID_AUTO, verbose, CTLFLAG_RWTUN, | SYSCTL_INT(_kern_cam_enc, OID_AUTO, verbose, CTLFLAG_RWTUN, | ||||
&enc_verbose, 0, "Enable verbose logging"); | &enc_verbose, 0, "Enable verbose logging"); | ||||
Show All 12 Lines |