diff options
author | Pritesh Raithatha <praithatha@nvidia.com> | 2011-02-11 00:49:44 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:52 -0800 |
commit | d1bfeac6915c7e9038fcca1a8d5784567502b8f2 (patch) | |
tree | 7d545210a934b8be1f831256450accc918f37818 /include/media | |
parent | 0e5eec3307ce47cb03f9405b1c227b400611b24b (diff) |
camera: add driver for ov5650
Original-Change-Id: I127ea2a132adf2126c28194e8d778cc46b0a2e63
Reviewed-on: http://git-master/r/10573
Reviewed-by: Chien-Yu Chen <chichen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Rebase-Id: R6b57bbe4286b088fe474e57d5fbfd0314b915a9d
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/ov5650.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/media/ov5650.h b/include/media/ov5650.h new file mode 100644 index 000000000000..cc3ec7194526 --- /dev/null +++ b/include/media/ov5650.h @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2008 NVIDIA Corporation. All rights reserved. + * + * NVIDIA Corporation and its licensors retain all intellectual property + * and proprietary rights in and to this software and related documentation + * and any modifications thereto. Any use, reproduction, disclosure or + * distribution of this software and related documentation without an express + * license agreement from NVIDIA Corporation is strictly prohibited. + */ + +#ifndef __OV5650_H__ +#define __OV5650_H__ + +#include <linux/ioctl.h> /* For IOCTL macros */ + +#define OV5650_IOCTL_SET_MODE _IOW('o', 1, struct ov5650_mode) +#define OV5650_IOCTL_SET_FRAME_LENGTH _IOW('o', 2, __u32) +#define OV5650_IOCTL_SET_COARSE_TIME _IOW('o', 3, __u32) +#define OV5650_IOCTL_SET_GAIN _IOW('o', 4, __u16) +#define OV5650_IOCTL_GET_STATUS _IOR('o', 5, __u8) + +struct ov5650_mode { + int xres; + int yres; + __u32 frame_length; + __u32 coarse_time; + __u16 gain; +}; +#ifdef __KERNEL__ +struct ov5650_platform_data { + int (*power_on)(void); + int (*power_off)(void); + +}; +#endif /* __KERNEL__ */ + +#endif /* __OV5650_H__ */ + |