linux-mips
[Top] [All Lists]

Linux/SGI Xsgi server: /dev/opengl ioctl NG1_SETDISPLAYMODE

To: linux@fir.engr.sgi.com
Subject: Linux/SGI Xsgi server: /dev/opengl ioctl NG1_SETDISPLAYMODE
From: Miguel de Icaza <miguel@nuclecu.unam.mx>
Date: Wed, 17 Sep 1997 20:34:42 -0500
Sender: owner-linux@cthulhu.engr.sgi.com
Hello guys,

   IRIX Xsgi server is now clearing the screen -and crashing since I
do not have a mouse driver yet, I am quickly coding the iDev mouse
driver now-.

   But while I am doing this, I would like to ask the list about
another ioctl that the X server is issuing: the NG1_SETDISPLAYMODE, it
is being called like this:

        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 0, 0xda0080 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 1, 0xda0100 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 2, 0xda0488 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 3, 0xda0490 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 4, 0xda0498 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 5, 0xda04a0 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 6, 0xda0500 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 7, 0xda0800 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 8, 0xda0900 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 9, 0xda0d00 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 0xa, 0xda0e00 });
        ioctl (/dev/opengl, NG1_SETDISPLAYMODE, { 0xb, 0x4ac });

    Where the structure is { int wid;  unsigned int mode }.

    Can someone tell me what the newport driver on the IRIX kernel is
doing with these calls?

    There is also another intersesting ioctl done later:
NG1_SETGAMMARAMP0, this one takes 256 reds, 256 greens and 256 blues
that I assume I have to load, do they go directly to the xmap9 lookup
table?

Thanks in advance,
Miguel.

<Prev in Thread] Current Thread [Next in Thread>