summaryrefslogtreecommitdiff
path: root/drivers/net/enic/vnic_vic.h
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-05-13 22:20:35 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-11 02:42:06 -0700
commita6a5580c4d90788d67a77c689d3ab22aa5eecfc3 (patch)
tree89080daf4b0b4939daadb807f19eca3e977d42cb /drivers/net/enic/vnic_vic.h
parent9aa3283595451ca093500ff0977b106e1f465586 (diff)
enic: Move the Cisco driver
Move the Cisco driver into drivers/net/ethernet/cisco/ and make the necessary Kconfig and Makefile changes. CC: Christian Benvenuti <benve@cisco.com> CC: Vasanthy Kolluri <vkolluri@cisco.com> CC: Roopa Prabhu <roprabhu@cisco.com> CC: David Wang <dwang2@cisco.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/enic/vnic_vic.h')
-rw-r--r--drivers/net/enic/vnic_vic.h83
1 files changed, 0 insertions, 83 deletions
diff --git a/drivers/net/enic/vnic_vic.h b/drivers/net/enic/vnic_vic.h
deleted file mode 100644
index 9ef81f148351..000000000000
--- a/drivers/net/enic/vnic_vic.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright 2010 Cisco Systems, Inc. All rights reserved.
- *
- * This program is free software; you may redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- *
- */
-
-#ifndef _VNIC_VIC_H_
-#define _VNIC_VIC_H_
-
-/* Note: All integer fields in NETWORK byte order */
-
-/* Note: String field lengths include null char */
-
-#define VIC_PROVINFO_CISCO_OUI { 0x00, 0x00, 0x0c }
-#define VIC_PROVINFO_GENERIC_TYPE 0x4
-
-enum vic_generic_prov_tlv_type {
- VIC_GENERIC_PROV_TLV_PORT_PROFILE_NAME_STR = 0,
- VIC_GENERIC_PROV_TLV_CLIENT_MAC_ADDR = 1,
- VIC_GENERIC_PROV_TLV_CLIENT_NAME_STR = 2,
- VIC_GENERIC_PROV_TLV_CLUSTER_PORT_NAME_STR = 3,
- VIC_GENERIC_PROV_TLV_CLUSTER_PORT_UUID_STR = 4,
- VIC_GENERIC_PROV_TLV_CLUSTER_UUID_STR = 5,
- VIC_GENERIC_PROV_TLV_CLUSTER_NAME_STR = 7,
- VIC_GENERIC_PROV_TLV_HOST_UUID_STR = 8,
- VIC_GENERIC_PROV_TLV_CLIENT_UUID_STR = 9,
- VIC_GENERIC_PROV_TLV_INCARNATION_NUMBER = 10,
- VIC_GENERIC_PROV_TLV_OS_TYPE = 11,
- VIC_GENERIC_PROV_TLV_OS_VENDOR = 12,
- VIC_GENERIC_PROV_TLV_CLIENT_TYPE = 15,
-};
-
-enum vic_generic_prov_os_type {
- VIC_GENERIC_PROV_OS_TYPE_UNKNOWN = 0,
- VIC_GENERIC_PROV_OS_TYPE_ESX = 1,
- VIC_GENERIC_PROV_OS_TYPE_LINUX = 2,
- VIC_GENERIC_PROV_OS_TYPE_WINDOWS = 3,
- VIC_GENERIC_PROV_OS_TYPE_SOLARIS = 4,
-};
-
-struct vic_provinfo {
- u8 oui[3]; /* OUI of data provider */
- u8 type; /* provider-specific type */
- u32 length; /* length of data below */
- u32 num_tlvs; /* number of tlvs */
- struct vic_provinfo_tlv {
- u16 type;
- u16 length;
- u8 value[0];
- } tlv[0];
-} __packed;
-
-#define VIC_PROVINFO_ADD_TLV(vp, tlvtype, tlvlen, data) \
- do { \
- err = vic_provinfo_add_tlv(vp, tlvtype, tlvlen, data); \
- if (err) \
- goto add_tlv_failure; \
- } while (0)
-
-#define VIC_PROVINFO_MAX_DATA 1385
-#define VIC_PROVINFO_MAX_TLV_DATA (VIC_PROVINFO_MAX_DATA - \
- sizeof(struct vic_provinfo))
-
-struct vic_provinfo *vic_provinfo_alloc(gfp_t flags, const u8 *oui,
- const u8 type);
-void vic_provinfo_free(struct vic_provinfo *vp);
-int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length,
- const void *value);
-size_t vic_provinfo_size(struct vic_provinfo *vp);
-
-#endif /* _VNIC_VIC_H_ */