Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 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 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __OV5650_H__ |
| 20 | #define __OV5650_H__ |
Elliott Hughes | c95eb57 | 2013-01-29 18:15:55 -0800 | [diff] [blame] | 21 | #include <linux/ioctl.h> |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 22 | #define OV5650_IOCTL_SET_MODE _IOW('o', 1, struct ov5650_mode) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 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) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 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) |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 31 | enum ov5650_test_pattern { |
| 32 | TEST_PATTERN_NONE, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 34 | TEST_PATTERN_COLORBARS, |
| 35 | TEST_PATTERN_CHECKERBOARD |
| 36 | }; |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 37 | struct ov5650_otp_data { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 39 | __u8 sensor_serial_num[6]; |
| 40 | __u8 part_num[8]; |
| 41 | __u8 lens_id[1]; |
| 42 | __u8 manufacture_id[2]; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 44 | __u8 factory_id[2]; |
| 45 | __u8 manufacture_date[9]; |
| 46 | __u8 manufacture_line[2]; |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 47 | __u32 module_serial_num; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 49 | __u8 focuser_liftoff[2]; |
| 50 | __u8 focuser_macro[2]; |
| 51 | __u8 reserved1[12]; |
| 52 | __u8 shutter_cal[16]; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 54 | __u8 reserved2[183]; |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 55 | __u16 crc; |
| 56 | __u8 reserved3[3]; |
| 57 | __u8 auto_load[2]; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 59 | } __attribute__ ((packed)); |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 60 | struct ov5650_mode { |
| 61 | int xres; |
| 62 | int yres; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 64 | __u32 frame_length; |
| 65 | __u32 coarse_time; |
| 66 | __u16 gain; |
| 67 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Rebecca Schultz Zavin | db21d7e | 2010-09-23 23:19:26 -0700 | [diff] [blame] | 69 | #endif |