comparison drivers/mga_vid.h @ 1:3b5f5d1c5041

Initial revision
author arpi_esp
date Sat, 24 Feb 2001 20:28:24 +0000
parents
children 52769330c66b
comparison
equal deleted inserted replaced
0:c1bb2c071d63 1:3b5f5d1c5041
1 /*
2 *
3 * mga_vid.h
4 *
5 * Copyright (C) 1999 Aaron Holtzman
6 *
7 * Matrox MGA G200/G400 YUV Video Interface module Version 0.1.0
8 *
9 * BES == Back End Scaler
10 *
11 * This software has been released under the terms of the GNU Public
12 * license. See http://www.gnu.org/copyleft/gpl.html for details.
13 */
14
15 #ifndef __LINUX_MGAVID_H
16 #define __LINUX_MGAVID_H
17
18 #include <inttypes.h>
19
20 typedef struct mga_vid_config_s
21 {
22 uint32_t card_type;
23 uint32_t ram_size;
24 uint32_t src_width;
25 uint32_t src_height;
26 uint32_t dest_width;
27 uint32_t dest_height;
28 uint32_t x_org;
29 uint32_t y_org;
30 uint8_t colkey_on;
31 uint8_t colkey_red;
32 uint8_t colkey_green;
33 uint8_t colkey_blue;
34 uint32_t format;
35 } mga_vid_config_t;
36
37 #define MGA_VID_FORMAT_YV12 0x32315659
38 #define MGA_VID_FORMAT_YUY2 (('Y'<<24)|('U'<<16)|('Y'<<8)|'2')
39
40 #define MGA_VID_CONFIG _IOR('J', 1, mga_vid_config_t)
41 #define MGA_VID_ON _IO ('J', 2)
42 #define MGA_VID_OFF _IO ('J', 3)
43 #define MGA_VID_FSEL _IOR('J', 4, int)
44
45 #define MGA_G200 0x1234
46 #define MGA_G400 0x5678
47
48 #endif