summaryrefslogtreecommitdiffstats
path: root/sys/dev/gpio/files.gpio
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/gpio/files.gpio')
-rw-r--r--sys/dev/gpio/files.gpio9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/gpio/files.gpio b/sys/dev/gpio/files.gpio
index 79fd80d3a03..796dbc02e43 100644
--- a/sys/dev/gpio/files.gpio
+++ b/sys/dev/gpio/files.gpio
@@ -1,11 +1,16 @@
-# $OpenBSD: files.gpio,v 1.6 2006/03/04 16:27:03 grange Exp $
+# $OpenBSD: files.gpio,v 1.7 2008/11/24 12:12:12 mbalmer Exp $
-define gpio {offset, mask}
+define gpio {[offset = -1], [mask = 0]}
device gpio: gpio
attach gpio at gpiobus
file dev/gpio/gpio.c gpio needs-flag
+# GPIO simulator
+device gpiosim: gpiobus
+attach gpiosim at root
+file dev/gpio/gpiosim.c gpiosim needs-flag
+
# I2C bus bit-banging
device gpioiic: i2cbus, i2c_bitbang
attach gpioiic at gpio