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 V4L2_MEDIABUS_H 20#define V4L2_MEDIABUS_H 21#include <linux/v4l2-mediabus.h> 22#define V4L2_MBUS_MASTER (1 << 0) 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#define V4L2_MBUS_SLAVE (1 << 1) 25#define V4L2_MBUS_HSYNC_ACTIVE_HIGH (1 << 2) 26#define V4L2_MBUS_HSYNC_ACTIVE_LOW (1 << 3) 27#define V4L2_MBUS_VSYNC_ACTIVE_HIGH (1 << 4) 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29#define V4L2_MBUS_VSYNC_ACTIVE_LOW (1 << 5) 30#define V4L2_MBUS_PCLK_SAMPLE_RISING (1 << 6) 31#define V4L2_MBUS_PCLK_SAMPLE_FALLING (1 << 7) 32#define V4L2_MBUS_DATA_ACTIVE_HIGH (1 << 8) 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34#define V4L2_MBUS_DATA_ACTIVE_LOW (1 << 9) 35#define V4L2_MBUS_FIELD_EVEN_HIGH (1 << 10) 36#define V4L2_MBUS_FIELD_EVEN_LOW (1 << 11) 37#define V4L2_MBUS_CSI2_1_LANE (1 << 0) 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39#define V4L2_MBUS_CSI2_2_LANE (1 << 1) 40#define V4L2_MBUS_CSI2_3_LANE (1 << 2) 41#define V4L2_MBUS_CSI2_4_LANE (1 << 3) 42#define V4L2_MBUS_CSI2_CHANNEL_0 (1 << 4) 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44#define V4L2_MBUS_CSI2_CHANNEL_1 (1 << 5) 45#define V4L2_MBUS_CSI2_CHANNEL_2 (1 << 6) 46#define V4L2_MBUS_CSI2_CHANNEL_3 (1 << 7) 47#define V4L2_MBUS_CSI2_CONTINUOUS_CLOCK (1 << 8) 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49#define V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK (1 << 9) 50#define V4L2_MBUS_CSI2_LANES (V4L2_MBUS_CSI2_1_LANE | V4L2_MBUS_CSI2_2_LANE | V4L2_MBUS_CSI2_3_LANE | V4L2_MBUS_CSI2_4_LANE) 51#define V4L2_MBUS_CSI2_CHANNELS (V4L2_MBUS_CSI2_CHANNEL_0 | V4L2_MBUS_CSI2_CHANNEL_1 | V4L2_MBUS_CSI2_CHANNEL_2 | V4L2_MBUS_CSI2_CHANNEL_3) 52enum v4l2_mbus_type { 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 V4L2_MBUS_PARALLEL, 55 V4L2_MBUS_BT656, 56 V4L2_MBUS_CSI2, 57}; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59struct v4l2_mbus_config { 60 enum v4l2_mbus_type type; 61 unsigned int flags; 62}; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64#endif 65 66