diff options
author | 2004-06-03 18:13:13 +0000 | |
---|---|---|
committer | 2004-06-03 18:13:13 +0000 | |
commit | c83b81aac40b8ea89b85ddf3fa137adbfa32eb3e (patch) | |
tree | f7e8a3332649aef9bea278e61de1ad71bedb9ffc | |
parent | A framework for supporting various General Purpose Input/Output (GPIO) (diff) | |
download | wireguard-openbsd-c83b81aac40b8ea89b85ddf3fa137adbfa32eb3e.tar.xz wireguard-openbsd-c83b81aac40b8ea89b85ddf3fa137adbfa32eb3e.zip |
Enable GPIO for i386 port.
ok deraadt@
-rw-r--r-- | sys/arch/i386/conf/files.i386 | 7 | ||||
-rw-r--r-- | sys/arch/i386/i386/conf.c | 4 |
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]); |