From 053febdd3bcf0586d38c5f3f46d7d0588ade2a4d Mon Sep 17 00:00:00 2001 From: Rebecca Schultz Zavin Date: Wed, 18 Aug 2010 16:20:09 -0700 Subject: [PATCH] Headers for tegra_camera device Change-Id: Iaea67ee157b6ecd7a4485c8f716515da5c56601f Signed-off-by: Rebecca Schultz Zavin --- libc/kernel/common/media/tegra_camera.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libc/kernel/common/media/tegra_camera.h diff --git a/libc/kernel/common/media/tegra_camera.h b/libc/kernel/common/media/tegra_camera.h new file mode 100644 index 000000000..0f6303570 --- /dev/null +++ b/libc/kernel/common/media/tegra_camera.h @@ -0,0 +1,33 @@ +/**************************************************************************** + **************************************************************************** + *** + *** 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. + *** + **************************************************************************** + ****************************************************************************/ +enum { + TEGRA_CAMERA_MODULE_ISP = 0, + TEGRA_CAMERA_MODULE_VI, + TEGRA_CAMERA_MODULE_CSI, +}; + +enum { + TEGRA_CAMERA_VI_CLK, + TEGRA_CAMERA_VI_SENSOR_CLK, +}; + +struct tegra_camera_clk_info { + uint id; + uint clk_id; + unsigned long rate; +}; + +#define TEGRA_CAMERA_IOCTL_ENABLE _IOWR('i', 1, uint) +#define TEGRA_CAMERA_IOCTL_DISABLE _IOWR('i', 2, uint) +#define TEGRA_CAMERA_IOCTL_CLK_SET_RATE _IOWR('i', 3, struct tegra_camera_clk_info) +#define TEGRA_CAMERA_IOCTL_RESET _IOWR('i', 4, uint) + -- 2.11.0