diff options
author | Pritesh Raithatha <praithatha@nvidia.com> | 2011-02-11 00:49:44 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:02:28 -0700 |
commit | f4411f050bf214a3948517bf7aa9e94d94ab6332 (patch) | |
tree | aa12f7d571e0a1ebba300491730f34b0fdf9d624 /include/media/ov5650.h | |
parent | 10ff4c961a75805c46c80f20cf99370c4bf607bd (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/ov5650.h')
-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__ */ + |