aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic.h
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-10-13 01:31:44 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-13 14:48:21 -0400
commitf03b0ebd8e7132bd9adb41348070813feb280300 (patch)
treec7606724b4dcd84857980797c9d948f00cbeb185 /drivers/net/netxen/netxen_nic.h
parent907fa1201c76f426a13bdff5be2747fb62c2353f (diff)
netxen: separate register and memory access lock
Since register and onboard memory access has separate window registers, they need not be kept under same lock. Also, memory is always accessed from process context (mostly for firmware init and diagnostic tools). Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r--drivers/net/netxen/netxen_nic.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index 2a42132b9799..1047609ef51b 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -551,6 +551,9 @@ struct netxen_hardware_context {
551 u32 ocm_win; 551 u32 ocm_win;
552 u32 crb_win; 552 u32 crb_win;
553 553
554 rwlock_t crb_lock;
555 spinlock_t mem_lock;
556
554 u8 cut_through; 557 u8 cut_through;
555 u8 revision_id; 558 u8 revision_id;
556 u8 pci_func; 559 u8 pci_func;
@@ -1115,8 +1118,6 @@ struct netxen_adapter {
1115 struct pci_dev *pdev; 1118 struct pci_dev *pdev;
1116 struct list_head mac_list; 1119 struct list_head mac_list;
1117 1120
1118 rwlock_t adapter_lock;
1119
1120 spinlock_t tx_clean_lock; 1121 spinlock_t tx_clean_lock;
1121 1122
1122 u16 num_txd; 1123 u16 num_txd;