blob: 650dc193838c84b0a89193e42603b38511d786ca [file] [log] [blame]
Christopher Ferris48af7cb2017-02-21 12:35:09 -08001/****************************************************************************
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 {
Christopher Ferris48af7cb2017-02-21 12:35:09 -080023 __u16 transport_id;
24 __u16 service_id;
25 __u16 orig_network_id;
26};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080027struct cec_op_atsc_data {
28 __u16 transport_id;
29 __u16 program_number;
30};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080031struct cec_op_dvb_data {
32 __u16 transport_id;
33 __u16 service_id;
34 __u16 orig_network_id;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080035};
36struct cec_op_channel_data {
37 __u8 channel_number_fmt;
38 __u16 major;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080039 __u16 minor;
40};
41struct cec_op_digital_service_id {
42 __u8 service_id_method;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080043 __u8 dig_bcast_system;
44 union {
45 struct cec_op_arib_data arib;
46 struct cec_op_atsc_data atsc;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080047 struct cec_op_dvb_data dvb;
48 struct cec_op_channel_data channel;
49 };
50};
Christopher Ferris48af7cb2017-02-21 12:35:09 -080051struct cec_op_record_src {
52 __u8 type;
53 union {
54 struct cec_op_digital_service_id digital;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080055 struct {
56 __u8 ana_bcast_type;
57 __u16 ana_freq;
58 __u8 bcast_system;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080059 } analog;
60 struct {
61 __u8 plug;
62 } ext_plug;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080063 struct {
64 __u16 phys_addr;
65 } ext_phys_addr;
66 };
Christopher Ferris48af7cb2017-02-21 12:35:09 -080067};
68struct cec_op_tuner_device_info {
69 __u8 rec_flag;
70 __u8 tuner_display_info;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080071 __u8 is_analog;
72 union {
73 struct cec_op_digital_service_id digital;
74 struct {
Christopher Ferris48af7cb2017-02-21 12:35:09 -080075 __u8 ana_bcast_type;
76 __u16 ana_freq;
77 __u8 bcast_system;
78 } analog;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080079 };
80};
81struct cec_op_ui_command {
82 __u8 ui_cmd;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080083 __u8 has_opt_arg;
84 union {
85 struct cec_op_channel_data channel_identifier;
86 __u8 ui_broadcast_type;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080087 __u8 ui_sound_presentation_control;
88 __u8 play_mode;
89 __u8 ui_function_media;
90 __u8 ui_function_select_av_input;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080091 __u8 ui_function_select_audio_input;
92 };
93};
94#endif