summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_freebsd.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2012-06-01 23:29:48 +0000
committermjacob <mjacob@FreeBSD.org>2012-06-01 23:29:48 +0000
commit668ec8ec8cf82118d79473006ff5e22ee32fbd74 (patch)
tree221e605810db01fdf9ad7488ea78bedd1853e5fa /sys/dev/isp/isp_freebsd.h
parentf2720055c7f6d97725f2a042dd27c8b19c917ef5 (diff)
downloadFreeBSD-src-668ec8ec8cf82118d79473006ff5e22ee32fbd74.zip
FreeBSD-src-668ec8ec8cf82118d79473006ff5e22ee32fbd74.tar.gz
Clean up and complete the incomplete deferred enable code.
Make the default role NONE if target mode is selected. This allows ctl(8) to switch to/from target mode via knob settings. If we default to role 'none', this causes a reset of the 24XX f/w which then causes initiators to wake up and notice when we come online. Reviewed by: kdm MFC after: 2 weeks Sponsored by: Spectralogic
Diffstat (limited to 'sys/dev/isp/isp_freebsd.h')
-rw-r--r--sys/dev/isp/isp_freebsd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index e212e11..457f9f2 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -129,8 +129,10 @@ typedef struct tstate {
struct ccb_hdr_slist atios;
struct ccb_hdr_slist inots;
uint32_t hold;
- int atio_count;
- int inot_count;
+ uint32_t
+ enabled : 1,
+ atio_count : 15,
+ inot_count : 15;
inot_private_data_t * restart_queue;
inot_private_data_t * ntfree;
inot_private_data_t ntpool[ATPDPSIZE];
OpenPOWER on IntegriCloud