Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cgfour(4S) — OS/MP 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mmap(2)

fbio(4S)

CGFOUR(4S)  —  DEVICES AND NETWORK INTERFACES

NAME

cgfour − Sun-3 compatible color memory frame buffer

CONFIG — SOLBOURNE SERIES 4, 5, 5E SYSTEMS

device cgfour0 at kbslot ? csr 0x00010000 priority 4

CONFIG — SOLBOURNE S4000 SYSTEMS

device cgfour0 at obio ? csr 0x00081000 priority 6
device cgfour1 at obio ? csr 0x00081000 priority 6
device cgfour2 at obio ? csr 0x00081000 priority 6

DESCRIPTION

The cgfour is a device driver for the model cg40 color memory frame buffer with a monochrome overlay plane and an overlay enable plane.  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 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 <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 ∗/
};

The driver uses color board vertical-retrace interrupts to load the colormap. 

FILES

/dev/cgfour0

SEE ALSO

mmap(2), fbio(4S)

Solbourne Computer, Inc.  —  26 December 1990

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