diff options
author | dhananjay.phadke@gmail.com <dhananjay.phadke@gmail.com> | 2007-07-01 14:56:00 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-02 08:24:52 -0400 |
commit | 2d1a3bbdf21d05e16703c8d608628ae4676eb3ac (patch) | |
tree | 64df196fd0cd4dcc17f614ab65a25637f1ce5531 /drivers/net/netxen/netxen_nic_phan_reg.h | |
parent | 644caeefb3bbf539e74b7098648ff0bfc9e52bb3 (diff) |
RESEND [PATCH 2/3] NetXen: Support per PCI-function interrupt mask registers
This patch updates the various access routines to access different
control and status settings present in different register locations.
This will fix problems related to working of different ports in
multi Port card.
Signed-off by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off by: Milan Bag <mbag@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_phan_reg.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic_phan_reg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_phan_reg.h b/drivers/net/netxen/netxen_nic_phan_reg.h index 9457fc7249c8..10fe6fafa6f6 100644 --- a/drivers/net/netxen/netxen_nic_phan_reg.h +++ b/drivers/net/netxen/netxen_nic_phan_reg.h | |||
@@ -114,6 +114,20 @@ | |||
114 | #define CRB_V2P_3 NETXEN_NIC_REG(0x29c) | 114 | #define CRB_V2P_3 NETXEN_NIC_REG(0x29c) |
115 | #define CRB_V2P(port) (CRB_V2P_0+((port)*4)) | 115 | #define CRB_V2P(port) (CRB_V2P_0+((port)*4)) |
116 | #define CRB_DRIVER_VERSION NETXEN_NIC_REG(0x2a0) | 116 | #define CRB_DRIVER_VERSION NETXEN_NIC_REG(0x2a0) |
117 | /* sw int status/mask registers */ | ||
118 | #define CRB_SW_INT_MASK_0 NETXEN_NIC_REG(0x1d8) | ||
119 | #define CRB_SW_INT_MASK_1 NETXEN_NIC_REG(0x1e0) | ||
120 | #define CRB_SW_INT_MASK_2 NETXEN_NIC_REG(0x1e4) | ||
121 | #define CRB_SW_INT_MASK_3 NETXEN_NIC_REG(0x1e8) | ||
122 | |||
123 | /* | ||
124 | * capabilities register, can be used to selectively enable/disable features | ||
125 | * for backward compability | ||
126 | */ | ||
127 | #define CRB_NIC_CAPABILITIES_HOST NETXEN_NIC_REG(0x1a8) | ||
128 | #define CRB_NIC_CAPABILITIES_FW NETXEN_NIC_REG(0x1dc) | ||
129 | |||
130 | #define INTR_SCHEME_PERPORT 0x1 | ||
117 | 131 | ||
118 | /* used for ethtool tests */ | 132 | /* used for ethtool tests */ |
119 | #define CRB_SCRATCHPAD_TEST NETXEN_NIC_REG(0x280) | 133 | #define CRB_SCRATCHPAD_TEST NETXEN_NIC_REG(0x280) |