aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-06-05 13:24:36 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-06 20:56:01 -0400
commit9c7df9157889a8f67d2d104fd52f2aacb3826fe7 (patch)
tree24c2bab795aeee309fc075f83f752e4df4db7789 /drivers/net/tg3.h
parent57d8b88030ca9f295bb72ef65228c6d86bed22f6 (diff)
tg3: Use devfn to determine function number
The driver sometimes needs to know which function number the current device is. This patch changes the code to use devfn over internal register values. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index c245e809d428..878cdee7cc62 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -1073,10 +1073,8 @@
1073#define TG3_CPMU_HST_ACC 0x0000361c 1073#define TG3_CPMU_HST_ACC 0x0000361c
1074#define CPMU_HST_ACC_MACCLK_MASK 0x001f0000 1074#define CPMU_HST_ACC_MACCLK_MASK 0x001f0000
1075#define CPMU_HST_ACC_MACCLK_6_25 0x00130000 1075#define CPMU_HST_ACC_MACCLK_6_25 0x00130000
1076/* 0x3620 --> 0x362c unused */ 1076/* 0x3620 --> 0x3630 unused */
1077 1077
1078#define TG3_CPMU_STATUS 0x0000362c
1079#define TG3_CPMU_STATUS_PCIE_FUNC 0x20000000
1080#define TG3_CPMU_CLCK_STAT 0x00003630 1078#define TG3_CPMU_CLCK_STAT 0x00003630
1081#define CPMU_CLCK_STAT_MAC_CLCK_MASK 0x001f0000 1079#define CPMU_CLCK_STAT_MAC_CLCK_MASK 0x001f0000
1082#define CPMU_CLCK_STAT_MAC_CLCK_62_5 0x00000000 1080#define CPMU_CLCK_STAT_MAC_CLCK_62_5 0x00000000