diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-06-05 19:24:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-07 02:56:01 +0200 |
commit | 9c7df9157889a8f67d2d104fd52f2aacb3826fe7 (patch) | |
tree | 24c2bab795aeee309fc075f83f752e4df4db7789 /drivers/net/tg3.h | |
parent | tg3: 5717: Allow serdes link via parallel detect (diff) | |
download | linux-9c7df9157889a8f67d2d104fd52f2aacb3826fe7.tar.xz linux-9c7df9157889a8f67d2d104fd52f2aacb3826fe7.zip |
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.h | 4 |
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 |