xref: /netbsd-src/share/man/man4/ibmcd.4 (revision 6cb10275d08f045e872662c371fe2f2724f2f6e6)
1.\"	$NetBSD: ibmcd.4,v 1.4 2014/03/18 18:20:39 riastradh Exp $
2.\"
3.\" Copyright (c) 2012 Marc Balmer <marc@msys.ch>
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.Dd December 17, 2012
27.Dt IBMCD 4
28.Os
29.Sh NAME
30.Nm ibmcd
31.Nd support for the IBM 4810 BSP cash drawer port
32.Sh SYNOPSIS
33.Cd "ibmcd* at at pci ? dev ? function ?"
34.Cd "gpio* at ibmcd?"
35.Sh DESCRIPTION
36The
37.Nm
38driver controls the cash drawer port of the IBM 4810 BSP PCI device found
39in IBM point of sale terminals (e.g. in the SurePOS 300 series) using the GPIO
40subsystem.
41.Pp
42.Nm
43provides a GPIO device with three pins: pin 0 is used to control the cash drawer
44while pin 1 can be used to read the current state of the sense input pin.
45A logical 0 means the cash drawer is closed, a logical 1 means the cash drawer
46is open.
47.Pp
48Pin 2 reports if a cash drawer is connected.
49A logical 0 means there is no cash drawer connected, a logical 1 means the cash drawer is connected.
50.Pp
51To open the cash drawer, set pin 0 to logical 1.
52There is no need to reset pin 0 to logical 0 afterwards as the device generates
53a oneshot impulse.
54.Sh SEE ALSO
55.Xr gpio 4 ,
56.Xr ptcd 4 ,
57.Xr gpioctl 8
58.Sh HISTORY
59The
60.Nm
61driver first appeared in
62.Nx 6.1 .
63.Sh AUTHORS
64.An -nosplit
65The
66.Nm
67driver was written by
68.An Marc Balmer Aq Mt marc@msys.ch .
69