|
@@ -32,6 +32,8 @@
|
|
|
|
|
|
#define DVB_NET_DEVICES_MAX 10
|
|
|
|
|
|
+#ifdef CONFIG_DVB_NET
|
|
|
+
|
|
|
struct dvb_net {
|
|
|
struct dvb_device *dvbdev;
|
|
|
struct net_device *device[DVB_NET_DEVICES_MAX];
|
|
@@ -45,3 +47,27 @@ void dvb_net_release(struct dvb_net *);
|
|
|
int dvb_net_init(struct dvb_adapter *, struct dvb_net *, struct dmx_demux *);
|
|
|
|
|
|
#endif
|
|
|
+
|
|
|
+#ifndef CONFIG_DVB_NET
|
|
|
+
|
|
|
+struct dvb_dev_stub;
|
|
|
+
|
|
|
+struct dvb_net {
|
|
|
+ struct dvb_dev_stub *dvbdev;
|
|
|
+};
|
|
|
+
|
|
|
+static inline void dvb_net_release(struct dvb_net *dvbnet)
|
|
|
+{
|
|
|
+ dvbnet->dvbdev = 0;
|
|
|
+}
|
|
|
+
|
|
|
+static inline int dvb_net_init(struct dvb_adapter *adap,
|
|
|
+ struct dvb_net *dvbnet, struct dmx_demux *dmx)
|
|
|
+{
|
|
|
+ dvbnet->dvbdev = (void *)1;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+#endif
|
|
|
+
|
|
|
+#endif
|