From 0a0263e44226633803cd424bf227f54c5a84e39c Mon Sep 17 00:00:00 2001 From: mbalmer Date: Sat, 1 Aug 2009 15:43:01 +0000 Subject: [PATCH] Add a manual page for the gpiosim(4) pseudo-device. --- distrib/sets/lists/man/mi | 5 +++- share/man/man4/Makefile | 4 ++-- share/man/man4/gpiosim.4 | 48 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 share/man/man4/gpiosim.4 diff --git a/distrib/sets/lists/man/mi b/distrib/sets/lists/man/mi index 6281dd624844..ca533913108a 100644 --- a/distrib/sets/lists/man/mi +++ b/distrib/sets/lists/man/mi @@ -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 diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index bfcd337c6a20..848f925a7918 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -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 @@ MAN= aac.4 ac97.4 acardide.4 aceride.4 acphy.4 acpidalb.4 \ 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 \ diff --git a/share/man/man4/gpiosim.4 b/share/man/man4/gpiosim.4 new file mode 100644 index 000000000000..b8ec967f2d3d --- /dev/null +++ b/share/man/man4/gpiosim.4 @@ -0,0 +1,48 @@ +.\" $NetBSD: gpiosim.4,v 1.1 2009/08/01 15:43:01 mbalmer Exp $ +.\" +.\" Copyright (c) 2009 Marc Balmer +.\" 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.value" +.Xr sysctl 8 +variable, where "" 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 marc@msys.ch .