aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nsp
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:08:21 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-01-23 22:08:21 +0000
commitacf5cad5aa107ae0979edec169265ba01c2a3a13 (patch)
treea1810200ac215ad81bf049523470b035bb813854 /sys/dev/nsp
parent32c98125c9ee9909b5124e38fe19c58bfeedefd4 (diff)
downloadsrc-acf5cad5aa107ae0979edec169265ba01c2a3a13.tar.gz
src-acf5cad5aa107ae0979edec169265ba01c2a3a13.zip
Move the definition of nsp_start_timer() earlier in the file before it is
called so that it can be inlined.
Notes
Notes: svn path=/head/; revision=71468
Diffstat (limited to 'sys/dev/nsp')
-rw-r--r--sys/dev/nsp/nsp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/dev/nsp/nsp.c b/sys/dev/nsp/nsp.c
index 375c8381e94b..b564c67bc654 100644
--- a/sys/dev/nsp/nsp.c
+++ b/sys/dev/nsp/nsp.c
@@ -341,6 +341,18 @@ nsphw_bus_reset(sc)
bus_space_write_1(bst, bsh, nsp_irqcr, IRQSR_MASK);
}
+static __inline void
+nsp_start_timer(sc, time)
+ struct nsp_softc *sc;
+ int time;
+{
+ bus_space_tag_t bst = sc->sc_iot;
+ bus_space_handle_t bsh = sc->sc_ioh;
+
+ sc->sc_timer = time;
+ nsp_cr_write_1(bst, bsh, NSPR_TIMERCNT, time);
+}
+
static int
nsphw_start_selection(sc, cb)
struct nsp_softc *sc;
@@ -534,18 +546,6 @@ nsp_lun_init(sc, ti, li)
return 0;
}
-static __inline void
-nsp_start_timer(sc, time)
- struct nsp_softc *sc;
- int time;
-{
- bus_space_tag_t bst = sc->sc_iot;
- bus_space_handle_t bsh = sc->sc_ioh;
-
- sc->sc_timer = time;
- nsp_cr_write_1(bst, bsh, NSPR_TIMERCNT, time);
-}
-
/**************************************************************
* General probe attach
**************************************************************/