blob: 2203121a43e9a0730bf25e2f336f78bda365a683 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_MATROXFB_H__
2#define __LINUX_MATROXFB_H__
3
4#include <asm/ioctl.h>
Jaswinder Singh Rajput00bfdda2009-01-15 13:51:26 -08005#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#include <linux/videodev2.h>
7
8struct matroxioc_output_mode {
9 __u32 output; /* which output */
10#define MATROXFB_OUTPUT_PRIMARY 0x0000
11#define MATROXFB_OUTPUT_SECONDARY 0x0001
12#define MATROXFB_OUTPUT_DFP 0x0002
13 __u32 mode; /* which mode */
14#define MATROXFB_OUTPUT_MODE_PAL 0x0001
15#define MATROXFB_OUTPUT_MODE_NTSC 0x0002
16#define MATROXFB_OUTPUT_MODE_MONITOR 0x0080
17};
18#define MATROXFB_SET_OUTPUT_MODE _IOW('n',0xFA,size_t)
19#define MATROXFB_GET_OUTPUT_MODE _IOWR('n',0xFA,size_t)
20
21/* bitfield */
22#define MATROXFB_OUTPUT_CONN_PRIMARY (1 << MATROXFB_OUTPUT_PRIMARY)
23#define MATROXFB_OUTPUT_CONN_SECONDARY (1 << MATROXFB_OUTPUT_SECONDARY)
24#define MATROXFB_OUTPUT_CONN_DFP (1 << MATROXFB_OUTPUT_DFP)
25/* connect these outputs to this framebuffer */
26#define MATROXFB_SET_OUTPUT_CONNECTION _IOW('n',0xF8,size_t)
27/* which outputs are connected to this framebuffer */
28#define MATROXFB_GET_OUTPUT_CONNECTION _IOR('n',0xF8,size_t)
29/* which outputs are available for this framebuffer */
30#define MATROXFB_GET_AVAILABLE_OUTPUTS _IOR('n',0xF9,size_t)
31/* which outputs exist on this framebuffer */
32#define MATROXFB_GET_ALL_OUTPUTS _IOR('n',0xFB,size_t)
33
34enum matroxfb_ctrl_id {
35 MATROXFB_CID_TESTOUT = V4L2_CID_PRIVATE_BASE,
36 MATROXFB_CID_DEFLICKER,
37 MATROXFB_CID_LAST
38};
39
Arnd Bergmann9adfbfb2009-02-26 00:51:40 +010040#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
Linus Torvalds1da177e2005-04-16 15:20:36 -070041
42#endif
43