1 .\" $NetBSD: gpiolock.4,v 1.3 2009/08/15 09:59:12 cegger Exp $
3 .\" Copyright (c) 2009 Marc Balmer <marc@msys.ch>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 .Nd support for multi-position keylocks attached to GPIO pins
24 .Cd "gpiolock* at gpio? offset ? mask ?"
25 .Cd "gpiolock* at gpio?"
29 driver allows connecting of multi-position keylocks over GPIO pins.
30 The keylock driver registers with an in-kernel keylock supporting system
33 support through an experimental security model.
34 The keylock state can be queried using the hw.keylock sysctl variables.
35 Only locks with 2-4 positions are currently supported.
36 The pin number is specified in the kernel configuration with the
41 locator denotes the pins used for the lock (minimum 2, maximum 4 pins are used).
46 can also be specified when
48 is attached at runtime using the
60 driver first appeared in
67 .An Marc Balmer Aq marc@msys.ch .