blob: 99da210e2bd8b893171d7ab636a3bc06d606cce9 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 _UAPI_DVBDMX_H_
20#define _UAPI_DVBDMX_H_
21#include <linux/types.h>
22#include <time.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define DMX_FILTER_SIZE 16
Christopher Ferris05d08e92016-02-04 13:16:38 -080025enum dmx_output {
Tao Baod7db5942015-01-28 10:07:51 -080026 DMX_OUT_DECODER,
27 DMX_OUT_TAP,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 DMX_OUT_TS_TAP,
30 DMX_OUT_TSDEMUX_TAP
Christopher Ferris05d08e92016-02-04 13:16:38 -080031};
32typedef enum dmx_output dmx_output_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080034typedef enum dmx_input {
Tao Baod7db5942015-01-28 10:07:51 -080035 DMX_IN_FRONTEND,
36 DMX_IN_DVR
Ben Cheng655a7c02013-10-16 16:09:24 -070037} dmx_input_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080039typedef enum dmx_ts_pes {
Tao Baod7db5942015-01-28 10:07:51 -080040 DMX_PES_AUDIO0,
41 DMX_PES_VIDEO0,
42 DMX_PES_TELETEXT0,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080044 DMX_PES_SUBTITLE0,
Tao Baod7db5942015-01-28 10:07:51 -080045 DMX_PES_PCR0,
46 DMX_PES_AUDIO1,
47 DMX_PES_VIDEO1,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080049 DMX_PES_TELETEXT1,
Tao Baod7db5942015-01-28 10:07:51 -080050 DMX_PES_SUBTITLE1,
51 DMX_PES_PCR1,
52 DMX_PES_AUDIO2,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080054 DMX_PES_VIDEO2,
Tao Baod7db5942015-01-28 10:07:51 -080055 DMX_PES_TELETEXT2,
56 DMX_PES_SUBTITLE2,
57 DMX_PES_PCR2,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080059 DMX_PES_AUDIO3,
Tao Baod7db5942015-01-28 10:07:51 -080060 DMX_PES_VIDEO3,
61 DMX_PES_TELETEXT3,
62 DMX_PES_SUBTITLE3,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080064 DMX_PES_PCR3,
Tao Baod7db5942015-01-28 10:07:51 -080065 DMX_PES_OTHER
Ben Cheng655a7c02013-10-16 16:09:24 -070066} dmx_pes_type_t;
67#define DMX_PES_AUDIO DMX_PES_AUDIO0
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080069#define DMX_PES_VIDEO DMX_PES_VIDEO0
Tao Baod7db5942015-01-28 10:07:51 -080070#define DMX_PES_TELETEXT DMX_PES_TELETEXT0
Ben Cheng655a7c02013-10-16 16:09:24 -070071#define DMX_PES_SUBTITLE DMX_PES_SUBTITLE0
72#define DMX_PES_PCR DMX_PES_PCR0
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080074typedef struct dmx_filter {
Tao Baod7db5942015-01-28 10:07:51 -080075 __u8 filter[DMX_FILTER_SIZE];
76 __u8 mask[DMX_FILTER_SIZE];
77 __u8 mode[DMX_FILTER_SIZE];
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079} dmx_filter_t;
Tao Baod7db5942015-01-28 10:07:51 -080080struct dmx_sct_filter_params {
81 __u16 pid;
82 dmx_filter_t filter;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084 __u32 timeout;
Tao Baod7db5942015-01-28 10:07:51 -080085 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070086#define DMX_CHECK_CRC 1
87#define DMX_ONESHOT 2
Tao Baod7db5942015-01-28 10:07:51 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080089#define DMX_IMMEDIATE_START 4
Ben Cheng655a7c02013-10-16 16:09:24 -070090#define DMX_KERNEL_CLIENT 0x8000
91};
Tao Baod7db5942015-01-28 10:07:51 -080092struct dmx_pes_filter_params {
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080094 __u16 pid;
Tao Baod7db5942015-01-28 10:07:51 -080095 dmx_input_t input;
96 dmx_output_t output;
97 dmx_pes_type_t pes_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080099 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700100};
101typedef struct dmx_caps {
Tao Baod7db5942015-01-28 10:07:51 -0800102 __u32 caps;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 int num_decoders;
Ben Cheng655a7c02013-10-16 16:09:24 -0700105} dmx_caps_t;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800106typedef enum dmx_source {
Tao Baod7db5942015-01-28 10:07:51 -0800107 DMX_SOURCE_FRONT0 = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800109 DMX_SOURCE_FRONT1,
Tao Baod7db5942015-01-28 10:07:51 -0800110 DMX_SOURCE_FRONT2,
111 DMX_SOURCE_FRONT3,
112 DMX_SOURCE_DVR0 = 16,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800114 DMX_SOURCE_DVR1,
Tao Baod7db5942015-01-28 10:07:51 -0800115 DMX_SOURCE_DVR2,
116 DMX_SOURCE_DVR3
Ben Cheng655a7c02013-10-16 16:09:24 -0700117} dmx_source_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800119struct dmx_stc {
Tao Baod7db5942015-01-28 10:07:51 -0800120 unsigned int num;
121 unsigned int base;
122 __u64 stc;
Tao Baod7db5942015-01-28 10:07:51 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800124};
Ben Cheng655a7c02013-10-16 16:09:24 -0700125#define DMX_START _IO('o', 41)
126#define DMX_STOP _IO('o', 42)
Ben Cheng655a7c02013-10-16 16:09:24 -0700127#define DMX_SET_FILTER _IOW('o', 43, struct dmx_sct_filter_params)
Tao Baod7db5942015-01-28 10:07:51 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800129#define DMX_SET_PES_FILTER _IOW('o', 44, struct dmx_pes_filter_params)
Ben Cheng655a7c02013-10-16 16:09:24 -0700130#define DMX_SET_BUFFER_SIZE _IO('o', 45)
131#define DMX_GET_PES_PIDS _IOR('o', 47, __u16[5])
Ben Cheng655a7c02013-10-16 16:09:24 -0700132#define DMX_GET_CAPS _IOR('o', 48, dmx_caps_t)
Tao Baod7db5942015-01-28 10:07:51 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800134#define DMX_SET_SOURCE _IOW('o', 49, dmx_source_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700135#define DMX_GET_STC _IOWR('o', 50, struct dmx_stc)
136#define DMX_ADD_PID _IOW('o', 51, __u16)
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define DMX_REMOVE_PID _IOW('o', 52, __u16)
Tao Baod7db5942015-01-28 10:07:51 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800139#endif