Module Name: src
Committed By: mbalmer
Date: Sat Aug 1 15:43:01 UTC 2009
Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4: Makefile
Added Files:
src/share/man/man4: gpiosim.4
Log Message:
Add a manual page for the gpiosim(4) pseudo-device.
To generate a diff of this commit:
cvs rdiff -u -r1.1149 -r1.1150 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.493 -r1.494 src/share/man/man4/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/gpiosim.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1149 src/distrib/sets/lists/man/mi:1.1150
--- src/distrib/sets/lists/man/mi:1.1149 Mon Jul 27 12:34:12 2009
+++ src/distrib/sets/lists/man/mi Sat Aug 1 15:43:01 2009
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1149 2009/07/27 12:34:12 kiyohara Exp $
+# $NetBSD: mi,v 1.1150 2009/08/01 15:43:01 mbalmer Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -939,6 +939,7 @@
./usr/share/man/cat4/gpib.0 man-sys-catman .cat
./usr/share/man/cat4/gpio.0 man-sys-catman .cat
./usr/share/man/cat4/gpioow.0 man-sys-catman .cat
+./usr/share/man/cat4/gpiosim.0 man-sys-catman .cat
./usr/share/man/cat4/gre.0 man-sys-catman .cat
./usr/share/man/cat4/gsip.0 man-sys-catman .cat
./usr/share/man/cat4/gus.0 man-sys-catman .cat
@@ -3545,6 +3546,7 @@
./usr/share/man/html4/gpib.html man-sys-htmlman html
./usr/share/man/html4/gpio.html man-sys-htmlman html
./usr/share/man/html4/gpioow.html man-sys-htmlman html
+./usr/share/man/html4/gpiosim.html man-sys-htmlman html
./usr/share/man/html4/gre.html man-sys-htmlman html
./usr/share/man/html4/gsip.html man-sys-htmlman html
./usr/share/man/html4/gus.html man-sys-htmlman html
@@ -5931,6 +5933,7 @@
./usr/share/man/man4/gpib.4 man-sys-man .man
./usr/share/man/man4/gpio.4 man-sys-man .man
./usr/share/man/man4/gpioow.4 man-sys-man .man
+./usr/share/man/man4/gpiosim.4 man-sys-man .man
./usr/share/man/man4/gre.4 man-sys-man .man
./usr/share/man/man4/gsip.4 man-sys-man .man
./usr/share/man/man4/gus.4 man-sys-man .man
Index: src/share/man/man4/Makefile
diff -u src/share/man/man4/Makefile:1.493 src/share/man/man4/Makefile:1.494
--- src/share/man/man4/Makefile:1.493 Mon Jul 27 12:34:13 2009
+++ src/share/man/man4/Makefile Sat Aug 1 15:43:01 2009
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.493 2009/07/27 12:34:13 kiyohara Exp $
+# $NetBSD: Makefile,v 1.494 2009/08/01 15:43:01 mbalmer Exp $
# @(#)Makefile 8.1 (Berkeley) 6/18/93
MAN= aac.4 ac97.4 acardide.4 aceride.4 acphy.4 acpidalb.4 \
@@ -25,7 +25,7 @@
esa.4 esiop.4 esm.4 eso.4 etherip.4 exphy.4 \
fast_ipsec.4 fd.4 finsio.4 fpa.4 fms.4 fss.4 fxp.4 \
gcscaudio.4 gem.4 genfb.4 gentbi.4 geodeide.4 \
- glxtphy.4 gpib.4 gpio.4 gre.4 gphyter.4 gsip.4 hifn.4 hme.4 \
+ glxtphy.4 gpib.4 gpio.4 gpiosim.4 gre.4 gphyter.4 gsip.4 hifn.4 hme.4 \
hpqlb.4 hptide.4 \
ichlpcib.4 ichsmb.4 icmp.4 icp.4 icsphy.4 iee.4 ieee80211.4 \
ifmedia.4 igsfb.4 iha.4 iic.4 inet.4 ikphy.4 inphy.4 intersil7170.4 \
Added files:
Index: src/share/man/man4/gpiosim.4
diff -u /dev/null src/share/man/man4/gpiosim.4:1.1
--- /dev/null Sat Aug 1 15:43:01 2009
+++ src/share/man/man4/gpiosim.4 Sat Aug 1 15:43:01 2009
@@ -0,0 +1,48 @@
+.\" $NetBSD: gpiosim.4,v 1.1 2009/08/01 15:43:01 mbalmer Exp $
+.\"
+.\" Copyright (c) 2009 Marc Balmer <[email protected]>
+.\" All rights reserved.
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.Dd August 1, 2009
+.Dt GPIOSIM 4
+.Os
+.Sh NAME
+.Nm gpiosim
+.Nd General Purpose Input/Output Simulator
+.Sh SYNOPSIS
+.Cd "pseudo-device gpiosim"
+.Sh DESCRIPTION
+The
+.Nm
+pseudo-device simulates a 32-bit wide
+.Xr gpio 4
+device.
+The state of the simulated device can be manipulated through the
+.Xr sysctl 8
+interface.
+For this purpose, access the "hw.gpiosim<N>.value"
+.Xr sysctl 8
+variable, where "<N>" denotes the number of the
+.Nm
+instance.
+.Sh SEE ALSO
+.Xr gpio 4 ,
+.Xr sysctl 8
+.Sh AUTHORS
+.An -nosplit
+The
+.Nm
+driver was written by
+.An Marc Balmer Aq [email protected] .