summaryrefslogtreecommitdiff
path: root/include/media/nvc_torch.h
diff options
context:
space:
mode:
authorErik Lilliebjerg <elilliebjerg@nvidia.com>2011-11-22 00:39:43 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:50:21 -0800
commitc38635b4fbb53312f528520649baea4e361d7ce5 (patch)
tree26a52907b67df7850acf04b7e1322e669165d735 /include/media/nvc_torch.h
parente8d42ed7a2ac6f93f52b7df71b9895a21536545a (diff)
media: video: tegra: SSL3250A torch driver
- Added multi-instance support with sync capability - Added GLOS power scheme - Standardized the IOCTL API Bug 882012 Bug 866726 Bug 896181 Bug 894789 Bug 861828 Bug 852480 Bug 872156 Change-Id: Ic315a9ed404854e13568c5b5afae60415a19b093 Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com> Reviewed-on: http://git-master/r/66052 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: R516fb9110c4fc654ba0d3e1289a3d0eb938a805d
Diffstat (limited to 'include/media/nvc_torch.h')
-rw-r--r--include/media/nvc_torch.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/media/nvc_torch.h b/include/media/nvc_torch.h
new file mode 100644
index 000000000000..7c88bc75af05
--- /dev/null
+++ b/include/media/nvc_torch.h
@@ -0,0 +1,43 @@
+/* Copyright (C) 2011 NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ * 02111-1307, USA
+ */
+
+#ifndef __NVC_TORCH_H__
+#define __NVC_TORCH_H__
+
+struct nvc_torch_level_info {
+ __s32 guidenum;
+ __u32 sustaintime;
+ __s32 rechargefactor;
+} __packed;
+
+struct nvc_torch_pin_state {
+ __u16 mask;
+ __u16 values;
+} __packed;
+
+struct nvc_torch_flash_capabilities {
+ __u32 numberoflevels;
+ struct nvc_torch_level_info levels[];
+} __packed;
+
+struct nvc_torch_torch_capabilities {
+ __u32 numberoflevels;
+ __s32 guidenum[];
+} __packed;
+
+#endif /* __NVC_TORCH_H__ */
+