bionic/libc/kernel/common/media/soc2030.h
Rebecca Schultz Zavin db21d7e4ed New headers for camera
Change-Id: I1136aba4aa0d588c7c37da9774bd69a78bcac656
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-09-23 23:19:26 -07:00

58 lines
1.5 KiB
C

/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call into the kernel available to libc. It contains only constants,
*** structures, and macros generated from the original header, and thus,
*** contains no copyrightable information.
***
****************************************************************************
****************************************************************************/
#ifndef __SOC2030_H__
#define __SOC2030_H__
#include <linux/ioctl.h>
#define SOC2030_IOCTL_SET_MODE _IOWR('o', 1, struct soc2030_mode)
#define SOC2030_IOCTL_GET_STATUS _IOC(_IOC_READ, 'o', 2, 10)
#define SOC2030_IOCTL_SET_PRIVATE _IOWR('o', 3, struct soc2030_regs)
#define SOC2030_IOCTL_GET_MODES _IO('o', 4)
#define SOC2030_IOCTL_GET_NUM_MODES _IOR('o', 5, unsigned int)
#define SOC2030_POLL_WAITMS 50
#define SOC2030_MAX_RETRIES 3
#define SOC2030_POLL_RETRIES 5
#define SOC2030_MAX_PRIVATE_SIZE 1024
#define SOC2030_MAX_NUM_MODES 6
enum {
REG_TABLE_END,
WRITE_REG_DATA,
WRITE_REG_BIT_H,
WRITE_REG_BIT_L,
POLL_REG_DATA,
POLL_REG_BIT_H,
POLL_REG_BIT_L,
POLL_VAR_DATA,
DELAY_MS,
};
struct soc2030_regs {
__u8 op;
__u16 addr;
__u16 val;
};
struct soc2030_mode {
int xres;
int yres;
int fps;
struct soc2030_regs *regset;
};
#endif