summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice.h
diff options
context:
space:
mode:
authorAnirudh Venkataramanan2018-03-20 15:58:05 +0100
committerJeff Kirsher2018-03-26 17:28:02 +0200
commit837f08fdecbe4b2ffc7725624342e73b886665a8 (patch)
treee0d3aa1bd1e0af8c6161a641885a975b3c52184a /drivers/net/ethernet/intel/ice/ice.h
parentMerge tag 'wireless-drivers-next-for-davem-2018-03-24' of git://git.kernel.or... (diff)
downloadkernel-qcow2-linux-837f08fdecbe4b2ffc7725624342e73b886665a8.tar.gz
kernel-qcow2-linux-837f08fdecbe4b2ffc7725624342e73b886665a8.tar.xz
kernel-qcow2-linux-837f08fdecbe4b2ffc7725624342e73b886665a8.zip
ice: Add basic driver framework for Intel(R) E800 Series
This patch adds a basic driver framework for the Intel(R) E800 Ethernet Series of network devices. There is no functionality right now other than the ability to load. Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Tony Brelinski <tonyx.brelinski@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice.h')
-rw-r--r--drivers/net/ethernet/intel/ice/ice.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h
new file mode 100644
index 000000000000..e3c1672d4976
--- /dev/null
+++ b/drivers/net/ethernet/intel/ice/ice.h
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* Copyright (c) 2018, Intel Corporation. */
+
+#ifndef _ICE_H_
+#define _ICE_H_
+
+#include <linux/types.h>
+#include <linux/errno.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/netdevice.h>
+#include <linux/compiler.h>
+#include <linux/pci.h>
+#include <linux/aer.h>
+#include <linux/bitmap.h>
+#include "ice_devids.h"
+#include "ice_type.h"
+
+#define ICE_BAR0 0
+
+#define ICE_DFLT_NETIF_M (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)
+
+enum ice_state {
+ __ICE_DOWN,
+ __ICE_STATE_NBITS /* must be last */
+};
+
+struct ice_pf {
+ struct pci_dev *pdev;
+ DECLARE_BITMAP(state, __ICE_STATE_NBITS);
+ u32 msg_enable;
+ struct ice_hw hw;
+};
+#endif /* _ICE_H_ */