cec-funcs.h revision 96c1db7b9d601c31d103389cac074a6cce0d7633
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 _CEC_UAPI_FUNCS_H
20#define _CEC_UAPI_FUNCS_H
21#include <linux/cec.h>
22struct cec_op_arib_data {
23  __u16 transport_id;
24  __u16 service_id;
25  __u16 orig_network_id;
26};
27struct cec_op_atsc_data {
28  __u16 transport_id;
29  __u16 program_number;
30};
31struct cec_op_dvb_data {
32  __u16 transport_id;
33  __u16 service_id;
34  __u16 orig_network_id;
35};
36struct cec_op_channel_data {
37  __u8 channel_number_fmt;
38  __u16 major;
39  __u16 minor;
40};
41struct cec_op_digital_service_id {
42  __u8 service_id_method;
43  __u8 dig_bcast_system;
44  union {
45    struct cec_op_arib_data arib;
46    struct cec_op_atsc_data atsc;
47    struct cec_op_dvb_data dvb;
48    struct cec_op_channel_data channel;
49  };
50};
51struct cec_op_record_src {
52  __u8 type;
53  union {
54    struct cec_op_digital_service_id digital;
55    struct {
56      __u8 ana_bcast_type;
57      __u16 ana_freq;
58      __u8 bcast_system;
59    } analog;
60    struct {
61      __u8 plug;
62    } ext_plug;
63    struct {
64      __u16 phys_addr;
65    } ext_phys_addr;
66  };
67};
68struct cec_op_tuner_device_info {
69  __u8 rec_flag;
70  __u8 tuner_display_info;
71  __u8 is_analog;
72  union {
73    struct cec_op_digital_service_id digital;
74    struct {
75      __u8 ana_bcast_type;
76      __u16 ana_freq;
77      __u8 bcast_system;
78    } analog;
79  };
80};
81struct cec_op_ui_command {
82  __u8 ui_cmd;
83  __u8 has_opt_arg;
84  union {
85    struct cec_op_channel_data channel_identifier;
86    __u8 ui_broadcast_type;
87    __u8 ui_sound_presentation_control;
88    __u8 play_mode;
89    __u8 ui_function_media;
90    __u8 ui_function_select_av_input;
91    __u8 ui_function_select_audio_input;
92  };
93};
94#endif
95