summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/conf.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-18 06:08:09 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-08-18 06:08:09 +0000
commit49227549413b4f17e45ca23767bc3c3ef2cba81c (patch)
tree8f10e0babd3459a35d71ab6ea2bb41b89809e90a /sys/arch/i386/include/conf.h
parent080c67550fc82814a4fbea565daca7ebf54c6286 (diff)
make apm use kqueue for transferring events to luse listener.
apparently i thought i comitted this already before apmd. tested by me, art@ and jason@ .
Diffstat (limited to 'sys/arch/i386/include/conf.h')
-rw-r--r--sys/arch/i386/include/conf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/include/conf.h b/sys/arch/i386/include/conf.h
index 0646f0e604a..ae3ef445ee5 100644
--- a/sys/arch/i386/include/conf.h
+++ b/sys/arch/i386/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.7 1997/09/27 06:31:32 mickey Exp $ */
+/* $OpenBSD: conf.h,v 1.8 2001/08/18 06:08:08 mickey Exp $ */
/* $NetBSD: conf.h,v 1.2 1996/05/05 19:28:34 christos Exp $ */
/*
@@ -54,6 +54,12 @@ cdev_decl(pc);
dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
0, seltrue, (dev_type_mmap((*))) enodev }
+#define cdev_apm_init(c,n) {\
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
+ (dev_type_stop((*))) enodev, 0, (dev_type_select((*))) enodev, \
+ (dev_type_mmap((*))) enodev, D_KQFILTER, dev_init(c,n,kqfilter) }
+
cdev_decl(spkr);
cdev_decl(mms);