~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/media/dvb_net.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/media/dvb_net.h (Version linux-6.11.5) and /include/media/dvb_net.h (Version linux-4.17.19)


  1 /*                                                  1 /*
  2  * dvb_net.h                                        2  * dvb_net.h
  3  *                                                  3  *
  4  * Copyright (C) 2001 Ralph Metzler for conver      4  * Copyright (C) 2001 Ralph Metzler for convergence integrated media GmbH
  5  *                                                  5  *
  6  * This program is free software; you can redi      6  * This program is free software; you can redistribute it and/or
  7  * modify it under the terms of the GNU Lesser      7  * modify it under the terms of the GNU Lesser General Public License
  8  * as published by the Free Software Foundatio      8  * as published by the Free Software Foundation; either version 2.1
  9  * of the License, or (at your option) any lat      9  * of the License, or (at your option) any later version.
 10  *                                                 10  *
 11  * This program is distributed in the hope tha     11  * This program is distributed in the hope that it will be useful,
 12  * but WITHOUT ANY WARRANTY; without even the      12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR     13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 14  * GNU General Public License for more details     14  * GNU General Public License for more details.
 15  *                                                 15  *
 16  */                                                16  */
 17                                                    17 
 18 #ifndef _DVB_NET_H_                                18 #ifndef _DVB_NET_H_
 19 #define _DVB_NET_H_                                19 #define _DVB_NET_H_
 20                                                    20 
 21 #include <linux/module.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>
 22                                                    26 
 23 #include <media/dvbdev.h>                          27 #include <media/dvbdev.h>
 24                                                    28 
 25 struct net_device;                             << 
 26                                                << 
 27 #define DVB_NET_DEVICES_MAX 10                     29 #define DVB_NET_DEVICES_MAX 10
 28                                                    30 
 29 #ifdef CONFIG_DVB_NET                              31 #ifdef CONFIG_DVB_NET
 30                                                    32 
 31 /**                                                33 /**
 32  * struct dvb_net - describes a DVB network in     34  * struct dvb_net - describes a DVB network interface
 33  *                                                 35  *
 34  * @dvbdev:             pointer to &struct dvb     36  * @dvbdev:             pointer to &struct dvb_device.
 35  * @device:             array of pointers to &     37  * @device:             array of pointers to &struct net_device.
 36  * @state:              array of integers to e     38  * @state:              array of integers to each net device. A value
 37  *                      different than zero me     39  *                      different than zero means that the interface is
 38  *                      in usage.                  40  *                      in usage.
 39  * @exit:               flag to indicate when      41  * @exit:               flag to indicate when the device is being removed.
 40  * @demux:              pointer to &struct dmx     42  * @demux:              pointer to &struct dmx_demux.
 41  * @ioctl_mutex:        protect access to this     43  * @ioctl_mutex:        protect access to this struct.
 42  * @remove_mutex:       mutex that avoids a ra << 
 43  *                      called when the hardwa << 
 44  *                      file_operations of dvb << 
 45  *                                                 44  *
 46  * Currently, the core supports up to %DVB_NET     45  * Currently, the core supports up to %DVB_NET_DEVICES_MAX (10) network
 47  * devices.                                        46  * devices.
 48  */                                                47  */
 49                                                    48 
 50 struct dvb_net {                                   49 struct dvb_net {
 51         struct dvb_device *dvbdev;                 50         struct dvb_device *dvbdev;
 52         struct net_device *device[DVB_NET_DEVI     51         struct net_device *device[DVB_NET_DEVICES_MAX];
 53         int state[DVB_NET_DEVICES_MAX];            52         int state[DVB_NET_DEVICES_MAX];
 54         unsigned int exit:1;                       53         unsigned int exit:1;
 55         struct dmx_demux *demux;                   54         struct dmx_demux *demux;
 56         struct mutex ioctl_mutex;                  55         struct mutex ioctl_mutex;
 57         struct mutex remove_mutex;             << 
 58 };                                                 56 };
 59                                                    57 
 60 /**                                                58 /**
 61  * dvb_net_init - nitializes a digital TV netw     59  * dvb_net_init - nitializes a digital TV network device and registers it.
 62  *                                                 60  *
 63  * @adap:       pointer to &struct dvb_adapter     61  * @adap:       pointer to &struct dvb_adapter.
 64  * @dvbnet:     pointer to &struct dvb_net.        62  * @dvbnet:     pointer to &struct dvb_net.
 65  * @dmxdemux:   pointer to &struct dmx_demux.      63  * @dmxdemux:   pointer to &struct dmx_demux.
 66  */                                                64  */
 67 int dvb_net_init(struct dvb_adapter *adap, str     65 int dvb_net_init(struct dvb_adapter *adap, struct dvb_net *dvbnet,
 68                   struct dmx_demux *dmxdemux);     66                   struct dmx_demux *dmxdemux);
 69                                                    67 
 70 /**                                                68 /**
 71  * dvb_net_release - releases a digital TV net     69  * dvb_net_release - releases a digital TV network device and unregisters it.
 72  *                                                 70  *
 73  * @dvbnet:     pointer to &struct dvb_net.        71  * @dvbnet:     pointer to &struct dvb_net.
 74  */                                                72  */
 75 void dvb_net_release(struct dvb_net *dvbnet);      73 void dvb_net_release(struct dvb_net *dvbnet);
 76                                                    74 
 77 #else                                              75 #else
 78                                                    76 
 79 struct dvb_net {                                   77 struct dvb_net {
 80         struct dvb_device *dvbdev;                 78         struct dvb_device *dvbdev;
 81 };                                                 79 };
 82                                                    80 
 83 static inline void dvb_net_release(struct dvb_     81 static inline void dvb_net_release(struct dvb_net *dvbnet)
 84 {                                                  82 {
 85 }                                                  83 }
 86                                                    84 
 87 static inline int dvb_net_init(struct dvb_adap     85 static inline int dvb_net_init(struct dvb_adapter *adap,
 88                                struct dvb_net      86                                struct dvb_net *dvbnet, struct dmx_demux *dmx)
 89 {                                                  87 {
 90         return 0;                                  88         return 0;
 91 }                                                  89 }
 92                                                    90 
 93 #endif /* ifdef CONFIG_DVB_NET */                  91 #endif /* ifdef CONFIG_DVB_NET */
 94                                                    92 
 95 #endif                                             93 #endif
 96                                                    94 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php