summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c/nct1008.h43
-rw-r--r--include/linux/sched.h3
-rwxr-xr-xinclude/media/ov5650.h38
3 files changed, 81 insertions, 3 deletions
diff --git a/include/linux/i2c/nct1008.h b/include/linux/i2c/nct1008.h
new file mode 100644
index 000000000000..b38be540ff06
--- /dev/null
+++ b/include/linux/i2c/nct1008.h
@@ -0,0 +1,43 @@
+/*
+ * linux/include/i2c/nct1008.h
+ *
+ * Temperature monitoring device from On Semiconductors
+ *
+ * Copyright (c) 2010, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef _LINUX_NCT1008_H
+#define _LINUX_NCT1008_H
+
+/* config params */
+#define NCT1008_CONFIG_ALERT_DISABLE 0x80
+#define NCT1008_CONFIG_RUN_STANDBY 0x40
+#define NCT1008_CONFIG_ALERT_THERM2 0x20
+#define NCT1008_CONFIG_ENABLE_EXTENDED 0x04
+
+struct nct1008_platform_data {
+ /* temperature conversion rate */
+ int conv_rate;
+
+ /* configuration parameters */
+ int config;
+
+ /* cpu shut down threshold */
+ int thermal_threshold;
+};
+
+#endif /* _LINUX_NCT1008_H */
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 6e3dd4fef93c..ba3494e52d17 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1679,9 +1679,6 @@ static inline void put_task_struct(struct task_struct *t)
extern void task_times(struct task_struct *p, cputime_t *ut, cputime_t *st);
extern void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t *st);
-extern int task_free_register(struct notifier_block *n);
-extern int task_free_unregister(struct notifier_block *n);
-
/*
* Per process flags
*/
diff --git a/include/media/ov5650.h b/include/media/ov5650.h
new file mode 100755
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__ */
+