Magnus Damm | 073afdd | 2008-10-16 19:51:47 -0300 | [diff] [blame] | 1 | /* |
| 2 | * Generic Platform Camera Driver Header |
| 3 | * |
| 4 | * Copyright (C) 2008 Magnus Damm |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
Magnus Damm | 326c986 | 2008-07-16 23:02:08 -0300 | [diff] [blame] | 11 | #ifndef __SOC_CAMERA_H__ |
| 12 | #define __SOC_CAMERA_H__ |
| 13 | |
| 14 | #include <linux/videodev2.h> |
| 15 | |
| 16 | struct soc_camera_platform_info { |
| 17 | int iface; |
| 18 | char *format_name; |
| 19 | unsigned long format_depth; |
| 20 | struct v4l2_pix_format format; |
| 21 | unsigned long bus_param; |
Guennadi Liakhovetski | 50c616f | 2008-10-16 19:49:27 -0300 | [diff] [blame] | 22 | void (*power)(int); |
Magnus Damm | 326c986 | 2008-07-16 23:02:08 -0300 | [diff] [blame] | 23 | int (*set_capture)(struct soc_camera_platform_info *info, int enable); |
| 24 | }; |
| 25 | |
| 26 | #endif /* __SOC_CAMERA_H__ */ |