http://p4web.freebsd.org/@@213108?ac=10Change 213108 by brooks@brooks_ecr_current on 2012/06/19 00:30:10
Add a de4bsw device to access buttons and switches from userspace.
A real GPIO interface probably makes more sense, but this was easy.
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4.hints#8 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4.hints#8 (text+ko) ====
@@ -62,6 +62,17 @@
#hint.altera_avgen.0.devname="de4flash"
#
+# Expose the DE4 buttons and switches via an Avalon "generic" device.
+#
+hint.altera_avgen.0.at="nexus0"
+hint.altera_avgen.0.maddr=0x7f009000
+hint.altera_avgen.0.msize=2
+hint.altera_avgen.0.width=1
+hint.altera_avgen.0.fileio="rw"
+hint.altera_avgen.0.mmapio="rwx"
+hint.altera_avgen.0.devname="de4bsw"
+
+#
# General Intel StrataFlash driver
#
hint.isf.0.at="nexus0"
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projectsTo unsubscribe, send any mail to "
[hidden email]"