Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fbio(4S) — SunOS 4.0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ioctl(2)

mmap(2)

bwone(4S)

bwtwo(4S)

cgeight(4S)

cgfour(4S)

cgone(4S)

cgtwo(4S)

fb(4S)

win(4S)

FBIO(4S)  —  DEVICES AND NETWORK INTERFACES

NAME

fbio − frame buffer control operations

DESCRIPTION

All Sun frame buffers support the same general interface that is defined by /usr/include/sun/fbio.h.  Each responds to an FBIOGTYPE ioctl which returns information in a fbtype structure. 

Each device has an FBTYPE which is used by higher-level software to determine how to perform graphics functions.  Each device is used by opening it, doing an FBIOGTYPE ioctl to see which frame buffer type is present, and thereby selecting the appropriate device-management routines. 

Full-fledged frame buffers (that is, those that run SunView1) implement an FBIOGPIXRECT ioctl, which returns a pixrect.  This call is made only from inside the kernel.  The returned pixrect is used by win(4S) for cursor tracking and colormap loading. 

FBIOSVIDEO and FBIOGVIDEO are general-purpose ioctls for controlling possible video features of frame buffers.  These ioctls either set or return the value of a flags integer.  At this point, only the FBVIDEO_ON option is available, controlled by FBIOSVIDEO.  FBIOGVIDEO returns the current video state. 

The FBIOSATTR and FBIOGATTR ioctls allow access to special features of newer frame buffers.  They use the fbsattr and fbgattr structures. 

Some color frame buffers support the FBIOPUTCMAP and FBIOGETCMAP ioctls, which provide access to the colormap.  They use the fbcmap structure. 

SEE ALSO

ioctl(2), mmap(2), bwone(4S), bwtwo(4S), cgeight(4S), cgfour(4S), cgone(4S), cgtwo(4S), fb(4S), win(4S)

BUGS

The FBIOSATTR and FBIOGATTR ioctls are only supported by frame buffers which emulate older frame buffer types.  For example, cgfour(4S) frame buffers emulate bwtwo(4S) frame buffers. 

Sun Release 4.0  —  Last change: 1 May 1989

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