diff options
author | Abhinav Sinha <absinha@nvidia.com> | 2011-03-31 13:56:27 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-04-15 18:35:43 -0700 |
commit | dee4b6ad92b696fca78ca292d2e63a09ec8a7233 (patch) | |
tree | ade011f5f9e3e772f3ada72bbb35bacbfb9af6da /include | |
parent | a56f81030b5013d1f84c91025c595525d9824bd6 (diff) |
camera: Add driver for soc380 front sensor
Bug: 783488
Change-Id: I0d70ec5bb0fd880b167e9ced0e002829abeccdbf
Reviewed-on: http://git-master/r/24969
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'include')
-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__ */ + |