Merge from vendor branch OPENSSL:
[dragonfly.git] / share / man / man4 / vga.4
1 .\"
2 .\" Copyright (c) 1999
3 .\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
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 as
11 .\"    the first lines of this file unmodified.
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 ``AS IS'' AND ANY EXPRESS OR
17 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 .\"
27 .\" $FreeBSD: src/share/man/man4/vga.4,v 1.7.2.10 2002/12/20 18:03:05 trhodes Exp $
28 .\" $DragonFly: src/share/man/man4/vga.4,v 1.6 2008/01/09 22:08:29 swildner Exp $
29 .\"
30 .Dd January 9, 2008
31 .Dt VGA 4
32 .Os
33 .Sh NAME
34 .Nm vga
35 .Nd generic video card interface
36 .Sh SYNOPSIS
37 .Cd "options VESA"
38 .Cd "options VESA_DEBUG=N"
39 .Cd "options VGA_ALT_SEQACCESS"
40 .Cd "options VGA_NO_FONT_LOADING"
41 .Cd "options VGA_NO_MODE_CHANGE"
42 .Cd "options VGA_SLOW_IOACCESS"
43 .Cd "options VGA_DEBUG=N"
44 .Cd "options VGA_WIDTH90"
45 .Cd "device vga0 at isa? port ?"
46 .Sh DESCRIPTION
47 The
48 .Nm
49 driver is a generic video card driver which provides access to
50 video cards.
51 This driver is required for the console driver
52 .Xr syscons 4 .
53 The console driver will call the
54 .Nm
55 driver to manipulate video hardware (changing video modes, loading font, etc).
56 .Pp
57 The
58 .Nm
59 driver supports the standard VGA video cards.
60 In addition, the driver can utilize the VESA BIOS Extension if the video card
61 supports it.
62 VESA support can either be statically included in the kernel
63 or can be loaded as a separate module.
64 .Pp
65 In order to statically link the VESA support into the kernel, the
66 .Dv VESA
67 option (see below) must be defined in the kernel configuration file.
68 .Pp
69 The
70 .Nm vesa
71 module can be dynamically loaded into the kernel using
72 .Xr kldload 8 .
73 .Sh DRIVER CONFIGURATION
74 .Ss Kernel Configuration Options
75 The following kernel configuration options
76 (see
77 .Xr config 8 )
78 can be used to control the
79 .Nm
80 driver.
81 These options provide compatibility with certain VGA cards.
82 .Bl -tag -width ".Dv VGA_NO_FONT_LOADING"
83 .It Dv VGA_ALT_SEQACCESS
84 You may want to try this option if the mouse pointer is not drawn correctly
85 or the font does not seem to be loaded properly on the VGA card.
86 However, it may cause flicker on some systems.
87 .It Dv VGA_DEBUG=N
88 Set the VGA support debug level to
89 .Fa N .
90 The default value is 0, which suppresses all debugging output.
91 A value of 2 gives maximum verbosity.
92 .It Dv VGA_SLOW_IOACCESS
93 Older VGA cards may require this option for proper operation.
94 It makes the driver perform byte-wide I/O to VGA registers and
95 slow down a little.
96 .It Dv VGA_WIDTH90
97 This option enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60.
98 These modes are not always supported by the video card and the display.
99 It is highly likely that LCD display cannot work with these modes.
100 .El
101 .Pp
102 The following options add optional features to the driver.
103 .Bl -tag -width ".Dv VGA_NO_FONT_LOADING"
104 .It Dv VESA
105 Add VESA BIOS Extension support to the driver.
106 If the VGA card has the VESA BIOS Extension 1.2 or later,
107 this option will utilize it to switch to high resolution modes.
108 .It Dv VESA_DEBUG=N
109 Set the VESA support debug level to
110 .Fa N .
111 The default value is 0, which suppresses all debugging output.
112 A value of 2 gives maximum verbosity.
113 .El
114 .Pp
115 The following options will remove some features from the
116 .Nm
117 driver and save kernel memory.
118 .Bl -tag -width ".Dv VGA_NO_FONT_LOADING"
119 .It Dv VGA_NO_FONT_LOADING
120 This option removes font loading from the driver.
121 Note that if you use this option and
122 still wish to use the mouse on the console then you must also use the
123 .Dv SC_ALT_MOUSE_IMAGE
124 option.
125 See
126 .Xr syscons 4 .
127 .It Dv VGA_NO_MODE_CHANGE
128 This option prevents the driver from changing video modes.
129 .El
130 .Sh EXAMPLES
131 Your kernel configuration should normally have:
132 .Pp
133 .D1 Cd "device vga0 at isa? port ?"
134 .Pp
135 The following line should be included in the kernel configuration file
136 in order to enable the VESA BIOS Extension support.
137 .Pp
138 .D1 Cd "options VESA"
139 .Pp
140 If you do not want VESA support included in the kernel, but
141 want to use occasionally, do not add the
142 .Dv VESA
143 option.
144 And load the
145 .Nm vesa
146 module as desired:
147 .Pp
148 .Dl kldload vesa
149 .Sh SEE ALSO
150 .Xr vgl 3 ,
151 .Xr syscons 4 ,
152 .Xr config 8 ,
153 .Xr kldload 8 ,
154 .Xr kldunload 8
155 .Sh STANDARDS
156 .Rs
157 .%A "Apple, IBM, Motorola"
158 .%T "Common Hardware Reference Platform: I/O Device Reference"
159 .%B "Appendix A: VGA Programming Model"
160 .%P "p. 195"
161 .%O "ftp://ftp.software.ibm.com/rs6000/technology/spec/chrp/"
162 .Re
163 .Pp
164 .Rs
165 .%T "VESA BIOS Extension (VBE)"
166 .%A Video Electronics Standards Association
167 .Re
168 .Sh HISTORY
169 The
170 .Nm
171 driver first appeared in
172 .Fx 3.1 .
173 .Sh AUTHORS
174 .An -nosplit
175 The
176 .Nm
177 driver was written by
178 .An S\(/oren Schmidt Aq sos@FreeBSD.org
179 and
180 .An Kazutaka Yokota Aq yokota@FreeBSD.org .
181 This manual page was written by
182 .An Kazutaka Yokota .