1
|
1 /*
|
|
2 *
|
|
3 * sis_vid.h
|
|
4 *
|
|
5 * Copyright (C) 2000 Aaron Holtzman
|
|
6 *
|
|
7 * YUV Framebuffer driver for SiS 6326 cards
|
|
8 *
|
|
9 * This software has been released under the terms of the GNU Public
|
|
10 * license. See http://www.gnu.org/copyleft/gpl.html for details.
|
|
11 */
|
|
12
|
|
13 #include <inttypes.h>
|
|
14
|
|
15 typedef struct mga_vid_config_s
|
|
16 {
|
|
17 uint32_t card_type;
|
|
18 uint32_t ram_size;
|
|
19 uint32_t src_width;
|
|
20 uint32_t src_height;
|
|
21 uint32_t dest_width;
|
|
22 uint32_t dest_height;
|
|
23 uint32_t x_org;
|
|
24 uint32_t y_org;
|
|
25 uint8_t colkey_on;
|
|
26 uint8_t colkey_red;
|
|
27 uint8_t colkey_green;
|
|
28 uint8_t colkey_blue;
|
|
29 } mga_vid_config_t;
|
|
30
|
|
31 #define MGA_VID_CONFIG _IOR('J', 1, mga_vid_config_t)
|
|
32 #define MGA_VID_ON _IO ('J', 2)
|
|
33 #define MGA_VID_OFF _IO ('J', 3)
|
|
34 #define MGA_VID_FSEL _IOR('J', 4, int)
|
|
35
|
|
36 #define MGA_G200 0x1234
|
|
37 #define MGA_G400 0x5678
|