summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-06-03 18:13:14 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-06-03 18:13:14 +0000
commitd4d87f9a7a3f4fdedbce6b4420f08f857036512c (patch)
treeb562ef3676806f77f992d28c5c178fa6bcf61fb7 /sys/arch
parent0818616dddb5e4e298d485cef38fb1162b73e613 (diff)
Enable GPIO for i386 port.
ok deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/conf/files.i3867
-rw-r--r--sys/arch/i386/i386/conf.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/i386/conf/files.i386 b/sys/arch/i386/conf/files.i386
index 62b6aca8ceb..3b81e09b868 100644
--- a/sys/arch/i386/conf/files.i386
+++ b/sys/arch/i386/conf/files.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: files.i386,v 1.119 2004/05/23 17:36:37 grange Exp $
+# $OpenBSD: files.i386,v 1.120 2004/06/03 18:13:13 grange Exp $
#
# new style config file for i386 architecture
#
@@ -356,3 +356,8 @@ include "dev/ieee1394/files.ieee1394"
# Machine-independent I2C drivers
#
include "dev/i2c/files.i2c"
+
+#
+# Machine-independent GPIO drivers
+#
+include "dev/gpio/files.gpio"
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index ec8657441bd..20f4b26245c 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.107 2004/05/30 08:11:26 grange Exp $ */
+/* $OpenBSD: conf.c,v 1.108 2004/06/03 18:13:13 grange Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -202,6 +202,7 @@ cdev_decl(pci);
#include "pf.h"
#include "hotplug.h"
+#include "gpio.h"
struct cdevsw cdevsw[] =
{
@@ -312,6 +313,7 @@ struct cdevsw cdevsw[] =
cdev_ch_init(NGPR,gpr), /* 80: GPR400 SmartCard reader */
cdev_ptm_init(NPTY,ptm), /* 81: pseudo-tty ptm device */
cdev_hotplug_init(NHOTPLUG,hotplug), /* 82: devices hot plugging */
+ cdev_gpio_init(NGPIO,gpio), /* 83: GPIO interface */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);