blob: 2d0b34417e715f0452d5ca106cbab98c2a29a4a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<table class="head">
<tr>
<td class="head-ltitle">IBMCD(4)</td>
<td class="head-vol">Device Drivers Manual</td>
<td class="head-rtitle">IBMCD(4)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">ibmcd</code> — <span class="Nd">support
for the IBM 4810 BSP cash drawer port</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="Cd">ibmcd* at at pci ? dev ? function ?</code>
<br/>
<code class="Cd">gpio* at ibmcd?</code></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">ibmcd</code> driver controls the cash drawer
port of the IBM 4810 BSP PCI device found in IBM point of sale terminals
(e.g. in the SurePOS 300 series) using the GPIO subsystem.</p>
<p class="Pp"><code class="Nm">ibmcd</code> provides a GPIO device with three
pins: pin 0 is used to control the cash drawer while pin 1 can be used to
read the current state of the sense input pin. A logical 0 means the cash
drawer is closed, a logical 1 means the cash drawer is open.</p>
<p class="Pp">Pin 2 reports if a cash drawer is connected. A logical 0 means
there is no cash drawer connected, a logical 1 means the cash drawer is
connected.</p>
<p class="Pp">To open the cash drawer, set pin 0 to logical 1. There is no need
to reset pin 0 to logical 0 afterwards as the device generates a oneshot
impulse.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr">gpio(4)</a>, <a class="Xr">ptcd(4)</a>,
<a class="Xr">gpioctl(8)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">The <code class="Nm">ibmcd</code> driver first appeared in
<span class="Ux">NetBSD 6.1</span>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp">The <code class="Nm">ibmcd</code> driver was written by
<span class="An">Marc Balmer</span>
<<a class="Mt" href="mailto:marc@msys.ch">marc@msys.ch</a>>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">December 17, 2012</td>
<td class="foot-os">NetBSD 10.1</td>
</tr>
</table>
|