Technical data

SunOS 5.5 Ioctl Requests visual_io(7I)
NAME visual_io Solaris VISUAL I/O control operations
SYNOPSIS #include <sys/visual_io.h>
DESCRIPTION The Solaris VISUAL environment defines a small set of ioctls for controlling graphics and
imaging devices.
One ioctl, VIS_GETIDENTIFIER, is mandatory, and must be implementedin device
drivers for graphics devices using the Solaris VISUAL environment.The
VIS_GETIDENTIFIER, ioctl is defined to return a device identifier from the device driver.
This identifier must be a uniquely-defined string.
Another set of ioctls supports mouse tracking via hardware cursor operations. These are
optional, but if a graphics device has hardware cursor support and implements these
ioctls the mouse tracking performance will be improved.
IOCTLS VIS_GETIDENTIFIER
This ioctl returns an identifierstring to uniquely identify a device used
in the Solaris VISUAL environment. This is a mandatory ioctl and must
return a unique string. VIS_GETIDENTIFIER takes a vis_identifier
structure as its parameter. This structure has the form:
#define VIS_MAXNAMELEN 128
struct vis_identifier {
char name[VIS_MAXNAMELEN];
};
We suggest the name be formed as <companysymbol><devicetype>. For
example, the cgsix driver returns SUNWcg6 .
VIS_GETCURSOR
VIS_SETCURSOR
These ioctls fetch and set various cursor attributes, using the vis_cursor
structure.
struct vis_cursorpos {
short x; /cursor x coordinate /
short y; /cursor y coordinate /
};
struct vis_cursorcmap {
int version; /version /
int reserved;
unsigned char red; /red color map elements /
unsigned char green; /green color map elements /
unsigned char blue; /blue color map elements /
};
modified 17 Aug 1993 7I-393