blob: 8e1d718386831ee3baf0402320f5061358a03319 [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
Tao Baod7db5942015-01-28 10:07:51 -080025typedef enum {
26 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
Ben Cheng655a7c02013-10-16 16:09:24 -070031} dmx_output_t;
Tao Baod7db5942015-01-28 10:07:51 -080032typedef enum {
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 DMX_IN_FRONTEND,
35 DMX_IN_DVR
Ben Cheng655a7c02013-10-16 16:09:24 -070036} dmx_input_t;
Tao Baod7db5942015-01-28 10:07:51 -080037typedef enum dmx_ts_pes {
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 DMX_PES_AUDIO0,
40 DMX_PES_VIDEO0,
41 DMX_PES_TELETEXT0,
42 DMX_PES_SUBTITLE0,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 DMX_PES_PCR0,
45 DMX_PES_AUDIO1,
46 DMX_PES_VIDEO1,
47 DMX_PES_TELETEXT1,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 DMX_PES_SUBTITLE1,
50 DMX_PES_PCR1,
51 DMX_PES_AUDIO2,
52 DMX_PES_VIDEO2,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 DMX_PES_TELETEXT2,
55 DMX_PES_SUBTITLE2,
56 DMX_PES_PCR2,
57 DMX_PES_AUDIO3,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 DMX_PES_VIDEO3,
60 DMX_PES_TELETEXT3,
61 DMX_PES_SUBTITLE3,
62 DMX_PES_PCR3,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 DMX_PES_OTHER
Ben Cheng655a7c02013-10-16 16:09:24 -070065} dmx_pes_type_t;
66#define DMX_PES_AUDIO DMX_PES_AUDIO0
67#define DMX_PES_VIDEO DMX_PES_VIDEO0
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069#define DMX_PES_TELETEXT DMX_PES_TELETEXT0
Ben Cheng655a7c02013-10-16 16:09:24 -070070#define DMX_PES_SUBTITLE DMX_PES_SUBTITLE0
71#define DMX_PES_PCR DMX_PES_PCR0
Tao Baod7db5942015-01-28 10:07:51 -080072typedef struct dmx_filter {
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u8 filter[DMX_FILTER_SIZE];
75 __u8 mask[DMX_FILTER_SIZE];
76 __u8 mode[DMX_FILTER_SIZE];
Ben Cheng655a7c02013-10-16 16:09:24 -070077} dmx_filter_t;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079struct dmx_sct_filter_params {
80 __u16 pid;
81 dmx_filter_t filter;
82 __u32 timeout;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070085#define DMX_CHECK_CRC 1
86#define DMX_ONESHOT 2
Ben Cheng655a7c02013-10-16 16:09:24 -070087#define DMX_IMMEDIATE_START 4
Tao Baod7db5942015-01-28 10:07:51 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089#define DMX_KERNEL_CLIENT 0x8000
90};
Tao Baod7db5942015-01-28 10:07:51 -080091struct dmx_pes_filter_params {
92 __u16 pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 dmx_input_t input;
95 dmx_output_t output;
96 dmx_pes_type_t pes_type;
97 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099};
100typedef struct dmx_caps {
Tao Baod7db5942015-01-28 10:07:51 -0800101 __u32 caps;
102 int num_decoders;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104} dmx_caps_t;
105typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -0800106 DMX_SOURCE_FRONT0 = 0,
107 DMX_SOURCE_FRONT1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 DMX_SOURCE_FRONT2,
110 DMX_SOURCE_FRONT3,
111 DMX_SOURCE_DVR0 = 16,
112 DMX_SOURCE_DVR1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 DMX_SOURCE_DVR2,
115 DMX_SOURCE_DVR3
Ben Cheng655a7c02013-10-16 16:09:24 -0700116} dmx_source_t;
117struct dmx_stc {
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 unsigned int num;
120 unsigned int base;
121 __u64 stc;
Ben Cheng655a7c02013-10-16 16:09:24 -0700122};
Tao Baod7db5942015-01-28 10:07:51 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124#define DMX_START _IO('o', 41)
125#define DMX_STOP _IO('o', 42)
Ben Cheng655a7c02013-10-16 16:09:24 -0700126#define DMX_SET_FILTER _IOW('o', 43, struct dmx_sct_filter_params)
127#define DMX_SET_PES_FILTER _IOW('o', 44, struct dmx_pes_filter_params)
Tao Baod7db5942015-01-28 10:07:51 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129#define DMX_SET_BUFFER_SIZE _IO('o', 45)
130#define DMX_GET_PES_PIDS _IOR('o', 47, __u16[5])
Ben Cheng655a7c02013-10-16 16:09:24 -0700131#define DMX_GET_CAPS _IOR('o', 48, dmx_caps_t)
132#define DMX_SET_SOURCE _IOW('o', 49, dmx_source_t)
Tao Baod7db5942015-01-28 10:07:51 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134#define DMX_GET_STC _IOWR('o', 50, struct dmx_stc)
135#define DMX_ADD_PID _IOW('o', 51, __u16)
Ben Cheng655a7c02013-10-16 16:09:24 -0700136#define DMX_REMOVE_PID _IOW('o', 52, __u16)
137#endif
Tao Baod7db5942015-01-28 10:07:51 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */