aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ixgb/ixgb.h
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2008-03-21 11:06:32 -0700
committerJeff Garzik <jeff@garzik.org>2008-03-26 00:17:43 -0400
commitbab2bce7dcea9aaf9374b6c24001d6afcced4ca5 (patch)
tree07cd8982c9548337e24a26c566e20478284835da /drivers/net/ixgb/ixgb.h
parentc3033b01d763aff572080db09ddcebed115b9cf5 (diff)
ixgb: add explicit state checking
In order to remove the irq_sem code we need to implement strict adapter state checking to prevent accidental double up or downs or resets. This code is largely copied from e1000/e1000e. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgb/ixgb.h')
-rw-r--r--drivers/net/ixgb/ixgb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h
index 3d2e7217e9a..0078136643f 100644
--- a/drivers/net/ixgb/ixgb.h
+++ b/drivers/net/ixgb/ixgb.h
@@ -195,6 +195,15 @@ struct ixgb_adapter {
struct ixgb_hw_stats stats;
uint32_t alloc_rx_buff_failed;
boolean_t have_msi;
+ unsigned long flags;
+};
+
+enum ixgb_state_t {
+ /* TBD
+ __IXGB_TESTING,
+ __IXGB_RESETTING,
+ */
+ __IXGB_DOWN
};
/* Exported from other modules */