xref: /netbsd-src/share/man/man4/man4.luna68k/lcd.4 (revision 34941bda13d31949df5d5dc82df4aab043ec7de5)
1.\"	$NetBSD: lcd.4,v 1.1 2022/06/12 03:51:13 tsutsui Exp $
2.\"	$OpenBSD: lcd.4,v 1.4 2015/02/15 22:26:45 bentley Exp $
3.\"
4.\" Copyright (c) 2007 Kenji AOYAMA <aoyama@nk-home.net>
5.\" All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.Dd June 12, 2022
29.Dt LCD 4 luna68k
30.Os
31.Sh NAME
32.Nm lcd
33.Nd front panel LCD display
34.Sh SYNOPSIS
35.Cd "lcd0 at mainbus0"
36.Sh DESCRIPTION
37The
38.Nm
39driver provides access to the front panel LCD display on LUNA.
40It is accessed using
41.Xr write 2
42to print the characters on the LCD.
43The device has a physical display area of 16 characters x 2 lines
44and an internal line buffer of 40 characters x 2 lines.
45.Pp
46The following ioctl calls apply to the
47.Nm
48device:
49.Bl -tag -width LCD
50.It Dv LCDCLS
51Clear the LCD screen, restore display area from shift and move the
52cursor to upper-left position.
53.It Dv LCDHOME
54Restore display area from shift and move the cursor to upper-left
55position.
56.It Dv LCDMODE Fa "int *"
57Specify cursor advance direction and display shift mode.
58.It Dv LCDDISP Fa "int *"
59Control display on/off, cursor on/off, and cursor blinking on/off.
60.It Dv LCDMOVE Fa "int *"
61Move the cursor or shift the display area.
62.It Dv LCDSEEK Fa "int *"
63Move the cursor to the specified position.
64On the first line, the position is specified by a value between 0x00 and 0x27.
65On the second line, the value is between 0x40 and 0x67.
66.It Dv LCDRESTORE
67Restore boot-time LCD message.
68.El
69.Pp
70These ioctl parameters are defined in
71.In machine/lcd.h .
72.Sh FILES
73.Bl -tag -width /dev/lcd
74.It Pa /dev/lcd
75.El
76.Sh SEE ALSO
77.Xr ioctl 2
78.Sh HISTORY
79The
80.Nm
81driver originally first appeared in
82.Ox 4.1 .
83It was ported from
84.Ox
85and first appeared in
86.Nx 8.0 .
87