xref: /aosp_15_r20/prebuilts/build-tools/sysroots/x86_64-unknown-linux-musl/include/linux/cec-funcs.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _CEC_UAPI_FUNCS_H
8 #define _CEC_UAPI_FUNCS_H
9 #include <linux/cec.h>
10 struct cec_op_arib_data {
11   __u16 transport_id;
12   __u16 service_id;
13   __u16 orig_network_id;
14 };
15 struct cec_op_atsc_data {
16   __u16 transport_id;
17   __u16 program_number;
18 };
19 struct cec_op_dvb_data {
20   __u16 transport_id;
21   __u16 service_id;
22   __u16 orig_network_id;
23 };
24 struct cec_op_channel_data {
25   __u8 channel_number_fmt;
26   __u16 major;
27   __u16 minor;
28 };
29 struct cec_op_digital_service_id {
30   __u8 service_id_method;
31   __u8 dig_bcast_system;
32   union {
33     struct cec_op_arib_data arib;
34     struct cec_op_atsc_data atsc;
35     struct cec_op_dvb_data dvb;
36     struct cec_op_channel_data channel;
37   };
38 };
39 struct cec_op_record_src {
40   __u8 type;
41   union {
42     struct cec_op_digital_service_id digital;
43     struct {
44       __u8 ana_bcast_type;
45       __u16 ana_freq;
46       __u8 bcast_system;
47     } analog;
48     struct {
49       __u8 plug;
50     } ext_plug;
51     struct {
52       __u16 phys_addr;
53     } ext_phys_addr;
54   };
55 };
56 struct cec_op_tuner_device_info {
57   __u8 rec_flag;
58   __u8 tuner_display_info;
59   __u8 is_analog;
60   union {
61     struct cec_op_digital_service_id digital;
62     struct {
63       __u8 ana_bcast_type;
64       __u16 ana_freq;
65       __u8 bcast_system;
66     } analog;
67   };
68 };
69 struct cec_op_ui_command {
70   __u8 ui_cmd;
71   __u8 has_opt_arg;
72   union {
73     struct cec_op_channel_data channel_identifier;
74     __u8 ui_broadcast_type;
75     __u8 ui_sound_presentation_control;
76     __u8 play_mode;
77     __u8 ui_function_media;
78     __u8 ui_function_select_av_input;
79     __u8 ui_function_select_audio_input;
80   };
81 };
82 #endif
83