NetBSD/share/man/man4/gpiosim.4

49 lines
1.4 KiB
Groff
Raw Normal View History

.\" $NetBSD: gpiosim.4,v 1.6 2017/07/03 21:30:58 wiz Exp $
.\"
2013-05-20 19:49:03 +04:00
.\" Copyright (c) 2009, 2013 Marc Balmer <marc@msys.ch>
.\" 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.
.\"
2013-05-20 19:49:03 +04:00
.Dd May 20, 2013
.Dt GPIOSIM 4
.Os
.Sh NAME
.Nm gpiosim
.Nd General Purpose Input/Output Simulator
.Sh SYNOPSIS
.Cd "pseudo-device gpiosim"
.Sh DESCRIPTION
The
.Nm
2013-05-20 19:49:03 +04:00
pseudo-device simulates a 64-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
2013-07-21 01:39:55 +04:00
.An Marc Balmer Aq Mt marc@msys.ch .