xref: /freebsd/share/man/man4/dcons.4 (revision 3c405c7e83678684e61b3c1a17e89f65eb4f059a)
1869093b1SHidetoshi Shimokawa.\" Copyright (c) 2003 Hidetoshi Shimokawa
2869093b1SHidetoshi Shimokawa.\" All rights reserved.
3869093b1SHidetoshi Shimokawa.\"
4869093b1SHidetoshi Shimokawa.\" Redistribution and use in source and binary forms, with or without
5869093b1SHidetoshi Shimokawa.\" modification, are permitted provided that the following conditions
6869093b1SHidetoshi Shimokawa.\" are met:
7869093b1SHidetoshi Shimokawa.\" 1. Redistributions of source code must retain the above copyright
8869093b1SHidetoshi Shimokawa.\"    notice, this list of conditions and the following disclaimer.
9869093b1SHidetoshi Shimokawa.\" 2. Redistributions in binary form must reproduce the above copyright
10869093b1SHidetoshi Shimokawa.\"    notice, this list of conditions and the following disclaimer in the
11869093b1SHidetoshi Shimokawa.\"    documentation and/or other materials provided with the distribution.
12869093b1SHidetoshi Shimokawa.\"
13869093b1SHidetoshi Shimokawa.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14869093b1SHidetoshi Shimokawa.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15869093b1SHidetoshi Shimokawa.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16869093b1SHidetoshi Shimokawa.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17869093b1SHidetoshi Shimokawa.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18869093b1SHidetoshi Shimokawa.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19869093b1SHidetoshi Shimokawa.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20869093b1SHidetoshi Shimokawa.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21869093b1SHidetoshi Shimokawa.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22869093b1SHidetoshi Shimokawa.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23869093b1SHidetoshi Shimokawa.\" POSSIBILITY OF SUCH DAMAGE.
24869093b1SHidetoshi Shimokawa.\"
25869093b1SHidetoshi Shimokawa.\" $FreeBSD$
26869093b1SHidetoshi Shimokawa.\"
27c6eaff98STom Rhodes.Dd January 26, 2008
28869093b1SHidetoshi Shimokawa.Dt DCONS 4
29869093b1SHidetoshi Shimokawa.Os
30869093b1SHidetoshi Shimokawa.Sh NAME
31869093b1SHidetoshi Shimokawa.Nm dcons
32869093b1SHidetoshi Shimokawa.Nd dumb console device driver
33869093b1SHidetoshi Shimokawa.Sh SYNOPSIS
3478ad5421SRuslan ErmilovTo compile this driver into the kernel,
35168d656bSMaxim Konovalovplace the following lines in your kernel configuration file:
36168d656bSMaxim Konovalov.Bd -ragged -offset indent
37168d656bSMaxim Konovalov.Cd "options GDB"
38168d656bSMaxim Konovalov.Cd "device firewire"
39168d656bSMaxim Konovalov.Cd "device dcons"
40168d656bSMaxim Konovalov.Ed
41869093b1SHidetoshi Shimokawa.Pp
4278ad5421SRuslan ErmilovAlternatively, to load the driver as a module at boot time,
43168d656bSMaxim Konovalovplace the following line in your kernel configuration file:
44168d656bSMaxim Konovalov.Bd -ragged -offset indent
45168d656bSMaxim Konovalov.Cd "options GDB"
46168d656bSMaxim Konovalov.Ed
47869093b1SHidetoshi Shimokawa.Pp
48168d656bSMaxim Konovalovand in
49168d656bSMaxim Konovalov.Xr loader.conf 5 :
50168d656bSMaxim Konovalov.Bd -ragged -offset indent
51168d656bSMaxim Konovalovdcons_load="YES"
52168d656bSMaxim Konovalov.Ed
53869093b1SHidetoshi Shimokawa.Sh DESCRIPTION
54869093b1SHidetoshi ShimokawaThe
55869093b1SHidetoshi Shimokawa.Nm
56b7da4442SChristian Bruefferdevice is a simple console device which just reads from and writes to
5701ddd31fSRuslan Ermilovan allocated buffer for input and output respectively.
58b7da4442SChristian BruefferIt is of no use by itself and it is supposed that the buffer is accessed
59869093b1SHidetoshi Shimokawavia a bus like
6069c6f506SHidetoshi Shimokawa.Xr firewire 4
61efa60c7aSHidetoshi Shimokawaor
62efa60c7aSHidetoshi Shimokawa.Xr kvm 3
63869093b1SHidetoshi Shimokawafor interaction.
64869093b1SHidetoshi Shimokawa.Pp
65869093b1SHidetoshi ShimokawaThe buffer consists of 4 channels.
6601ddd31fSRuslan ErmilovThere are 2 ports, one for the console TTY and another is GDB port,
6701ddd31fSRuslan Ermilovthen each port has an input channel and an output channel.
689cbda590SRuslan Ermilov.Sh FILES
699cbda590SRuslan Ermilov.Bl -tag -width indent -compact
709cbda590SRuslan Ermilov.It Pa /dev/dcons
719cbda590SRuslan Ermilov.It Pa /etc/ttys
729cbda590SRuslan Ermilov.El
7301ddd31fSRuslan Ermilov.Sh EXAMPLES
74869093b1SHidetoshi ShimokawaIf you want to run
75869093b1SHidetoshi Shimokawa.Xr getty 8
7601ddd31fSRuslan Ermilovon
7701ddd31fSRuslan Ermilov.Nm ,
7801ddd31fSRuslan Ermilovinsert the following line into
795c8e5f24SRuslan Ermilov.Xr ttys 5
8001ddd31fSRuslan Ermilovand send a
8101ddd31fSRuslan Ermilov.Dv HUP
8201ddd31fSRuslan Ermilovsignal to
83869093b1SHidetoshi Shimokawa.Xr init 8
84869093b1SHidetoshi Shimokawausing
85869093b1SHidetoshi Shimokawa.Xr kill 1 .
86869093b1SHidetoshi Shimokawa.Bd -literal -offset indent
87869093b1SHidetoshi Shimokawadcons	"/usr/libexec/getty std.9600"	vt100	on  secure
88869093b1SHidetoshi Shimokawa.Ed
89869093b1SHidetoshi Shimokawa.Pp
90b7da4442SChristian BruefferOnce the
915c8e5f24SRuslan Ermilov.Xr fwohci 4
92869093b1SHidetoshi Shimokawadevice is initialized to allow physical access,
9301ddd31fSRuslan Ermilovthe buffer can be accessed from another host via a
9401ddd31fSRuslan Ermilov.Xr firewire 4
9501ddd31fSRuslan Ermilovbus using the
96efa60c7aSHidetoshi Shimokawa.Xr dconschat 8
9701ddd31fSRuslan Ermilovapplication.
9801ddd31fSRuslan ErmilovSee
99efa60c7aSHidetoshi Shimokawa.Xr dconschat 8
100869093b1SHidetoshi Shimokawafor more details.
101c6eaff98STom Rhodes.Pp
102c6eaff98STom RhodesIf you want to use
10316e36754SEdward Tomasz Napierala.Nm
104c6eaff98STom Rhodesas a
105*3c405c7eSJens Schweikhardt.Xr gdb 1 Pq Pa ports/devel/gdb
106c6eaff98STom Rhodesport, add the following line into
10750d922a0SGlen Barber.Xr loader.conf 5 :
108c6eaff98STom Rhodes.Bd -literal -offset indent
109c6eaff98STom Rhodesdcons_gdb="1"
110c6eaff98STom Rhodes.Ed
111869093b1SHidetoshi Shimokawa.Sh SEE ALSO
112efa60c7aSHidetoshi Shimokawa.Xr dcons_crom 4 ,
113869093b1SHidetoshi Shimokawa.Xr ddb 4 ,
114869093b1SHidetoshi Shimokawa.Xr firewire 4 ,
115869093b1SHidetoshi Shimokawa.Xr fwohci 4 ,
116c6eaff98STom Rhodes.Xr gdb 4 ,
117b7da4442SChristian Brueffer.Xr ttys 5 ,
118bc02a976SWojciech A. Koszek.Xr conscontrol 8 ,
119efa60c7aSHidetoshi Shimokawa.Xr dconschat 8 ,
120bc02a976SWojciech A. Koszek.Xr fwcontrol 8
121869093b1SHidetoshi Shimokawa.Sh AUTHORS
1226c899950SBaptiste Daroussin.An Hidetoshi Shimokawa Aq Mt simokawa@FreeBSD.org
123869093b1SHidetoshi Shimokawa.Sh BUGS
12401ddd31fSRuslan ErmilovThis driver is
12530fc54eaSUlrich Spörlein.Ud
126