diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-06-17 13:27:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-18 03:46:14 -0400 |
commit | d173346040af497af22818dfc48cff369e67cf50 (patch) | |
tree | 566b752334fc16e87cd3d99d9ef9a9e8627478b8 | |
parent | 73a370795371e41f72aeca61656d47adeadf28e5 (diff) |
netxen: fix detection of cut-thru firmware mode
Fix the detection of cut-thru mode of the hardware (direct dma
to host) to mode configured in SRE (ingress block) rather than
onboard memory control.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/netxen/netxen_nic_hdr.h | 1 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_hdr.h b/drivers/net/netxen/netxen_nic_hdr.h index 7f0ddbfa7b28..3cc047844af3 100644 --- a/drivers/net/netxen/netxen_nic_hdr.h +++ b/drivers/net/netxen/netxen_nic_hdr.h | |||
@@ -355,6 +355,7 @@ enum { | |||
355 | #define NETXEN_HW_CRB_HUB_AGT_ADR_LPC \ | 355 | #define NETXEN_HW_CRB_HUB_AGT_ADR_LPC \ |
356 | ((NETXEN_HW_H6_CH_HUB_ADR << 7) | NETXEN_HW_LPC_CRB_AGT_ADR) | 356 | ((NETXEN_HW_H6_CH_HUB_ADR << 7) | NETXEN_HW_LPC_CRB_AGT_ADR) |
357 | 357 | ||
358 | #define NETXEN_SRE_MISC (NETXEN_CRB_SRE + 0x0002c) | ||
358 | #define NETXEN_SRE_INT_STATUS (NETXEN_CRB_SRE + 0x00034) | 359 | #define NETXEN_SRE_INT_STATUS (NETXEN_CRB_SRE + 0x00034) |
359 | #define NETXEN_SRE_PBI_ACTIVE_STATUS (NETXEN_CRB_SRE + 0x01014) | 360 | #define NETXEN_SRE_PBI_ACTIVE_STATUS (NETXEN_CRB_SRE + 0x01014) |
360 | #define NETXEN_SRE_L1RE_CTL (NETXEN_CRB_SRE + 0x03000) | 361 | #define NETXEN_SRE_L1RE_CTL (NETXEN_CRB_SRE + 0x03000) |
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index 42ffb825ebf1..9702509ce3c5 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -2041,8 +2041,8 @@ void netxen_nic_get_firmware_info(struct netxen_adapter *adapter) | |||
2041 | fw_major, fw_minor, fw_build); | 2041 | fw_major, fw_minor, fw_build); |
2042 | 2042 | ||
2043 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { | 2043 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { |
2044 | i = NXRD32(adapter, NETXEN_MIU_MN_CONTROL); | 2044 | i = NXRD32(adapter, NETXEN_SRE_MISC); |
2045 | adapter->ahw.cut_through = (i & 0x4) ? 1 : 0; | 2045 | adapter->ahw.cut_through = (i & 0x8000) ? 1 : 0; |
2046 | dev_info(&pdev->dev, "firmware running in %s mode\n", | 2046 | dev_info(&pdev->dev, "firmware running in %s mode\n", |
2047 | adapter->ahw.cut_through ? "cut-through" : "legacy"); | 2047 | adapter->ahw.cut_through ? "cut-through" : "legacy"); |
2048 | } | 2048 | } |