![]() |
|
|||
0001 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */ 0002 /* 0003 * net.h 0004 * 0005 * Copyright (C) 2000 Marcus Metzler <marcus@convergence.de> 0006 * & Ralph Metzler <ralph@convergence.de> 0007 * for convergence integrated media GmbH 0008 * 0009 * This program is free software; you can redistribute it and/or 0010 * modify it under the terms of the GNU Lesser General Public License 0011 * as published by the Free Software Foundation; either version 2.1 0012 * of the License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Lesser General Public License 0020 * along with this program; if not, write to the Free Software 0021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 0022 * 0023 */ 0024 0025 #ifndef _DVBNET_H_ 0026 #define _DVBNET_H_ 0027 0028 #include <linux/types.h> 0029 0030 /** 0031 * struct dvb_net_if - describes a DVB network interface 0032 * 0033 * @pid: Packet ID (PID) of the MPEG-TS that contains data 0034 * @if_num: number of the Digital TV interface. 0035 * @feedtype: Encapsulation type of the feed. 0036 * 0037 * A MPEG-TS stream may contain packet IDs with IP packages on it. 0038 * This struct describes it, and the type of encoding. 0039 * 0040 * @feedtype can be: 0041 * 0042 * - %DVB_NET_FEEDTYPE_MPE for MPE encoding 0043 * - %DVB_NET_FEEDTYPE_ULE for ULE encoding. 0044 */ 0045 struct dvb_net_if { 0046 __u16 pid; 0047 __u16 if_num; 0048 __u8 feedtype; 0049 #define DVB_NET_FEEDTYPE_MPE 0 /* multi protocol encapsulation */ 0050 #define DVB_NET_FEEDTYPE_ULE 1 /* ultra lightweight encapsulation */ 0051 }; 0052 0053 0054 #define NET_ADD_IF _IOWR('o', 52, struct dvb_net_if) 0055 #define NET_REMOVE_IF _IO('o', 53) 0056 #define NET_GET_IF _IOWR('o', 54, struct dvb_net_if) 0057 0058 0059 /* binary compatibility cruft: */ 0060 struct __dvb_net_if_old { 0061 __u16 pid; 0062 __u16 if_num; 0063 }; 0064 #define __NET_ADD_IF_OLD _IOWR('o', 52, struct __dvb_net_if_old) 0065 #define __NET_GET_IF_OLD _IOWR('o', 54, struct __dvb_net_if_old) 0066 0067 0068 #endif /*_DVBNET_H_*/
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |