summaryrefslogtreecommitdiff
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-06-05 21:24:36 +0400
committerDavid S. Miller <davem@davemloft.net>2010-06-07 04:56:01 +0400
commit9c7df9157889a8f67d2d104fd52f2aacb3826fe7 (patch)
tree24c2bab795aeee309fc075f83f752e4df4db7789 /drivers/net/tg3.h
parent57d8b88030ca9f295bb72ef65228c6d86bed22f6 (diff)
downloadlinux-9c7df9157889a8f67d2d104fd52f2aacb3826fe7.tar.xz
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 @@
#define TG3_CPMU_HST_ACC 0x0000361c
#define CPMU_HST_ACC_MACCLK_MASK 0x001f0000
#define CPMU_HST_ACC_MACCLK_6_25 0x00130000
-/* 0x3620 --> 0x362c unused */
+/* 0x3620 --> 0x3630 unused */
-#define TG3_CPMU_STATUS 0x0000362c
-#define TG3_CPMU_STATUS_PCIE_FUNC 0x20000000
#define TG3_CPMU_CLCK_STAT 0x00003630
#define CPMU_CLCK_STAT_MAC_CLCK_MASK 0x001f0000
#define CPMU_CLCK_STAT_MAC_CLCK_62_5 0x00000000