• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __OV5650_H__
20 #define __OV5650_H__
21 #include <linux/ioctl.h>
22 #define OV5650_IOCTL_SET_MODE _IOW('o', 1, struct ov5650_mode)
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define OV5650_IOCTL_SET_FRAME_LENGTH _IOW('o', 2, __u32)
25 #define OV5650_IOCTL_SET_COARSE_TIME _IOW('o', 3, __u32)
26 #define OV5650_IOCTL_SET_GAIN _IOW('o', 4, __u16)
27 #define OV5650_IOCTL_GET_STATUS _IOR('o', 5, __u8)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define OV5650_IOCTL_GET_OTP _IOR('o', 6, struct ov5650_otp_data)
30 #define OV5650_IOCTL_TEST_PATTERN _IOW('o', 7, enum ov5650_test_pattern)
31 enum ov5650_test_pattern {
32  TEST_PATTERN_NONE,
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  TEST_PATTERN_COLORBARS,
35  TEST_PATTERN_CHECKERBOARD
36 };
37 struct ov5650_otp_data {
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  __u8 sensor_serial_num[6];
40  __u8 part_num[8];
41  __u8 lens_id[1];
42  __u8 manufacture_id[2];
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __u8 factory_id[2];
45  __u8 manufacture_date[9];
46  __u8 manufacture_line[2];
47  __u32 module_serial_num;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  __u8 focuser_liftoff[2];
50  __u8 focuser_macro[2];
51  __u8 reserved1[12];
52  __u8 shutter_cal[16];
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  __u8 reserved2[183];
55  __u16 crc;
56  __u8 reserved3[3];
57  __u8 auto_load[2];
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 } __attribute__ ((packed));
60 struct ov5650_mode {
61  int xres;
62  int yres;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  __u32 frame_length;
65  __u32 coarse_time;
66  __u16 gain;
67 };
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #endif
70