summaryrefslogtreecommitdiffstats
path: root/drivers/sgi/char/graphics.h
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1997-07-02 06:20:17 +0000
committerMiguel de Icaza <miguel@nuclecu.unam.mx>1997-07-02 06:20:17 +0000
commitaa2e5b3c38f27ee5efda70e68be0ccff9c334f9b (patch)
treea3c777358e97c0ca4013c96c2a1e858a35995a0d /drivers/sgi/char/graphics.h
parentaf525316597ba42f324222ea8254ceb2f0c12681 (diff)
Preparing for supporting graphic drivers on Linux.
1. Make the code multiple-device aware (even if I can't test it, it is better to have it designed like this since now). 2. Added the beginning of the /dev/{graphics,opengl}, /dev/gfx drivers. 3. Renamed newport.c to cons_newport.c. This is just the console rendering code. Will put the more complex virtualizing, context switching code for the newport on newport.c 4. streamable.c is supposed to have all of the stream devices that we need for IRIX emulation (not much there just now): shmiq, gfx and keyboard and mouse plugins. More tomorrow, now it is time to sleep :-)
Diffstat (limited to 'drivers/sgi/char/graphics.h')
-rw-r--r--drivers/sgi/char/graphics.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/sgi/char/graphics.h b/drivers/sgi/char/graphics.h
new file mode 100644
index 000000000..6a26e785d
--- /dev/null
+++ b/drivers/sgi/char/graphics.h
@@ -0,0 +1,12 @@
+#define MAXCARDS 4
+
+struct graphics_ops {
+ struct task_struct *owner;
+
+ /* Board info */
+ void *board_info;
+ int board_info_len;
+
+ void (*save_context)(void);
+ void (*restore_context)(void);
+};