Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dmxdev.h
Go to the documentation of this file.
1 /*
2  * dmxdev.h
3  *
4  * Copyright (C) 2000 Ralph Metzler & Marcus Metzler
5  * for convergence integrated media GmbH
6  *
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.
11  *
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.
16  *
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.
20  *
21  */
22 
23 #ifndef _DMXDEV_H_
24 #define _DMXDEV_H_
25 
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>
31 #include <linux/fs.h>
32 #include <linux/string.h>
33 #include <linux/mutex.h>
34 #include <linux/slab.h>
35 
36 #include <linux/dvb/dmx.h>
37 
38 #include "dvbdev.h"
39 #include "demux.h"
40 #include "dvb_ringbuffer.h"
41 
46 };
47 
55 };
56 
57 struct dmxdev_feed {
59  struct dmx_ts_feed *ts;
60  struct list_head next;
61 };
62 
63 struct dmxdev_filter {
64  union {
66  } filter;
67 
68  union {
69  /* list of TS and PES feeds (struct dmxdev_feed) */
70  struct list_head ts;
72  } feed;
73 
74  union {
77  } params;
78 
81  struct dmxdev *dev;
83 
84  struct mutex mutex;
85 
86  /* only for sections */
87  struct timer_list timer;
88  int todo;
90 };
91 
92 
93 struct dmxdev {
94  struct dvb_device *dvbdev;
96 
98  struct dmx_demux *demux;
99 
102 
103  unsigned int exit:1;
104 #define DMXDEV_CAP_DUPLEX 1
106 
108 #define DVR_BUFFER_SIZE (10*188*1024)
109 
110  struct mutex mutex;
112 };
113 
114 
115 int dvb_dmxdev_init(struct dmxdev *dmxdev, struct dvb_adapter *);
116 void dvb_dmxdev_release(struct dmxdev *dmxdev);
117 
118 #endif /* _DMXDEV_H_ */