2017-07-04 00:28:48 +03:00
|
|
|
.\" $NetBSD: gpiosim.4,v 1.6 2017/07/03 21:30:58 wiz Exp $
|
2009-08-01 19:43:01 +04:00
|
|
|
.\"
|
2013-05-20 19:49:03 +04:00
|
|
|
.\" Copyright (c) 2009, 2013 Marc Balmer <marc@msys.ch>
|
2009-08-01 19:43:01 +04:00
|
|
|
.\" 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
|
2009-08-01 19:43:01 +04:00
|
|
|
.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
|
2009-08-01 19:43:01 +04:00
|
|
|
.Xr gpio 4
|
|
|
|
device.
|
|
|
|
The state of the simulated device can be manipulated through the
|
|
|
|
.Xr sysctl 8
|
|
|
|
interface.
|
2017-07-04 00:28:48 +03:00
|
|
|
For this purpose, access the "hw.gpiosim<N>.value"
|
2009-08-01 19:43:01 +04:00
|
|
|
.Xr sysctl 8
|
2017-07-04 00:28:48 +03:00
|
|
|
variable, where "<N>" denotes the number of the
|
2009-08-01 19:43:01 +04:00
|
|
|
.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 .
|