xref: /freebsd/share/man/man4/dcons.4 (revision 4722ceb7d53e76507c76e053caab6b6f7b24ecef)
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.\"
25c6eaff98STom Rhodes.Dd January 26, 2008
26869093b1SHidetoshi Shimokawa.Dt DCONS 4
27869093b1SHidetoshi Shimokawa.Os
28869093b1SHidetoshi Shimokawa.Sh NAME
29869093b1SHidetoshi Shimokawa.Nm dcons
30869093b1SHidetoshi Shimokawa.Nd dumb console device driver
31869093b1SHidetoshi Shimokawa.Sh SYNOPSIS
3278ad5421SRuslan ErmilovTo compile this driver into the kernel,
33168d656bSMaxim Konovalovplace the following lines in your kernel configuration file:
34168d656bSMaxim Konovalov.Bd -ragged -offset indent
35168d656bSMaxim Konovalov.Cd "options GDB"
36168d656bSMaxim Konovalov.Cd "device firewire"
37168d656bSMaxim Konovalov.Cd "device dcons"
38168d656bSMaxim Konovalov.Ed
39869093b1SHidetoshi Shimokawa.Pp
4078ad5421SRuslan ErmilovAlternatively, to load the driver as a module at boot time,
41168d656bSMaxim Konovalovplace the following line in your kernel configuration file:
42168d656bSMaxim Konovalov.Bd -ragged -offset indent
43168d656bSMaxim Konovalov.Cd "options GDB"
44168d656bSMaxim Konovalov.Ed
45869093b1SHidetoshi Shimokawa.Pp
46168d656bSMaxim Konovalovand in
47168d656bSMaxim Konovalov.Xr loader.conf 5 :
48168d656bSMaxim Konovalov.Bd -ragged -offset indent
49168d656bSMaxim Konovalovdcons_load="YES"
50168d656bSMaxim Konovalov.Ed
51869093b1SHidetoshi Shimokawa.Sh DESCRIPTION
52869093b1SHidetoshi ShimokawaThe
53869093b1SHidetoshi Shimokawa.Nm
54b7da4442SChristian Bruefferdevice is a simple console device which just reads from and writes to
5501ddd31fSRuslan Ermilovan allocated buffer for input and output respectively.
56b7da4442SChristian BruefferIt is of no use by itself and it is supposed that the buffer is accessed
57869093b1SHidetoshi Shimokawavia a bus like
5869c6f506SHidetoshi Shimokawa.Xr firewire 4
59efa60c7aSHidetoshi Shimokawaor
60efa60c7aSHidetoshi Shimokawa.Xr kvm 3
61869093b1SHidetoshi Shimokawafor interaction.
62869093b1SHidetoshi Shimokawa.Pp
63869093b1SHidetoshi ShimokawaThe buffer consists of 4 channels.
6401ddd31fSRuslan ErmilovThere are 2 ports, one for the console TTY and another is GDB port,
6501ddd31fSRuslan Ermilovthen each port has an input channel and an output channel.
669cbda590SRuslan Ermilov.Sh FILES
679cbda590SRuslan Ermilov.Bl -tag -width indent -compact
689cbda590SRuslan Ermilov.It Pa /dev/dcons
699cbda590SRuslan Ermilov.It Pa /etc/ttys
709cbda590SRuslan Ermilov.El
7101ddd31fSRuslan Ermilov.Sh EXAMPLES
72869093b1SHidetoshi ShimokawaIf you want to run
73869093b1SHidetoshi Shimokawa.Xr getty 8
7401ddd31fSRuslan Ermilovon
7501ddd31fSRuslan Ermilov.Nm ,
7601ddd31fSRuslan Ermilovinsert the following line into
775c8e5f24SRuslan Ermilov.Xr ttys 5
7801ddd31fSRuslan Ermilovand send a
7901ddd31fSRuslan Ermilov.Dv HUP
8001ddd31fSRuslan Ermilovsignal to
81869093b1SHidetoshi Shimokawa.Xr init 8
82869093b1SHidetoshi Shimokawausing
83869093b1SHidetoshi Shimokawa.Xr kill 1 .
84869093b1SHidetoshi Shimokawa.Bd -literal -offset indent
85*4722ceb7SEd Mastedcons	"/usr/libexec/getty std.115200"	vt100	on  secure
86869093b1SHidetoshi Shimokawa.Ed
87869093b1SHidetoshi Shimokawa.Pp
88b7da4442SChristian BruefferOnce the
895c8e5f24SRuslan Ermilov.Xr fwohci 4
90869093b1SHidetoshi Shimokawadevice is initialized to allow physical access,
9101ddd31fSRuslan Ermilovthe buffer can be accessed from another host via a
9201ddd31fSRuslan Ermilov.Xr firewire 4
9301ddd31fSRuslan Ermilovbus using the
94efa60c7aSHidetoshi Shimokawa.Xr dconschat 8
9501ddd31fSRuslan Ermilovapplication.
9601ddd31fSRuslan ErmilovSee
97efa60c7aSHidetoshi Shimokawa.Xr dconschat 8
98869093b1SHidetoshi Shimokawafor more details.
99c6eaff98STom Rhodes.Pp
100c6eaff98STom RhodesIf you want to use
10116e36754SEdward Tomasz Napierala.Nm
102c6eaff98STom Rhodesas a
1033c405c7eSJens Schweikhardt.Xr gdb 1 Pq Pa ports/devel/gdb
104c6eaff98STom Rhodesport, add the following line into
10550d922a0SGlen Barber.Xr loader.conf 5 :
106c6eaff98STom Rhodes.Bd -literal -offset indent
107c6eaff98STom Rhodesdcons_gdb="1"
108c6eaff98STom Rhodes.Ed
109869093b1SHidetoshi Shimokawa.Sh SEE ALSO
110efa60c7aSHidetoshi Shimokawa.Xr dcons_crom 4 ,
111869093b1SHidetoshi Shimokawa.Xr ddb 4 ,
112869093b1SHidetoshi Shimokawa.Xr firewire 4 ,
113869093b1SHidetoshi Shimokawa.Xr fwohci 4 ,
114c6eaff98STom Rhodes.Xr gdb 4 ,
115b7da4442SChristian Brueffer.Xr ttys 5 ,
116bc02a976SWojciech A. Koszek.Xr conscontrol 8 ,
117efa60c7aSHidetoshi Shimokawa.Xr dconschat 8 ,
118bc02a976SWojciech A. Koszek.Xr fwcontrol 8
119869093b1SHidetoshi Shimokawa.Sh AUTHORS
1206c899950SBaptiste Daroussin.An Hidetoshi Shimokawa Aq Mt simokawa@FreeBSD.org
121869093b1SHidetoshi Shimokawa.Sh BUGS
12201ddd31fSRuslan ErmilovThis driver is
12330fc54eaSUlrich Spörlein.Ud
124