diff options
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/gfx.h | 26 | ||||
-rw-r--r-- | include/asm-mips/ng1.h | 26 |
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; +}; |