Add proper return codes to zs_intr() filter, and fix accordinlgly zs_intr()

prototype.
This commit is contained in:
Paolo Pisati 2007-02-27 15:31:11 +00:00
parent ad3b9f70ed
commit fe59e41138
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167073
2 changed files with 6 additions and 3 deletions

View file

@ -65,7 +65,7 @@ struct zstty_softc {
int zs_attach(device_t dev);
int zs_probe(device_t dev);
void zs_intr(void *v);
int zs_intr(void *v);
int zstty_attach(device_t dev);
int zstty_probe(device_t dev);

View file

@ -197,7 +197,7 @@ zs_attach(device_t dev)
return (0);
}
void
int
zs_intr(void *v)
{
struct zs_softc *sc = v;
@ -216,8 +216,11 @@ zs_intr(void *v)
needsoft |= zstty_intr(sc->sc_child[0], rr3 >> 3);
if ((rr3 & (ZSRR3_IP_B_RX | ZSRR3_IP_B_TX | ZSRR3_IP_B_STAT)) != 0)
needsoft |= zstty_intr(sc->sc_child[1], rr3);
if (needsoft)
if (needsoft) {
swi_sched(sc->sc_softih, 0);
return (FILTER_HANDLED);
}
return (FILTER_STRAY);
}
static void