Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ctl/ctl_backend.h
Show All 37 Lines | |||||
* | * | ||||
* Author: Ken Merry <ken@FreeBSD.org> | * Author: Ken Merry <ken@FreeBSD.org> | ||||
*/ | */ | ||||
#ifndef _CTL_BACKEND_H_ | #ifndef _CTL_BACKEND_H_ | ||||
#define _CTL_BACKEND_H_ | #define _CTL_BACKEND_H_ | ||||
#include <cam/ctl/ctl_ioctl.h> | #include <cam/ctl/ctl_ioctl.h> | ||||
#include <sys/nv.h> | |||||
typedef enum { | typedef enum { | ||||
CTL_LUN_SERSEQ_OFF, | CTL_LUN_SERSEQ_OFF, | ||||
CTL_LUN_SERSEQ_READ, | CTL_LUN_SERSEQ_READ, | ||||
CTL_LUN_SERSEQ_ON | CTL_LUN_SERSEQ_ON | ||||
} ctl_lun_serseq; | } ctl_lun_serseq; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
▲ Show 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | struct ctl_be_lun { | ||||
uint32_t req_lun_id; /* passed to CTL */ | uint32_t req_lun_id; /* passed to CTL */ | ||||
uint32_t lun_id; /* returned from CTL */ | uint32_t lun_id; /* returned from CTL */ | ||||
uint8_t serial_num[CTL_SN_LEN]; /* passed to CTL */ | uint8_t serial_num[CTL_SN_LEN]; /* passed to CTL */ | ||||
uint8_t device_id[CTL_DEVID_LEN];/* passed to CTL */ | uint8_t device_id[CTL_DEVID_LEN];/* passed to CTL */ | ||||
be_callback_t lun_shutdown; /* passed to CTL */ | be_callback_t lun_shutdown; /* passed to CTL */ | ||||
be_lun_config_t lun_config_status; /* passed to CTL */ | be_lun_config_t lun_config_status; /* passed to CTL */ | ||||
struct ctl_backend_driver *be; /* passed to CTL */ | struct ctl_backend_driver *be; /* passed to CTL */ | ||||
void *ctl_lun; /* used by CTL */ | void *ctl_lun; /* used by CTL */ | ||||
ctl_options_t options; /* passed to CTL */ | nvlist_t *options; /* passed to CTL */ | ||||
STAILQ_ENTRY(ctl_be_lun) links; /* used by CTL */ | STAILQ_ENTRY(ctl_be_lun) links; /* used by CTL */ | ||||
}; | }; | ||||
typedef enum { | typedef enum { | ||||
CTL_BE_FLAG_NONE = 0x00, /* no flags */ | CTL_BE_FLAG_NONE = 0x00, /* no flags */ | ||||
CTL_BE_FLAG_HAS_CONFIG = 0x01, /* can do config reads, writes */ | CTL_BE_FLAG_HAS_CONFIG = 0x01, /* can do config reads, writes */ | ||||
} ctl_backend_flags; | } ctl_backend_flags; | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |