Maemo patchset 20101501+0m5
[h-e-n] / drivers / media / video / smia-sensor.h
diff --git a/drivers/media/video/smia-sensor.h b/drivers/media/video/smia-sensor.h
new file mode 100644 (file)
index 0000000..91c40b7
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * drivers/media/video/smia-sensor.h
+ *
+ * Copyright (C) 2008,2009 Nokia Corporation
+ *
+ * Contact: Tuukka Toivonen <tuukka.o.toivonen@nokia.com>
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#ifndef SMIA_SENSOR_H
+#define SMIA_SENSOR_H
+
+#include <media/v4l2-int-device.h>
+
+#define SMIA_SENSOR_NAME       "smia-sensor"
+#define SMIA_SENSOR_I2C_ADDR   (0x20 >> 1)
+
+struct smia_sensor_platform_data {
+       int (*g_priv)(struct v4l2_int_device *s, void *priv);
+       int (*configure_interface)(struct v4l2_int_device *s,
+                                  int width, int height);
+       int (*set_xclk)(struct v4l2_int_device *s, int hz);
+       int (*power_on)(struct v4l2_int_device *s);
+       int (*power_off)(struct v4l2_int_device *s);
+};
+
+
+#endif /* SMIA_SENSOR_H */