diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sbus/magma.c | 9 | ||||
-rw-r--r-- | sys/dev/sbus/spif.c | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/sys/dev/sbus/magma.c b/sys/dev/sbus/magma.c index 8aba38e9384..a68b113338c 100644 --- a/sys/dev/sbus/magma.c +++ b/sys/dev/sbus/magma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: magma.c,v 1.31 2020/02/18 00:12:08 cheloha Exp $ */ +/* $OpenBSD: magma.c,v 1.32 2020/05/23 09:44:20 mpi Exp $ */ /*- * Copyright (c) 1998 Iain Hibbert @@ -1340,6 +1340,7 @@ mtty_param(struct tty *tp, struct termios *t) * mbppwrite write to mbpp * mbppioctl do ioctl on mbpp * mbpppoll do poll on mbpp + * mbppkqfilter kqueue on mbpp * mbpp_rw general rw routine * mbpp_timeout rw timeout * mbpp_start rw start after delay @@ -1516,6 +1517,12 @@ mbpppoll(dev_t dev, int events, struct proc *p) } int +mbppkqfilter(dev_t dev, struct knote *kn) +{ + return (seltrue_kqfilter(dev, kn)); +} + +int mbpp_rw(dev_t dev, struct uio *uio) { int card = MAGMA_CARD(dev); diff --git a/sys/dev/sbus/spif.c b/sys/dev/sbus/spif.c index 19f128420d7..e86fb7e0504 100644 --- a/sys/dev/sbus/spif.c +++ b/sys/dev/sbus/spif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spif.c,v 1.23 2019/07/19 00:17:15 cheloha Exp $ */ +/* $OpenBSD: spif.c,v 1.24 2020/05/23 09:44:20 mpi Exp $ */ /* * Copyright (c) 1999-2002 Jason L. Wright (jason@thought.net) @@ -91,6 +91,7 @@ int sbppwrite(dev_t, struct uio *, int); int sbpp_rw(dev_t, struct uio *); int spifppcintr(void *); int sbpppoll(dev_t, int, struct proc *); +int sbppkqfilter(dev_t, struct knote *); int sbppioctl(dev_t, u_long, caddr_t, int, struct proc *); struct cfattach spif_ca = { @@ -1044,6 +1045,11 @@ sbpppoll(dev_t dev, int events, struct proc *p) { return (seltrue(dev, events, p)); } +int +sbppkqfilter(dev_t dev, struct knote *kn) +{ + return (seltrue_kqfilter(dev, kn)); +} int sbppioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) |