aml_camera.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*******************************************************************
  2. *
  3. * Copyright C 2010 by Amlogic, Inc. All Rights Reserved.
  4. *
  5. * Description:
  6. *
  7. * Author: Amlogic Software
  8. * Created: 2010/4/1 19:46
  9. *
  10. *******************************************************************/
  11. #ifndef __AML_VIDEO_CAMERA_INCLUDE_9908049_
  12. #define __AML_VIDEO_CAMERA_INCLUDE_9908049_
  13. typedef void(*video_cam_init_fun_t)(void);
  14. typedef void(*video_cam_uninit_fun_t)(void);
  15. typedef void(*video_cam_early_suspend_fun_t)(void);
  16. typedef void(*video_cam_late_resume_fun_t)(void);
  17. typedef void(*video_cam_disable_fun_t)(void);
  18. typedef void(*video_cam_probe_fun_t)(void);
  19. typedef struct aml_camera_i2c_fig_s{
  20. unsigned short addr;
  21. unsigned char val;
  22. } aml_camera_i2c_fig_t;
  23. typedef struct aml_camera_i2c_fig0_s{
  24. unsigned short addr;
  25. unsigned short val;
  26. } aml_camera_i2c_fig0_t;
  27. typedef struct aml_camera_i2c_fig1_s{
  28. unsigned char addr;
  29. unsigned char val;
  30. } aml_camera_i2c_fig1_t;
  31. typedef struct {
  32. char* name;
  33. int video_nr; /* videoX start number, -1 is autodetect */
  34. video_cam_init_fun_t device_init;
  35. video_cam_uninit_fun_t device_uninit;
  36. video_cam_early_suspend_fun_t early_suspend;
  37. video_cam_late_resume_fun_t late_resume;
  38. video_cam_disable_fun_t device_disable;
  39. video_cam_probe_fun_t device_probe;
  40. void* custom_init_script;
  41. unsigned pri_dat;
  42. unsigned flash_support;
  43. }aml_plat_cam_data_t;
  44. #endif /* __AML_VIDEO_CAMERA_INCLUDE_9908049_ */