xref: /openbsd/share/man/man4/man4.luna88k/lcd.4 (revision 09467b48)
1.\"	$OpenBSD: lcd.4,v 1.4 2015/02/15 22:26:45 bentley Exp $
2.\"
3.\" Copyright (c) 2007 Kenji AOYAMA <aoyama@nk-home.net>
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 AND CONTRIBUTORS ``AS IS'' AND
16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.Dd $Mdocdate: February 15 2015 $
28.Dt LCD 4 luna88k
29.Os
30.Sh NAME
31.Nm lcd
32.Nd front panel LCD display
33.Sh SYNOPSIS
34.Cd "lcd0 at mainbus0"
35.Sh DESCRIPTION
36The
37.Nm
38driver provides access to the front panel LCD display on LUNA-88K.
39It is accessed using
40.Xr write 2
41to print the characters on the LCD.
42The device has a physical display area of 16 characters x 2 lines
43and an internal line buffer of 40 characters x 2 lines.
44.Pp
45The following ioctl calls apply to the
46.Nm
47device:
48.Bl -tag -width LCD
49.It Dv LCDCLS
50Clear the LCD screen, restore display area from shift and move the
51cursor to upper-left position.
52.It Dv LCDHOME
53Restore display area from shift and move the cursor to upper-left
54position.
55.It Dv LCDMODE Fa "int *"
56Specify cursor advance direction and display shift mode.
57.It Dv LCDDISP Fa "int *"
58Control display on/off, cursor on/off, and cursor blinking on/off.
59.It Dv LCDMOVE Fa "int *"
60Move the cursor or shift the display area.
61.It Dv LCDSEEK Fa "int *"
62Move the cursor to the specified position.
63On the first line, the position is specified by a value between 0x00 and 0x27.
64On the second line, the value is between 0x40 and 0x67.
65.It Dv LCDRESTORE
66Restore boot-time LCD message.
67.El
68.Pp
69These ioctl parameters are defined in
70.In machine/lcd.h .
71.Sh FILES
72.Bl -tag -width /dev/lcd
73.It Pa /dev/lcd
74.El
75.Sh SEE ALSO
76.Xr ioctl 2
77.Sh HISTORY
78The
79.Nm
80driver first appeared in
81.Ox 4.1 .
82