diff options
Diffstat (limited to 'sys/i386/isa/tw.c')
-rw-r--r-- | sys/i386/isa/tw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/tw.c b/sys/i386/isa/tw.c index ce98e65dfebe7..5c2a661ee810c 100644 --- a/sys/i386/isa/tw.c +++ b/sys/i386/isa/tw.c @@ -274,7 +274,6 @@ static void twdelayn(int n); static void twsetuptimes(int *a); static int wait_for_zero(struct tw_sc *sc); static int twputpkt(struct tw_sc *sc, u_char *p); -static ointhand2_t twintr; static int twgetbytes(struct tw_sc *sc, u_char *p, int cnt); static timeout_t twabortrcv; static int twsend(struct tw_sc *sc, int h, int k, int cnt); @@ -392,7 +391,6 @@ static int twattach(idp) struct tw_sc *sc; int unit; - idp->id_ointr = twintr; sc = &tw_sc[unit = idp->id_unit]; sc->sc_port = idp->id_iobase; sc->sc_state = 0; @@ -416,6 +414,7 @@ int twopen(dev, flag, mode, p) { struct tw_sc *sc = &tw_sc[TWUNIT(dev)]; int s; + int port; s = spltty(); if(sc->sc_state == 0) { @@ -436,6 +435,7 @@ int twclose(dev, flag, mode, p) { struct tw_sc *sc = &tw_sc[TWUNIT(dev)]; int s; + int port = sc->sc_port; s = spltty(); sc->sc_state = 0; @@ -918,7 +918,7 @@ tw_is_within(int value, int expected, int tolerance) * reconstruct the transmission without having to poll. */ -static void twintr(unit) +void twintr(unit) int unit; { struct tw_sc *sc = &tw_sc[unit]; |