summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1997-07-02 15:22:51 +0000
committerMiguel de Icaza <miguel@nuclecu.unam.mx>1997-07-02 15:22:51 +0000
commit66b0a462f497de7e93fbbd390b69c9f2dd1cb5ac (patch)
tree59aeaec2f2a0de34d14993a07fcd5e33b0c4bdb3 /include
parent9a29f42249e4ee73ad434e4dbdaaa28d759569c5 (diff)
Oopsie. Sorry, forgot to commit these.
These are IRIX compatible structures and constants for using /dev/graphics and the newport. I wonder if it is OK for us to copy them? I guess they are an API.
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips/gfx.h26
-rw-r--r--include/asm-mips/ng1.h26
2 files changed, 52 insertions, 0 deletions
diff --git a/include/asm-mips/gfx.h b/include/asm-mips/gfx.h
new file mode 100644
index 000000000..f183d5b3b
--- /dev/null
+++ b/include/asm-mips/gfx.h
@@ -0,0 +1,26 @@
+/*
+ * SGI GFX interface
+ */
+
+/* Applications depend on these defines/ioctls */
+
+#define GFX_BASE 100
+#define GFX_GETNUM_BOARDS (GFX_BASE + 1)
+#define GFX_GETBOARD_INFO (GFX_BASE + 2)
+
+#define GFX_INFO_NAME_SIZE 16
+#define GFX_INFO_LABEL_SIZE 16
+
+struct gfx_info {
+ char name [GFX_INFO_NAME_SIZE]; /* board name */
+ char label [GFX_INFO_LABEL_SIZE]; /* label name */
+ unsigned short int xpmax, ypmax; /* screen resolution */
+ unsigned int lenght; /* size of a complete gfx_info for this board */
+};
+
+struct gfx_getboardinfo_args {
+ unsigned int board; /* board number. starting from zero */
+ void *buf; /* pointer to gfx_info */
+ unsigned int len; /* buffer size of buf */
+};
+
diff --git a/include/asm-mips/ng1.h b/include/asm-mips/ng1.h
new file mode 100644
index 000000000..e7f3b6e02
--- /dev/null
+++ b/include/asm-mips/ng1.h
@@ -0,0 +1,26 @@
+/*
+ * SGI/Newport video card ioctl definitions
+ *
+ */
+
+typedef struct {
+ int flags;
+ u16 w, h;
+ u16 fields_sec;
+} ng1_vof_info_t;
+
+struct ng1_info {
+ struct gfx_info gfx_info;
+ u8 boardrev;
+ u8 rex3rev;
+ u8 vc2rev;
+ u8 monitortype;
+ u8 videoinstalled;
+ u8 mcrev;
+ u8 bitplanes;
+ u8 xmap9rev;
+ u8 cmaprev;
+ ng1_vof_info_t ng1_vof_info;
+ u8 bt445rev;
+ u8 paneltype;
+};