diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-01-23 22:08:21 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-01-23 22:08:21 +0000 |
| commit | acf5cad5aa107ae0979edec169265ba01c2a3a13 (patch) | |
| tree | a1810200ac215ad81bf049523470b035bb813854 /sys/dev/nsp/nsp.c | |
| parent | 32c98125c9ee9909b5124e38fe19c58bfeedefd4 (diff) | |
Notes
Diffstat (limited to 'sys/dev/nsp/nsp.c')
| -rw-r--r-- | sys/dev/nsp/nsp.c | 24 |
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 **************************************************************/ |
