aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/falcon_hwdefs.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-10-23 04:30:06 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-24 07:26:56 -0400
commit56241ceb9e75fc1a5fb142a754096ad6c6ab19ee (patch)
tree8ae854f3176aff0b478cb56db611e68a3f901a1f /drivers/net/sfc/falcon_hwdefs.h
parent5087b54ddc4f3a1007c0984177934c016d884639 (diff)
sfc: Remove versioned bitfield macros
These macros are not extensible to more than two NIC types without repetition of register definitions, and they are only used to deal with a few fields in RX_CFG_REG and global events which moved between Falcon rev A1 and B0. Therefore: - Move RX_CFG_REG initialisation into its own function which tests the NIC revision just once - Explicitly test the NIC revision when checking the RX_RECOVERY flag in global events - Merge definitions of RX_XOFF_MAC_EN flag, which did not move - Remove the macro definitions Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/falcon_hwdefs.h')
-rw-r--r--drivers/net/sfc/falcon_hwdefs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/sfc/falcon_hwdefs.h b/drivers/net/sfc/falcon_hwdefs.h
index 2d2261117ace..13f3999449f4 100644
--- a/drivers/net/sfc/falcon_hwdefs.h
+++ b/drivers/net/sfc/falcon_hwdefs.h
@@ -313,8 +313,6 @@
313#define RX_XON_MAC_TH_B0_WIDTH 9 313#define RX_XON_MAC_TH_B0_WIDTH 9
314#define RX_XOFF_MAC_TH_B0_LBN 1 314#define RX_XOFF_MAC_TH_B0_LBN 1
315#define RX_XOFF_MAC_TH_B0_WIDTH 9 315#define RX_XOFF_MAC_TH_B0_WIDTH 9
316#define RX_XOFF_MAC_EN_B0_LBN 0
317#define RX_XOFF_MAC_EN_B0_WIDTH 1
318 316
319/* A1 */ 317/* A1 */
320#define RX_DESC_PUSH_EN_A1_LBN 35 318#define RX_DESC_PUSH_EN_A1_LBN 35
@@ -329,8 +327,9 @@
329#define RX_XON_MAC_TH_A1_WIDTH 5 327#define RX_XON_MAC_TH_A1_WIDTH 5
330#define RX_XOFF_MAC_TH_A1_LBN 1 328#define RX_XOFF_MAC_TH_A1_LBN 1
331#define RX_XOFF_MAC_TH_A1_WIDTH 5 329#define RX_XOFF_MAC_TH_A1_WIDTH 5
332#define RX_XOFF_MAC_EN_A1_LBN 0 330
333#define RX_XOFF_MAC_EN_A1_WIDTH 1 331#define RX_XOFF_MAC_EN_LBN 0
332#define RX_XOFF_MAC_EN_WIDTH 1
334 333
335/* Receive filter control register */ 334/* Receive filter control register */
336#define RX_FILTER_CTL_REG 0x810 335#define RX_FILTER_CTL_REG 0x810