Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/kqueue]: src/sys hook fbkqfilter to leaf drivers' kqfilter
details: https://anonhg.NetBSD.org/src/rev/05ba9a5e2442
branches: kqueue
changeset: 512493:05ba9a5e2442
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Jun 28 08:04:09 2002 +0000
description:
hook fbkqfilter to leaf drivers' kqfilter
diffstat:
sys/arch/sparc/dev/cgeight.c | 4 ++--
sys/arch/sparc/dev/cgfour.c | 4 ++--
sys/arch/sparc/dev/cgfourteen.c | 4 ++--
sys/arch/sparc/dev/cgtwo.c | 5 +++--
sys/dev/sbus/p9100.c | 6 +++---
sys/dev/sbus/tcx.c | 7 ++++---
sys/dev/sun/bwtwo.c | 7 ++++---
sys/dev/sun/cgsix.c | 7 ++++---
sys/dev/sun/cgthree.c | 6 +++---
sys/dev/sun/fb.c | 13 +++++++++++--
sys/dev/sun/fbvar.h | 5 ++++-
11 files changed, 42 insertions(+), 26 deletions(-)
diffs (271 lines):
diff -r d1468eadf90e -r 05ba9a5e2442 sys/arch/sparc/dev/cgeight.c
--- a/sys/arch/sparc/dev/cgeight.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/arch/sparc/dev/cgeight.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgeight.c,v 1.24.4.3 2002/06/28 07:50:41 jdolecek Exp $ */
+/* $NetBSD: cgeight.c,v 1.24.4.4 2002/06/28 08:04:20 jdolecek Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -143,7 +143,7 @@
/* frame buffer generic driver */
static struct fbdriver cgeightfbdriver = {
cgeightunblank, cgeightopen, cgeightclose, cgeightioctl,
- cgeightpoll, cgeightmmap
+ cgeightpoll, cgeightmmap, cgeightkqfilter
};
static void cgeightloadcmap __P((struct cgeight_softc *, int, int));
diff -r d1468eadf90e -r 05ba9a5e2442 sys/arch/sparc/dev/cgfour.c
--- a/sys/arch/sparc/dev/cgfour.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/arch/sparc/dev/cgfour.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgfour.c,v 1.24.4.3 2002/06/28 07:50:42 jdolecek Exp $ */
+/* $NetBSD: cgfour.c,v 1.24.4.4 2002/06/28 08:04:21 jdolecek Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -147,7 +147,7 @@
/* frame buffer generic driver */
static struct fbdriver cgfourfbdriver = {
cgfourunblank, cgfouropen, cgfourclose, cgfourioctl, cgfourpoll,
- cgfourmmap
+ cgfourmmap, cgfourkqfilter
};
static void cgfourloadcmap __P((struct cgfour_softc *, int, int));
diff -r d1468eadf90e -r 05ba9a5e2442 sys/arch/sparc/dev/cgfourteen.c
--- a/sys/arch/sparc/dev/cgfourteen.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/arch/sparc/dev/cgfourteen.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgfourteen.c,v 1.20.4.4 2002/06/28 07:50:43 jdolecek Exp $ */
+/* $NetBSD: cgfourteen.c,v 1.20.4.5 2002/06/28 08:04:22 jdolecek Exp $ */
/*
* Copyright (c) 1996
@@ -118,7 +118,7 @@
/* frame buffer generic driver */
static struct fbdriver cgfourteenfbdriver = {
cgfourteenunblank, cgfourteenopen, cgfourteenclose, cgfourteenioctl,
- cgfourteenpoll, cgfourteenmmap
+ cgfourteenpoll, cgfourteenmmap, cgfourteenkqfilter
};
static void cg14_set_video __P((struct cgfourteen_softc *, int));
diff -r d1468eadf90e -r 05ba9a5e2442 sys/arch/sparc/dev/cgtwo.c
--- a/sys/arch/sparc/dev/cgtwo.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/arch/sparc/dev/cgtwo.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgtwo.c,v 1.34.4.2 2002/06/28 07:50:44 jdolecek Exp $ */
+/* $NetBSD: cgtwo.c,v 1.34.4.3 2002/06/28 08:04:23 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -106,7 +106,8 @@
/* frame buffer generic driver */
static struct fbdriver cgtwofbdriver = {
- cgtwounblank, cgtwoopen, cgtwoclose, cgtwoioctl, cgtwopoll, cgtwommap
+ cgtwounblank, cgtwoopen, cgtwoclose, cgtwoioctl, cgtwopoll, cgtwommap,
+ cgtwokqfilter
};
/*
diff -r d1468eadf90e -r 05ba9a5e2442 sys/dev/sbus/p9100.c
--- a/sys/dev/sbus/p9100.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/dev/sbus/p9100.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: p9100.c,v 1.2.4.3 2002/06/28 07:50:48 jdolecek Exp $ */
+/* $NetBSD: p9100.c,v 1.2.4.4 2002/06/28 08:04:16 jdolecek Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: p9100.c,v 1.2.4.3 2002/06/28 07:50:48 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: p9100.c,v 1.2.4.4 2002/06/28 08:04:16 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -136,7 +136,7 @@
/* frame buffer generic driver */
static struct fbdriver p9100fbdriver = {
p9100unblank, p9100open, p9100close, p9100ioctl, p9100poll,
- p9100mmap
+ p9100mmap, p9100kqfilter
};
static void p9100loadcmap(struct p9100_softc *, int, int);
diff -r d1468eadf90e -r 05ba9a5e2442 sys/dev/sbus/tcx.c
--- a/sys/dev/sbus/tcx.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/dev/sbus/tcx.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcx.c,v 1.2.6.4 2002/06/28 07:50:49 jdolecek Exp $ */
+/* $NetBSD: tcx.c,v 1.2.6.5 2002/06/28 08:04:18 jdolecek Exp $ */
/*
* Copyright (c) 1996,1998 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.2.6.4 2002/06/28 07:50:49 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.2.6.5 2002/06/28 08:04:18 jdolecek Exp $");
/*
* define for cg8 emulation on S24 (24-bit version of tcx) for the SS5;
@@ -130,7 +130,8 @@
/* frame buffer generic driver */
static struct fbdriver tcx_fbdriver = {
- tcx_unblank, tcxopen, tcxclose, tcxioctl, tcxpoll, tcxmmap
+ tcx_unblank, tcxopen, tcxclose, tcxioctl, tcxpoll, tcxmmap,
+ tcxkqfilter
};
static void tcx_reset __P((struct tcx_softc *));
diff -r d1468eadf90e -r 05ba9a5e2442 sys/dev/sun/bwtwo.c
--- a/sys/dev/sun/bwtwo.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/dev/sun/bwtwo.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bwtwo.c,v 1.2.6.2 2002/06/28 07:50:46 jdolecek Exp $ */
+/* $NetBSD: bwtwo.c,v 1.2.6.3 2002/06/28 08:04:09 jdolecek Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.2.6.2 2002/06/28 07:50:46 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.2.6.3 2002/06/28 08:04:09 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -122,7 +122,8 @@
/* frame buffer generic driver */
static struct fbdriver bwtwofbdriver = {
- bwtwounblank, bwtwoopen, bwtwoclose, bwtwoioctl, bwtwopoll, bwtwommap
+ bwtwounblank, bwtwoopen, bwtwoclose, bwtwoioctl, bwtwopoll, bwtwommap,
+ bwtwokqfilter
};
int
diff -r d1468eadf90e -r 05ba9a5e2442 sys/dev/sun/cgsix.c
--- a/sys/dev/sun/cgsix.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/dev/sun/cgsix.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgsix.c,v 1.5.4.2 2002/06/28 07:50:46 jdolecek Exp $ */
+/* $NetBSD: cgsix.c,v 1.5.4.3 2002/06/28 08:04:11 jdolecek Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -89,7 +89,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.5.4.2 2002/06/28 07:50:46 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.5.4.3 2002/06/28 08:04:11 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -135,7 +135,8 @@
/* frame buffer generic driver */
static struct fbdriver cg6_fbdriver = {
- cg6_unblank, cgsixopen, cgsixclose, cgsixioctl, cgsixpoll, cgsixmmap
+ cg6_unblank, cgsixopen, cgsixclose, cgsixioctl, cgsixpoll, cgsixmmap,
+ cgsixkqfilter
};
static void cg6_reset (struct cgsix_softc *);
diff -r d1468eadf90e -r 05ba9a5e2442 sys/dev/sun/cgthree.c
--- a/sys/dev/sun/cgthree.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/dev/sun/cgthree.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgthree.c,v 1.2.6.2 2002/06/28 07:50:47 jdolecek Exp $ */
+/* $NetBSD: cgthree.c,v 1.2.6.3 2002/06/28 08:04:12 jdolecek Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.2.6.2 2002/06/28 07:50:47 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.2.6.3 2002/06/28 08:04:12 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -83,7 +83,7 @@
/* frame buffer generic driver */
static struct fbdriver cgthreefbdriver = {
cgthreeunblank, cgthreeopen, cgthreeclose, cgthreeioctl, cgthreepoll,
- cgthreemmap
+ cgthreemmap, cgthreekqfilter
};
/* Video control parameters */
diff -r d1468eadf90e -r 05ba9a5e2442 sys/dev/sun/fb.c
--- a/sys/dev/sun/fb.c Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/dev/sun/fb.c Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.c,v 1.3.2.2 2002/06/23 17:48:52 jdolecek Exp $ */
+/* $NetBSD: fb.c,v 1.3.2.3 2002/06/28 08:04:13 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.3.2.2 2002/06/23 17:48:52 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.3.2.3 2002/06/28 08:04:13 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -242,6 +242,15 @@
return (devfb->fb_driver->fbd_poll)(dev, events, p);
}
+int
+fbkqfilter(dev, kn)
+ dev_t dev;
+ struct knote *kn;
+{
+
+ return (devfb->fb_driver->fbd_kqfilter)(dev, kn);
+}
+
paddr_t
fbmmap(dev, off, prot)
dev_t dev;
diff -r d1468eadf90e -r 05ba9a5e2442 sys/dev/sun/fbvar.h
--- a/sys/dev/sun/fbvar.h Fri Jun 28 07:50:41 2002 +0000
+++ b/sys/dev/sun/fbvar.h Fri Jun 28 08:04:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fbvar.h,v 1.3 2000/08/23 12:02:47 pk Exp $ */
+/* $NetBSD: fbvar.h,v 1.3.6.1 2002/06/28 08:04:14 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -49,6 +49,8 @@
* following in order to participate.
*/
+#include <sys/event.h>
+
#ifdef RASTERCONSOLE
#include <dev/rcons/rcons.h>
#include <dev/wscons/wsdisplayvar.h>
@@ -63,6 +65,7 @@
int (*fbd_ioctl)(dev_t, u_long, caddr_t, int, struct proc *);
int (*fbd_poll)(dev_t, int, struct proc *);
paddr_t (*fbd_mmap)(dev_t, off_t, int);
+ int (*fbd_kqfilter)(dev_t, struct knote *);
#ifdef notyet
/*
* XXX redundant idea? these can hook into rasops on a per-device
Home |
Main Index |
Thread Index |
Old Index