diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-02-15 16:34:11 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-02-15 16:34:11 +0000 |
commit | 11781a7431fab609cd00058a63ac09ccddb16854 (patch) | |
tree | ee46dbf40488c941cf17b05e69bfe21e4f2d7128 /sys/i386 | |
parent | 5655168b87e22a331c5fc3b603901647ff90b2e4 (diff) | |
download | FreeBSD-src-11781a7431fab609cd00058a63ac09ccddb16854.zip FreeBSD-src-11781a7431fab609cd00058a63ac09ccddb16854.tar.gz |
Extend kqueue down to the device layer.
Backwards compatible approach suggested by: peter
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/cx.c | 5 | ||||
-rw-r--r-- | sys/i386/isa/cy.c | 5 | ||||
-rw-r--r-- | sys/i386/isa/istallion.c | 5 | ||||
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 5 | ||||
-rw-r--r-- | sys/i386/isa/rc.c | 5 | ||||
-rw-r--r-- | sys/i386/isa/rp.c | 5 | ||||
-rw-r--r-- | sys/i386/isa/stallion.c | 5 |
7 files changed, 21 insertions, 14 deletions
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index 094dc6f..1ec334b 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -100,8 +100,9 @@ struct cdevsw cx_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; #else struct tty *cx_tty [NCX*NCHAN]; /* tty data */ diff --git a/sys/i386/isa/cy.c b/sys/i386/isa/cy.c index 9a56e2d..7d7671d 100644 --- a/sys/i386/isa/cy.c +++ b/sys/i386/isa/cy.c @@ -405,8 +405,9 @@ static struct cdevsw sio_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static int comconsole = -1; diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index 61b7a50..41f66be 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -654,8 +654,9 @@ static struct cdevsw stli_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; #endif diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 74134bd..eddc14a 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -108,8 +108,9 @@ static struct cdevsw vt_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static int pcvt_probe(device_t dev); diff --git a/sys/i386/isa/rc.c b/sys/i386/isa/rc.c index a7e5ecb..6c1ca5d 100644 --- a/sys/i386/isa/rc.c +++ b/sys/i386/isa/rc.c @@ -107,8 +107,9 @@ static struct cdevsw rc_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; /* Per-board structure */ diff --git a/sys/i386/isa/rp.c b/sys/i386/isa/rp.c index 21c30cc..2740470 100644 --- a/sys/i386/isa/rp.c +++ b/sys/i386/isa/rp.c @@ -816,8 +816,9 @@ static struct cdevsw rp_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static int rp_controller_port = 0; diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c index 73c2ce1..9a4ee7f 100644 --- a/sys/i386/isa/stallion.c +++ b/sys/i386/isa/stallion.c @@ -552,8 +552,9 @@ static struct cdevsw stl_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_TTY, - /* bmaj */ -1 + /* flags */ D_TTY | D_KQFILTER, + /* bmaj */ -1, + /* kqfilter */ ttykqfilter, }; static void stl_drvinit(void *unused) |