diff options
author | Steven Hartland <smh@FreeBSD.org> | 2014-11-22 14:59:50 +0000 |
---|---|---|
committer | Steven Hartland <smh@FreeBSD.org> | 2014-11-22 14:59:50 +0000 |
commit | 14730efd7e32afe0a5780f6dcaba6186d4b807d9 (patch) | |
tree | f8996ef34039acf977a8a2a26981237f9d5f602a | |
parent | dbd3f107025d6a827ea4a52439077822be833b49 (diff) |
Notes
-rw-r--r-- | sys/dev/asr/asr.c | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c index 6a45737d8720b..b70d4990f34f3 100644 --- a/sys/dev/asr/asr.c +++ b/sys/dev/asr/asr.c @@ -384,26 +384,6 @@ typedef struct Asr_softc { static STAILQ_HEAD(, Asr_softc) Asr_softc_list = STAILQ_HEAD_INITIALIZER(Asr_softc_list); - -static __inline void -set_ccb_timeout_ch(union asr_ccb *ccb) -{ - struct callout_handle ch; - - ch = timeout(asr_timeout, (caddr_t)ccb, - (int)((u_int64_t)(ccb->ccb_h.timeout) * (u_int32_t)hz / 1000)); - ccb->ccb_h.sim_priv.entries[0].ptr = ch.callout; -} - -static __inline struct callout_handle -get_ccb_timeout_ch(union asr_ccb *ccb) -{ - struct callout_handle ch; - - ch.callout = ccb->ccb_h.sim_priv.entries[0].ptr; - return ch; -} - /* * Prototypes of the routines we have in this object. */ @@ -426,6 +406,25 @@ static void asr_action(struct cam_sim *sim, union ccb *ccb); static void asr_poll(struct cam_sim *sim); static int ASR_queue(Asr_softc_t *sc, PI2O_MESSAGE_FRAME Message); +static __inline void +set_ccb_timeout_ch(union asr_ccb *ccb) +{ + struct callout_handle ch; + + ch = timeout(asr_timeout, (caddr_t)ccb, + (int)((u_int64_t)(ccb->ccb_h.timeout) * (u_int32_t)hz / 1000)); + ccb->ccb_h.sim_priv.entries[0].ptr = ch.callout; +} + +static __inline struct callout_handle +get_ccb_timeout_ch(union asr_ccb *ccb) +{ + struct callout_handle ch; + + ch.callout = ccb->ccb_h.sim_priv.entries[0].ptr; + return ch; +} + /* * Here is the auto-probe structure used to nest our tests appropriately * during the startup phase of the operating system. |