Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2012 00:30:38 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 213108 for review
Message-ID:  <201206190030.q5J0Uc06041681@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@213108?ac=10

Change 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206190030.q5J0Uc06041681>