aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-07-05 03:34:52 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-07-05 03:34:52 +0000
commit43fb3a65e3aebe25328eca1cd5bd6350acab1d34 (patch)
tree38f868c37f0b3951d20a3023aaa7d4b3a8ca116b /sys/cam/ctl/ctl_backend.h
parentfa3fb62bffe81dcb0adb05240575348e83103738 (diff)
downloadsrc-43fb3a65e3aebe25328eca1cd5bd6350acab1d34.tar.gz
src-43fb3a65e3aebe25328eca1cd5bd6350acab1d34.zip
Make options KPI more generic to allow it to be used for ports too,
not only for LUNs.
Notes
Notes: svn path=/head/; revision=268280
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r--sys/cam/ctl/ctl_backend.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h
index 640a7f990e21..c2066c527466 100644
--- a/sys/cam/ctl/ctl_backend.h
+++ b/sys/cam/ctl/ctl_backend.h
@@ -180,12 +180,6 @@ typedef void (*be_lun_config_t)(void *be_lun,
* The links field is for CTL internal use only, and should not be used by
* the backend.
*/
-struct ctl_be_lun_option {
- STAILQ_ENTRY(ctl_be_lun_option) links;
- char *name;
- char *value;
-};
-
struct ctl_be_lun {
uint8_t lun_type; /* passed to CTL */
ctl_backend_lun_flags flags; /* passed to CTL */
@@ -202,7 +196,7 @@ struct ctl_be_lun {
be_lun_config_t lun_config_status; /* passed to CTL */
struct ctl_backend_driver *be; /* passed to CTL */
void *ctl_lun; /* used by CTL */
- STAILQ_HEAD(, ctl_be_lun_option) options; /* passed to CTL */
+ ctl_options_t options; /* passed to CTL */
STAILQ_ENTRY(ctl_be_lun) links; /* used by CTL */
};
@@ -301,14 +295,6 @@ int ctl_lun_online(struct ctl_be_lun *be_lun);
*/
void ctl_lun_capacity_changed(struct ctl_be_lun *be_lun);
-/*
- * KPI to manipulate LUN options
- */
-struct ctl_lun_req;
-void ctl_init_opts(struct ctl_be_lun *be_lun, struct ctl_lun_req *req);
-void ctl_free_opts(struct ctl_be_lun *be_lun);
-char * ctl_get_opt(struct ctl_be_lun *be_lun, const char *name);
-
#endif /* _KERNEL */
#endif /* _CTL_BACKEND_H_ */