mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Add proper return codes to zs_intr() filter, and fix accordinlgly zs_intr()
prototype.
This commit is contained in:
parent
ad3b9f70ed
commit
fe59e41138
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167073
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user