/* * gfx.c: support for SGI's /dev/graphics, /dev/opengl * * Author: Miguel de Icaza (miguel@nuclecu.unam.mx) * Ralf Baechle (ralf@gnu.org) * Ulf Carlsson (ulfc@bun.falkenberg.se) * * On IRIX, /dev/graphics is [10, 146] * /dev/opengl is [10, 147] * * From a mail with Mark J. Kilgard, /dev/opengl and /dev/graphics are * the same thing, the use of /dev/graphics seems deprecated though. * * The reason that the original SGI programmer had to use only one * device for all the graphic cards on the system will remain a * mistery for the rest of our lives. Why some ioctls take a board * number and some others not? Mistery. Why do they map the hardware * registers into the user address space with an ioctl instead of * mmap? Mistery too. Why they did not use the standard way of * making ioctl constants and instead sticked a random constant? * Mistery too. * * We implement those misterious things, and tried not to think about * the reasons behind them. */ #include #include #include #include #include #include #include #include #include #include #include #include "gconsole.h" #include "graphics.h" #include "usema.h" #include #include #include #include #include