CGTHREE(4S) — DEVICES AND NETWORK INTERFACES
NAME
cgthree − Sun386i color memory frame buffer
CONFIG
device cgthree0 at obmem ? csr 0xA0400000
AVAILABILITY
Sun386i systems only.
DESCRIPTION
cgthree is a color memory frame buffer. It provides the standard frame buffer interface as defined in fbio(4S).
In addition to the ioctls described under fbio(4S), the cgthree interface responds to two cgthree-specific colormap ioctl(2) parameters, FBIOPUTCMAP and .SB 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:
struct fbcmap {
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 ∗/
};
FILES
/dev/cgthree0
SEE ALSO
Sun Release 4.0 — Last change: 22 March 1989