summaryrefslogtreecommitdiffstats
path: root/sys/dev/nsp
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-23 22:08:21 +0000
committerjhb <jhb@FreeBSD.org>2001-01-23 22:08:21 +0000
commit3ed8c05491ed7bad4b4f323988a8f0d3e4f4cfa5 (patch)
treeb7bbee79ab642d5dfc140485e624e61c72ac740d /sys/dev/nsp
parentd56ddb5579b8333b3adf13c753b93e65b099db24 (diff)
downloadFreeBSD-src-3ed8c05491ed7bad4b4f323988a8f0d3e4f4cfa5.zip
FreeBSD-src-3ed8c05491ed7bad4b4f323988a8f0d3e4f4cfa5.tar.gz
Move the definition of nsp_start_timer() earlier in the file before it is
called so that it can be inlined.
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 375c838..b564c67 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
**************************************************************/
OpenPOWER on IntegriCloud