summaryrefslogtreecommitdiff
path: root/drivers/stemodem
diff options
context:
space:
mode:
authorSjur Brændeland <sjur.brandeland@stericsson.com>2010-08-13 12:53:10 +0200
committerDenis Kenzior <denkenz@gmail.com>2010-08-13 14:00:43 -0500
commit72bc61976c3f2b8a43f732db0e71fcbf45105eb4 (patch)
tree5ef81636775ccf6ef7cb40de7161ab675eecf563 /drivers/stemodem
parent83ef53484ab0c046441f97ef0a69fbb77dc9637c (diff)
stemodem: Copy if_caif.h from 2.6.36 RC
Diffstat (limited to 'drivers/stemodem')
-rw-r--r--drivers/stemodem/if_caif.h48
1 files changed, 6 insertions, 42 deletions
diff --git a/drivers/stemodem/if_caif.h b/drivers/stemodem/if_caif.h
index ad3686b9..5e7eed4e 100644
--- a/drivers/stemodem/if_caif.h
+++ b/drivers/stemodem/if_caif.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) ST-Ericsson AB 2009
+ * Copyright (C) ST-Ericsson AB 2010
* Author: Sjur Brendeland/ sjur.brandeland@stericsson.com
* License terms: GNU General Public License (GPL) version 2
*/
@@ -9,57 +9,21 @@
#include <linux/sockios.h>
#include <linux/types.h>
#include <linux/socket.h>
-/**
- * enum sioc_caif - SOCKIO for creating new CAIF Net Devices.
- * @SIOCCAIFNETNEW: Used to create a new instance of the CAIF IP Interface.
- * struct ifreq containing struct ifcaif_param are used
- * as parameters. ifr_name must be filled in.
- * @SIOCCAIFNETCHANGE: As above, but changes a disconnected CAIF IP Inteface.
- * @SIOCCAIFNETREMOVE: Removes a CAIF IP Interface.
- *
- * CAIF IP Interface can be created, changed and deleted,
- * by this enum. In addition standard Socket IO Controls (SIGIOC*)
- * can be used to manage standard IP Interface parameters.
- * The struct ifreq are used to carry parameters.
- */
-enum sioc_caif {
- SIOCCAIFNETNEW = SIOCPROTOPRIVATE,
- SIOCCAIFNETCHANGE,
- SIOCCAIFNETREMOVE
-};
-
/**
- * struct ifcaif_param - Parameters for creating CAIF Network Interface.
- *
- * When using SIOCCAIFNETNEW to create a CAIF IP interface, this structure
- * is used for configuration data.
- * The attribute ifr_ifru.ifru_data in struct struct ifreq must be set
- * point at an instance of struct ifcaif_param.
- *
- * @ipv4_connid: Connection ID for IPv4 PDP Context.
- * @ipv6_connid: Connection ID for IPv6 PDP Context.
- * @loop: If different from zero, device is doing loopback
- */
-struct ifcaif_param {
- __u32 ipv4_connid;
- __u32 ipv6_connid;
- __u8 loop;
-};
-
-/**
- * enum ifla_caif
- * When using RT Netlink to create, destroy or configure a CAIF IP interface,
- * enum ifla_caif is used to specify the configuration attributes.
- *
+ * enum ifla_caif - CAIF NetlinkRT parameters.
* @IFLA_CAIF_IPV4_CONNID: Connection ID for IPv4 PDP Context.
* The type of attribute is NLA_U32.
* @IFLA_CAIF_IPV6_CONNID: Connection ID for IPv6 PDP Context.
* The type of attribute is NLA_U32.
* @IFLA_CAIF_LOOPBACK: If different from zero, device is doing loopback
* The type of attribute is NLA_U8.
+ *
+ * When using RT Netlink to create, destroy or configure a CAIF IP interface,
+ * enum ifla_caif is used to specify the configuration attributes.
*/
enum ifla_caif {
+ __IFLA_CAIF_UNSPEC,
IFLA_CAIF_IPV4_CONNID,
IFLA_CAIF_IPV6_CONNID,
IFLA_CAIF_LOOPBACK,