device cgfour0 at obmem 4 csr 0xff000000 priority 4 device cgfour0 at obmem 7 csr 0xff300000 priority 4
The first synopsis line given should be used to generate a kernel for the Sun-3/110 system; and the second, for a Sun-3/60 system.
device cgfour0 at obmem ? csr 0x50300000 priority 4
device cgfour0 at obio 2 csr 0xfb300000 priority 4 device cgfour0 at obio 3 csr 0xfb300000 priority 4 device cgfour0 at obio 4 csr 0xfb300000 priority 4
The first synopsis line given should be used to generate a kernel for the Sun-4/110 system; the second, for a Sun-4/330 system; and the third for a Sun-4/460 system.
The cgfour is a color memory frame buffer with a monochrome overlay plane and an overlay enable plane implemented on the Sun-3/110 system and some Sun-3/60 system models. 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 { 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 Sun-3/60 system has an overlay plane colormap, which is accessed by encoding the plane group into the index value with the PIX_GROUP macro (see <pixrect/pr_planegroups.h>).
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97