aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_frontend_ioctl.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-09-26 11:56:28 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-09-26 11:56:28 +0000
commit6bff2b5bffa076c29b2cef97e8e6092c885c88dc (patch)
tree601c97b50a9ce4167931830e79105310114f3108 /sys/cam/ctl/ctl_frontend_ioctl.c
parentd3ab449cfaea5c13ad444141c598d5bc7aae3127 (diff)
downloadsrc-6bff2b5bffa076c29b2cef97e8e6092c885c88dc.tar.gz
src-6bff2b5bffa076c29b2cef97e8e6092c885c88dc.zip
Move ioctl frontend defines where they belong.
Notes
Notes: svn path=/head/; revision=288261
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_ioctl.c')
-rw-r--r--sys/cam/ctl/ctl_frontend_ioctl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_frontend_ioctl.c b/sys/cam/ctl/ctl_frontend_ioctl.c
index 0f2e7a8154b6..6ef2f666c112 100644
--- a/sys/cam/ctl/ctl_frontend_ioctl.c
+++ b/sys/cam/ctl/ctl_frontend_ioctl.c
@@ -56,6 +56,18 @@ __FBSDID("$FreeBSD$");
#include <cam/ctl/ctl_debug.h>
#include <cam/ctl/ctl_error.h>
+typedef enum {
+ CTL_IOCTL_INPROG,
+ CTL_IOCTL_DATAMOVE,
+ CTL_IOCTL_DONE
+} ctl_fe_ioctl_state;
+
+struct ctl_fe_ioctl_params {
+ struct cv sem;
+ struct mtx ioctl_mtx;
+ ctl_fe_ioctl_state state;
+};
+
struct cfi_softc {
uint32_t cur_tag_num;
struct ctl_port port;