CGFOUR(4S) — SPECIAL FILES
NAME
cgfour − Sun-3 color graphics interface
SYNOPSIS — SUN-3
cgfour0 at obmem 4 csr 0xff000000
DESCRIPTION
The cgfour is the Sun-3/110 color frame buffer, normally supplied with a 19” color, 19” grayscale, or 15” color 66 Hz non-interlaced color monitor. It provides the standard frame buffer interface as defined in fbio(4S).
In addition to the ioctls described under fbio(4s), the cgfour interface responds to two cgfour-specific colormap ioctls, FBIOPUTCMAP and FBIOGETCMAP. FBIOPUTCMAP returns no information other than success/failure via the ioctl return value. FBIOGETCMAP returns its information in the arrays pointed to by the red, green, and blue members of its fbcmap structure argument; fbcmap is defined in <sun/fbio.h> as:
structfbcmap {
intindex;/∗ first element (0 origin) ∗/
intcount;/∗ number of elements ∗/
unsigned char ∗red;/∗ red color map elements ∗/
unsigned char∗green;/∗ green color map elements ∗/
unsigned char∗blue;/∗ blue color map elements ∗/
};
The driver uses color board vertical-retrace interrupts to load the colormap.
Currently the ioctls FBIOSATTR and FBIOGATTR are only supported by the cgfour frame buffer. See fbio(4S).
FILES
/dev/cgfour0
SEE ALSO
Sun-3/1xx CPU Board Hardware Engineering Manual
BUGS
The FBVIDEO_ON value returned by the FBIOGVIDEO ioctl may be incorrect. See fbio(4S).
Sun Release 3.2 — Last change: 25 July 1986