]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/media/dvb-core/dvb_net.h
Merge branches 'for-4.11/upstream-fixes', 'for-4.12/accutouch', 'for-4.12/cp2112...
[mirror_ubuntu-artful-kernel.git] / drivers / media / dvb-core / dvb_net.h
CommitLineData
1da177e4
LT
1/*
2 * dvb_net.h
3 *
4 * Copyright (C) 2001 Ralph Metzler for convergence integrated media GmbH
5 *
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.
10 *
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.
15 *
1da177e4
LT
16 */
17
18#ifndef _DVB_NET_H_
19#define _DVB_NET_H_
20
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>
26
27#include "dvbdev.h"
28
29#define DVB_NET_DEVICES_MAX 10
30
a34ff6cd
HPS
31#ifdef CONFIG_DVB_NET
32
1da177e4
LT
33struct dvb_net {
34 struct dvb_device *dvbdev;
35 struct net_device *device[DVB_NET_DEVICES_MAX];
36 int state[DVB_NET_DEVICES_MAX];
2c4d3364 37 unsigned int exit:1;
1da177e4 38 struct dmx_demux *demux;
30ad64b8 39 struct mutex ioctl_mutex;
1da177e4
LT
40};
41
1da177e4
LT
42void dvb_net_release(struct dvb_net *);
43int dvb_net_init(struct dvb_adapter *, struct dvb_net *, struct dmx_demux *);
44
fcc8e7d8 45#else
a34ff6cd
HPS
46
47struct dvb_net {
fcc8e7d8 48 struct dvb_device *dvbdev;
a34ff6cd
HPS
49};
50
51static inline void dvb_net_release(struct dvb_net *dvbnet)
52{
a34ff6cd
HPS
53}
54
55static inline int dvb_net_init(struct dvb_adapter *adap,
56 struct dvb_net *dvbnet, struct dmx_demux *dmx)
57{
a34ff6cd
HPS
58 return 0;
59}
60
fcc8e7d8 61#endif /* ifdef CONFIG_DVB_NET */
a34ff6cd
HPS
62
63#endif