xref: /netbsd-src/share/man/man4/man4.sparc/cgsix.4 (revision 23c8222edbfb0f0932d88a8351d3a0cf817dfb9e)
1.\"	$NetBSD: cgsix.4,v 1.11 2003/08/07 10:31:08 agc Exp $
2.\"
3.\" Copyright 1994
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" This software was developed by the Computer Systems Engineering group
7.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
8.\" contributed to Berkeley.
9.\"
10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions
12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright
14.\"    notice, this list of conditions and the following disclaimer.
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\"    notice, this list of conditions and the following disclaimer in the
17.\"    documentation and/or other materials provided with the distribution.
18.\" 3. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"	from: @(#)cgsix.4	8.1 (Berkeley) 2/16/94
35.\"
36.Dd September 11, 2002
37.Dt CGSIX 4 sparc
38.Os
39.Sh NAME
40.Nm cgsix
41.Nd Sun accelerated 8-bit color frame buffer
42.Sh SYNOPSIS
43.Cd "cgsix* at sbus? slot ? offset ?" Pq sun4c/sun4m
44.Cd "cgsix0 at obio0 addr 0xfb000000 level 4" Pq sun4/300
45.Cd "cgsix0 at obio0 addr 0x0b000000 level 4" Pq sun4/100
46.Sh DESCRIPTION
47The
48.Nm
49is a memory based color frame buffer.
50It supports the minimal ioctl's needed to run
51.Xr X 1 .
52.Pp
53There are several versions of the
54.Nm
55board.  The Sun part numbers and
56board types are:
57.Pp
58.Bl -tag -width "501-1717, 501-2018, 501-2039" -compact
59.It "501-1374, 501-1532"
60P4 GX
61.It 501-1505
62P4 GX with 3/80 backpanel
63.It "501-1481, 501-1645"
64Sbus double-width GX
65.It "501-1672, 501-1996"
66Sbus GX
67.It "501-1717, 501-2018, 501-2039"
68Sbus GX+
69.It "501-2325, 501-2922"
70Sbus TGX
71.It "501-2253, 501-2955"
72Sbus TGX+
73.El
74.Pp
75There are also on-board
76.Sq GX
77cards in the
78.Sq SPARCstation IPX
79and
80.Sq SPARCstation LX
81machines.
82.Pp
83The
84.Sq GX
85and
86.Sq TGX
87cards have 1Mb of on-board memory and support a maximum graphics resolution
88of 1152x900.  The
89.Sq GX+
90cards have 4Mb of on-board memory and support a maximum resolution of
911280x1024.  The
92.Sq TGX+
93cards have 4Mb
94of on-board memory and support a maximum resolution of 1600x1280.  The
95.Sq TGX
96(Turbo GX) cards are faster than the
97.Sq GX
98cards.
99.Pp
100The number of supported resolutions varies by card type.  All cards support a
101resolution of 1152x900 at 66Hz.  All but the P4 and double-width cards support
102a resolution of 1152x900 at 76Hz.  The cards default to a resolution dependent
103on the attached monitor (usually 1152x900).
104.Pp
105It is only possible to change the resolution of a
106.Nm
107card from the PROM before the operating system is loaded.  For the primary
108card, this can be done using the
109.Sq output-device
110PROM field.  For example, for a
111.Sq TGX+
112card, the following PROM command will set the resolution to 1280x1024 at
11376Hz:
114.Bd -literal -offset indent
115setenv output-device screen:r1280x1024x76
116.Ed
117.Pp
118For secondary cards, a different method must be used to set the resolution.
119For a machine with OpenBoot 2.x or 3.x, and assuming a
120.Sq TGX
121card at Sbus slot 1, the following PROM commands will set the resolution to
1221024x768 at 60Hz:
123.Bd -literal -offset indent
124nvedit
125probe-all
126" /iommu/sbus/cgsix@1" select-dev
127r1024x768x60
128" /iommu/sbus/cgsix@1" " set-resolution" execute-device-method
129device-end
130install-console
131banner
132^C
133nvstore
134setenv use-nvramrc? true
135reset
136.Ed
137.Pp
138For Sun4c machines, the device-path above would be:
139.Bd -literal -offset indent
140" /sbus/cgsix@1"
141.Ed
142.Pp
143For Sun-4 and Sun-3 systems, it is only possible to change PROM fields by
144altering byte values.  For these systems, it is probably easier to use the
145.Xr eeprom 8
146command to set the
147.Va scrsize
148field to the desired resolution.
149.Sh EXAMPLES
150.Cd "cgsix0 at obio0 addr 0xfb000000 level 4: cgsix/p4, 1152 x 900, rev 1"
151.Cd "cgsix0 at sbus0 slot 0 offset 0x0 level 9: SUNW,501-2325, 1152 x 900, rev 11"
152.Cd "cgsix0 at sbus0 slot 0 offset 0x0 level 9: SUNW,501-2253, 1280 x 1024, rev 11"
153.Sh SEE ALSO
154.Xr bwtwo 4 ,
155.Xr cgtwo 4 ,
156.Xr cgthree 4 ,
157.Xr cgfour 4 ,
158.Xr cgeight 4 ,
159.Xr tcx 4 ,
160.Xr eeprom 8
161.Sh BUGS
162The double-width
163.Sq GX
164and the
165.Sq GX+
166cards are not compatible with UltraSPARC machines.
167.Pp
168Several firmware revisions on
169.Nm
170boards have a terminal emulation bug that shows up when using the
171screen control sequences for inserting blank lines
172near the bottom end of the screen
173(i.e., the control sequences produced by the
174.So al Sc and So AL Sc
175capabilities found in the
176.Xr termcap 5
177database).
178The most likely occasion for triggering
179this bug is to use a full-screen editor such as
180.Xr vi 1
181on the workstation's console.
182.Pp
183To work around this you can set your
184.Ev TERM
185environment variable to the
186.Sq sun-cgsix
187terminal definition which is the same as the
188.Sq sun
189entry, except that the
190.Sq al
191and
192.Sq AL
193capabilities have been removed (at the cost of making the scrolling of
194the screen slower).
195