2 * SGI Rendering Resource Manager API (?).
4 * written by Miguel de Icaza (miguel@nuclecu.unam.mx)
6 * Ok, even if SGI choosed to do mmap trough ioctls, their
7 * kernel support for virtualizing the graphics card is nice.
9 * We should be able to make graphic applications on Linux
12 * This header file should be included from GNU libc as well.
16 /* Why like this you say? Well, gdb can print enums */
18 #define RRM_CMD_LIMIT (RRM_BASE + 100)
21 RRM_OPENRN
= RRM_BASE
, /* open rendering node */
23 RRM_BINDPROCTORN
, /* set current rendering region for node */
45 RRM_BINDRNTOREADANDCLIP
,
49 /* Parameters for the above ioctls
51 * All of the ioctls take as their first argument the rendering node id.
58 * This is called by the IRIX X server with:
59 * rnid = 0xffffffff rmask = 0
61 * Returns a number like this: 0x10001.
62 * If you run the X server over and over, you get a value
63 * that is of the form (n * 0x10000) + 1.
65 * The return value seems to be the RNID.
79 * Return value when the X server calls it: 0
81 struct RRM_BindProcToRN
{
86 int rrm_command (unsigned int cmd
, void *arg
);
87 int rrm_close (struct inode
*inode
, struct file
*file
);