Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fbio(4S) — SunOS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mmap(2)

fb(4S)

bwone(4S)

bwtwo(4S)

cgone(4S)

win(4S)

FBIO(4S)  —  SPECIAL FILES

NAME

fbio − general properties of frame buffers

DESCRIPTION

All of the Sun frame buffers support the same general interface.  Each responds to a FBIOGTYPE ioctl(2) which returns information in a structure defined in <sun/fbio.h>:

structfbtype {
intfb_type;/∗ as defined below ∗/
intfb_height;/∗ in pixels ∗/
intfb_width;/∗ in pixels ∗/
intfb_depth;/∗ bits per pixel ∗/
intfb_cmsize;/∗ size of color map (entries) ∗/
intfb_size;/∗ total size in bytes ∗/
};
 #defineFBTYPE_SUN1BW0
#defineFBTYPE_SUN1COLOR1
#defineFBTYPE_SUN2BW2

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

Full fledged frame buffers, i.e., those that expect to run SunWindows, implement an FBIOGPIXRECT ioctl(2), 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.

SEE ALSO

mmap(2), fb(4S), bwone(4S), bwtwo(4S), cgone(4S), win(4S)

Sun Release 1.1  —  Last change: 21 March 1984

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