Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cgsix(4S) — SunOS 4.0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mmap(2)

fbio(4S)

CGSIX(4S)  —  DEVICES AND NETWORK INTERFACES

NAME

cgsix − low-end graphics accelerator with 8-bit color frame buffer

CONFIGURATION — SUN-3, SUN-4, and SUN-3x SYSTEMS

device cgsix0 at obmem ? csr 0xff000000 priority 4
device cgsix0 at obmem ? csr 0xfb000000 priority 4
device cgsix0 at obmem ? csr 0x50000000 priority 4

The first synopsis line is used for Sun-3 systems, the second for Sun-4 systems, and the third for Sun-3x systems. 

DESCRIPTION

cgsix(4S) is a low-end, P4 graphics accelerator that increases vector and polygon drawing performance.  It uses an 8-bit color frame buffer and provides the standard frame buffer interface, as defined in fbio(4S). 

In addition to the ioctls described under fbio, the cgsix interface responds to two cgsix-specific colormap ioctls, FBIOPUTCMAP and FBIOGETCMAP.  FBIOPUTCMAP returns no information other than success/failure using 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 /usr/include/sun/fbio.h as:

struct fbcmap {
int             index;  /∗ first element (0 origin) ∗/
int             count;  /∗ 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. 

cgsix contains memory that may be mapped in through calls to the cgsixmmap() function. Each portion of this memory is specified by an offset from the base address that is configured into the kernel. The portions that may be mapped are the colormap, the FBC/TEC, the FHC/THC, and the framebuffer.  The exact offsets are defined in /usr/includesundev/cg6reg.h. 

FILES

/dev/cgsix0

/usr/include/sundev/cg6reg.h

SEE ALSO

mmap(2), fbio(4S)

Sun Release 4.0  —  Last change: 22 March 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026