aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2007-05-03 16:24:05 -0400
committerDavid S. Miller <davem@davemloft.net>2007-05-03 16:24:05 -0400
commit1b8227c48e164655f02aa0eff55862af2d05da51 (patch)
treeee1598123fba3ee397a463ff706ec8f235464523 /drivers/net/bnx2.h
parent27a005b883984ef3a3cf24e7ddd78eb78902f494 (diff)
[BNX2]: Add indirect spinlock.
The indirect register access method will be used by more than one caller in BH context (NAPI poll and timer), so a spinlock is required. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 124bd03cff3e..ba175a800c8e 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6522,6 +6522,7 @@ struct bnx2 {
6522 6522
6523 /* Used to synchronize phy accesses. */ 6523 /* Used to synchronize phy accesses. */
6524 spinlock_t phy_lock; 6524 spinlock_t phy_lock;
6525 spinlock_t indirect_lock;
6525 6526
6526 u32 phy_flags; 6527 u32 phy_flags;
6527#define PHY_SERDES_FLAG 1 6528#define PHY_SERDES_FLAG 1