4 * Copyright (C) 2000 Ralph Metzler & Marcus Metzler
5 * for convergence integrated media GmbH
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * as published by the Free Software Foundation; either version 2.1
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #include <linux/types.h>
27 #include <linux/spinlock.h>
28 #include <linux/kernel.h>
29 #include <linux/timer.h>
30 #include <linux/wait.h>
32 #include <linux/string.h>
33 #include <asm/semaphore.h>
35 #include <linux/dvb/dmx.h>
48 DMXDEV_STATE_ALLOCATED
,
55 struct dmxdev_buffer
{
60 wait_queue_head_t queue
;
64 struct dmxdev_filter
{
65 struct dvb_device
*dvbdev
;
68 struct dmx_section_filter
*sec
;
72 struct dmx_ts_feed
*ts
;
73 struct dmx_section_feed
*sec
;
77 struct dmx_sct_filter_params sec
;
78 struct dmx_pes_filter_params pes
;
82 enum dmxdev_state state
;
84 struct dmxdev_buffer buffer
;
86 struct semaphore mutex
;
88 /* only for sections */
89 struct timer_list timer
;
100 struct dmxdev_buffer buffer
;
105 struct dvb_device
*dvbdev
;
106 struct dvb_device
*dvr_dvbdev
;
108 struct dmxdev_filter
*filter
;
109 struct dmxdev_dvr
*dvr
;
110 struct dmx_demux
*demux
;
114 #define DMXDEV_CAP_DUPLEX 1
115 struct dmx_frontend
*dvr_orig_fe
;
117 struct dmxdev_buffer dvr_buffer
;
118 #define DVR_BUFFER_SIZE (10*188*1024)
120 struct semaphore mutex
;
125 int dvb_dmxdev_init(struct dmxdev
*dmxdev
, struct dvb_adapter
*);
126 void dvb_dmxdev_release(struct dmxdev
*dmxdev
);
128 #endif /* _DMXDEV_H_ */