summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-11-25 15:42:16 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-11-25 15:42:16 +0000
commit7170ccc0b035f3ca11f8714cface932fac693eb6 (patch)
tree9168d9d49210ac41f522bc98a451d225eb9c209a /sys/arch/i386/include
parent90f41937ab4b61995a21cb11b4a11acfa9835d4c (diff)
fake out the apm device to switch between apm and acpi on i386. now
a single device node will talk to the right kernel code automatically. ok deraadt
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/conf.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/arch/i386/include/conf.h b/sys/arch/i386/include/conf.h
index cbf6a0b33cc..2c6e683ec90 100644
--- a/sys/arch/i386/include/conf.h
+++ b/sys/arch/i386/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.12 2005/12/31 21:22:34 miod Exp $ */
+/* $OpenBSD: conf.h,v 1.13 2007/11/25 15:42:15 tedu Exp $ */
/* $NetBSD: conf.h,v 1.2 1996/05/05 19:28:34 christos Exp $ */
/*
@@ -49,13 +49,7 @@ cdev_decl(fd);
cdev_decl(pc);
-#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_poll((*))) enodev, \
- (dev_type_mmap((*))) enodev, 0, D_KQFILTER, dev_init(c,n,kqfilter) }
-
-#define cdev_acpi_init(c,n) {\
+#define cdev_acpiapm_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_poll((*))) enodev, \
@@ -78,5 +72,7 @@ cdev_decl(acpi);
cdev_decl(apm);
+cdev_decl(acpiapm);
+
#define pctrpoll seltrue
cdev_decl(pctr);