media: staging: atomisp: Remove dead code for MID (#2)
[linux-2.6/btrfs-unstable.git] / drivers / media / dvb-core / dvb_net.h
blobe9b18aa03e02e600d1834e9fdc5ea4ee5afc9e72
1 /*
2 * dvb_net.h
4 * Copyright (C) 2001 Ralph Metzler for convergence integrated media GmbH
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 #ifndef _DVB_NET_H_
19 #define _DVB_NET_H_
21 #include <linux/module.h>
22 #include <linux/netdevice.h>
23 #include <linux/inetdevice.h>
24 #include <linux/etherdevice.h>
25 #include <linux/skbuff.h>
27 #include "dvbdev.h"
29 #define DVB_NET_DEVICES_MAX 10
31 #ifdef CONFIG_DVB_NET
33 struct dvb_net {
34 struct dvb_device *dvbdev;
35 struct net_device *device[DVB_NET_DEVICES_MAX];
36 int state[DVB_NET_DEVICES_MAX];
37 unsigned int exit:1;
38 struct dmx_demux *demux;
39 struct mutex ioctl_mutex;
42 void dvb_net_release(struct dvb_net *);
43 int dvb_net_init(struct dvb_adapter *, struct dvb_net *, struct dmx_demux *);
45 #else
47 struct dvb_net {
48 struct dvb_device *dvbdev;
51 static inline void dvb_net_release(struct dvb_net *dvbnet)
55 static inline int dvb_net_init(struct dvb_adapter *adap,
56 struct dvb_net *dvbnet, struct dmx_demux *dmx)
58 return 0;
61 #endif /* ifdef CONFIG_DVB_NET */
63 #endif