diff options
author | Abhinav Sinha <absinha@nvidia.com> | 2011-03-31 13:56:27 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:54 -0800 |
commit | 338b232a8a4b6973f91871836ded88884684a510 (patch) | |
tree | 0fdb439a9651e5a1040654557421fa7a0de92efd /include/media | |
parent | 23ee9945d0cbcd9b9dafe358021332ea8e4a99c9 (diff) |
camera: Add driver for soc380 front sensor
Bug: 783488
Original-Change-Id: I0d70ec5bb0fd880b167e9ced0e002829abeccdbf
Reviewed-on: http://git-master/r/24969
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R83f2674bdf0300e8fba97c50e55649ff68ad18a2
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/soc380.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/media/soc380.h b/include/media/soc380.h new file mode 100644 index 000000000000..0cf1744dd022 --- /dev/null +++ b/include/media/soc380.h @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2011 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 __SOC380_H__ +#define __SOC380_H__ + +#include <linux/ioctl.h> /* For IOCTL macros */ + +#define SOC380_IOCTL_SET_MODE _IOW('o', 1, struct soc380_mode) +#define SOC380_IOCTL_GET_STATUS _IOR('o', 2, struct soc380_status) + +struct soc380_mode { + int xres; + int yres; +}; + +struct soc380_status { + int data; + int status; +}; + +#ifdef __KERNEL__ +struct soc380_platform_data { + int (*power_on)(void); + int (*power_off)(void); + +}; +#endif /* __KERNEL__ */ + +#endif /* __SOC380_H__ */ + |