NetBSD/sys/dev/gpio/files.gpio
mbalmer 9d8b69b23a Do not attach gpiosim(4) at root, but make it a pseudo device.
With help from Matthias Drochner, thanks!
2009-07-27 17:40:57 +00:00

17 lines
390 B
Plaintext

# $NetBSD: files.gpio,v 1.6 2009/07/27 17:40:57 mbalmer Exp $
define gpio {[offset = -1], [mask = 0]}
device gpio: gpio
attach gpio at gpiobus
file dev/gpio/gpio.c gpio needs-flag
# GPIO simulator
defpseudodev gpiosim: gpiobus
file dev/gpio/gpiosim.c gpiosim
# 1-Wire bus bit-banging
device gpioow: onewirebus, onewire_bitbang
attach gpioow at gpio
file dev/gpio/gpioow.c gpioow