diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-02-17 10:17:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 20:27:40 -0500 |
commit | 6a443a0f72ad7706345412dbd2e4d4981fdfce39 (patch) | |
tree | e0e9724789c0bf2e232bae18080147834e58da50 /drivers/net/tg3.h | |
parent | 79eb6904361fe4e54e589919a9b62c5e036c42c3 (diff) |
tg3: Push phylib definitions to phylib
This patch pushes phylib definitions out to phylib headers. For phy
IDs, this removes some code duplication.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-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 | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 800dec463e98..574a1cc4d353 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2943,22 +2943,14 @@ struct tg3 { | |||
2943 | #define TG3_PHY_ID_BCM57765 0x5c0d8a40 | 2943 | #define TG3_PHY_ID_BCM57765 0x5c0d8a40 |
2944 | #define TG3_PHY_ID_BCM5906 0xdc00ac40 | 2944 | #define TG3_PHY_ID_BCM5906 0xdc00ac40 |
2945 | #define TG3_PHY_ID_BCM8002 0x60010140 | 2945 | #define TG3_PHY_ID_BCM8002 0x60010140 |
2946 | #define TG3_PHY_ID_BCM50610 0x0143bd60 | ||
2947 | #define TG3_PHY_ID_BCM50610M 0x0143bd70 | ||
2948 | #define TG3_PHY_ID_BCMAC131 0x0143bc70 | ||
2949 | #define TG3_PHY_ID_RTL8211C 0x001cc910 | ||
2950 | #define TG3_PHY_ID_RTL8201E 0x00008200 | ||
2951 | #define TG3_PHY_ID_BCM57780 0x03625d90 | ||
2952 | #define TG3_PHY_ID_INVALID 0xffffffff | 2946 | #define TG3_PHY_ID_INVALID 0xffffffff |
2953 | 2947 | ||
2948 | #define PHY_ID_RTL8211C 0x001cc910 | ||
2949 | #define PHY_ID_RTL8201E 0x00008200 | ||
2950 | |||
2954 | #define TG3_PHY_ID_REV_MASK 0x0000000f | 2951 | #define TG3_PHY_ID_REV_MASK 0x0000000f |
2955 | #define TG3_PHY_REV_BCM5401_B0 0x1 | 2952 | #define TG3_PHY_REV_BCM5401_B0 0x1 |
2956 | 2953 | ||
2957 | #define TG3_PHY_OUI_MASK 0xfffffc00 | ||
2958 | #define TG3_PHY_OUI_1 0x00206000 | ||
2959 | #define TG3_PHY_OUI_2 0x0143bc00 | ||
2960 | #define TG3_PHY_OUI_3 0x03625c00 | ||
2961 | |||
2962 | /* This macro assumes the passed PHY ID is | 2954 | /* This macro assumes the passed PHY ID is |
2963 | * already masked with TG3_PHY_ID_MASK. | 2955 | * already masked with TG3_PHY_ID_MASK. |
2964 | */ | 2956 | */ |