4 * Copyright (C) 2000 Marcus Metzler <marcus@convergence.de>
5 * & Ralph Metzler <ralph@convergence.de>
6 * for convergence integrated media GmbH
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 #include <asm/types.h>
29 #include <linux/time.h>
35 #define DMX_FILTER_SIZE 16
39 DMX_OUT_DECODER
, /* Streaming directly to decoder. */
40 DMX_OUT_TAP
, /* Output going to a memory buffer */
41 /* (to be retrieved via the read command).*/
42 DMX_OUT_TS_TAP
/* Output multiplexed into a new TS */
43 /* (to be retrieved by reading from the */
44 /* logical DVR device). */
50 DMX_IN_FRONTEND
, /* Input from a front-end device. */
51 DMX_IN_DVR
/* Input from the logical DVR device. */
84 #define DMX_PES_AUDIO DMX_PES_AUDIO0
85 #define DMX_PES_VIDEO DMX_PES_VIDEO0
86 #define DMX_PES_TELETEXT DMX_PES_TELETEXT0
87 #define DMX_PES_SUBTITLE DMX_PES_SUBTITLE0
88 #define DMX_PES_PCR DMX_PES_PCR0
102 } dmx_scrambling_status_t
;
105 typedef struct dmx_filter
107 __u8 filter
[DMX_FILTER_SIZE
];
108 __u8 mask
[DMX_FILTER_SIZE
];
109 __u8 mode
[DMX_FILTER_SIZE
];
113 struct dmx_sct_filter_params
119 #define DMX_CHECK_CRC 1
120 #define DMX_ONESHOT 2
121 #define DMX_IMMEDIATE_START 4
122 #define DMX_KERNEL_CLIENT 0x8000
126 struct dmx_pes_filter_params
131 dmx_pes_type_t pes_type
;
142 dmx_scrambling_status_t scrambling
;
146 typedef struct dmx_caps
{
152 DMX_SOURCE_FRONT0
= 0,
156 DMX_SOURCE_DVR0
= 16,
163 unsigned int num
; /* input : which STC? 0..N */
164 unsigned int base
; /* output: divisor for stc to get 90 kHz clock */
165 __u64 stc
; /* output: stc in 'base'*90 kHz units */
169 #define DMX_START _IO('o', 41)
170 #define DMX_STOP _IO('o', 42)
171 #define DMX_SET_FILTER _IOW('o', 43, struct dmx_sct_filter_params)
172 #define DMX_SET_PES_FILTER _IOW('o', 44, struct dmx_pes_filter_params)
173 #define DMX_SET_BUFFER_SIZE _IO('o', 45)
174 #define DMX_GET_EVENT _IOR('o', 46, struct dmx_event)
175 #define DMX_GET_PES_PIDS _IOR('o', 47, __u16[5])
176 #define DMX_GET_CAPS _IOR('o', 48, dmx_caps_t)
177 #define DMX_SET_SOURCE _IOW('o', 49, dmx_source_t)
178 #define DMX_GET_STC _IOWR('o', 50, struct dmx_stc)
180 #endif /*_DVBDMX_H_*/