blob: 1e0e62629c30089a699205174fd700ced554db26 [file] [log] [blame]
Rebecca Schultz Zavindb21d7e2010-09-23 23:19:26 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __SOC2030_H__
13#define __SOC2030_H__
14
15#include <linux/ioctl.h>
16
17#define SOC2030_IOCTL_SET_MODE _IOWR('o', 1, struct soc2030_mode)
18#define SOC2030_IOCTL_GET_STATUS _IOC(_IOC_READ, 'o', 2, 10)
19#define SOC2030_IOCTL_SET_PRIVATE _IOWR('o', 3, struct soc2030_regs)
20#define SOC2030_IOCTL_GET_MODES _IO('o', 4)
21#define SOC2030_IOCTL_GET_NUM_MODES _IOR('o', 5, unsigned int)
22
23#define SOC2030_POLL_WAITMS 50
24#define SOC2030_MAX_RETRIES 3
25#define SOC2030_POLL_RETRIES 5
26
27#define SOC2030_MAX_PRIVATE_SIZE 1024
28#define SOC2030_MAX_NUM_MODES 6
29
30enum {
31 REG_TABLE_END,
32 WRITE_REG_DATA,
33 WRITE_REG_BIT_H,
34 WRITE_REG_BIT_L,
35 POLL_REG_DATA,
36 POLL_REG_BIT_H,
37 POLL_REG_BIT_L,
38 POLL_VAR_DATA,
39 DELAY_MS,
40};
41
42struct soc2030_regs {
43 __u8 op;
44 __u16 addr;
45 __u16 val;
46};
47
48struct soc2030_mode {
49 int xres;
50 int yres;
51 int fps;
52 struct soc2030_regs *regset;
53};
54
55#endif
56
57