summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/gfx.h')
-rw-r--r--include/asm-mips/gfx.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/include/asm-mips/gfx.h b/include/asm-mips/gfx.h
index f183d5b3b..b5d8c7ac9 100644
--- a/include/asm-mips/gfx.h
+++ b/include/asm-mips/gfx.h
@@ -1,12 +1,21 @@
/*
- * SGI GFX interface
+ * This is the user-visible SGI GFX interface.
+ *
+ * This must be used verbatim into the GNU libc. It does not include
+ * any kernel-only bits on it.
+ *
+ * miguel@nuclecu.unam.mx
*/
-/* Applications depend on these defines/ioctls */
-
+/* The iocls, yes, they do not make sense, but such is life */
#define GFX_BASE 100
#define GFX_GETNUM_BOARDS (GFX_BASE + 1)
#define GFX_GETBOARD_INFO (GFX_BASE + 2)
+#define GFX_ATTACH_BOARD (GFX_BASE + 3)
+#define GFX_DETACH_BOARD (GFX_BASE + 4)
+#define GFX_IS_MANAGED (GFX_BASE + 5)
+
+#define GFX_MAPALL (GFX_BASE + 10)
#define GFX_INFO_NAME_SIZE 16
#define GFX_INFO_LABEL_SIZE 16
@@ -24,3 +33,12 @@ struct gfx_getboardinfo_args {
unsigned int len; /* buffer size of buf */
};
+struct gfx_attach_board_args {
+ unsigned int board; /* board number, starting from zero */
+ void *vaddr; /* address where the board registers should be mapped */
+};
+
+#ifdef __KERNEL__
+/* umap.c */
+extern void remove_mapping (struct task_struct *, unsigned long, unsigned long);
+#endif