1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License.  See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * SGI/Newport video card ioctl definitions
7 */
8#ifndef _ASM_NG1_H
9#define _ASM_NG1_H
10
11typedef struct {
12        int flags;
13        __u16 w, h;
14        __u16 fields_sec;
15} ng1_vof_info_t;
16
17struct ng1_info {
18	struct gfx_info gfx_info;
19	__u8 boardrev;
20        __u8 rex3rev;
21        __u8 vc2rev;
22        __u8 monitortype;
23        __u8 videoinstalled;
24        __u8 mcrev;
25        __u8 bitplanes;
26        __u8 xmap9rev;
27        __u8 cmaprev;
28        ng1_vof_info_t ng1_vof_info;
29        __u8 bt445rev;
30        __u8 paneltype;
31};
32
33#define GFX_NAME_NEWPORT "NG1"
34
35/* ioctls */
36#define NG1_SET_CURSOR_HOTSPOT 21001
37struct ng1_set_cursor_hotspot {
38	unsigned short xhot;
39        unsigned short yhot;
40};
41
42#define NG1_SETDISPLAYMODE     21006
43struct ng1_setdisplaymode_args {
44        int wid;
45        unsigned int mode;
46};
47
48#define NG1_SETGAMMARAMP0      21007
49struct ng1_setgammaramp_args {
50        unsigned char red   [256];
51        unsigned char green [256];
52        unsigned char blue  [256];
53};
54
55#endif /* _ASM_NG1_H */
56