sungem_phy.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | sungem_phy.c (19e2f6fe9601ca5c846b7163e6d6d00f87b34760) |
---|---|
1/* 2 * PHY drivers for the sungem ethernet driver. 3 * 4 * This file could be shared with other drivers. 5 * 6 * (c) 2002-2007, Benjamin Herrenscmidt (benh@kernel.crashing.org) 7 * 8 * TODO: --- 19 unchanged lines hidden (view full) --- 28#include <linux/mii.h> 29#include <linux/ethtool.h> 30#include <linux/delay.h> 31 32#ifdef CONFIG_PPC_PMAC 33#include <asm/prom.h> 34#endif 35 | 1/* 2 * PHY drivers for the sungem ethernet driver. 3 * 4 * This file could be shared with other drivers. 5 * 6 * (c) 2002-2007, Benjamin Herrenscmidt (benh@kernel.crashing.org) 7 * 8 * TODO: --- 19 unchanged lines hidden (view full) --- 28#include <linux/mii.h> 29#include <linux/ethtool.h> 30#include <linux/delay.h> 31 32#ifdef CONFIG_PPC_PMAC 33#include <asm/prom.h> 34#endif 35 |
36#include "sungem_phy.h" | 36#include <linux/sungem_phy.h> |
37 38/* Link modes of the BCM5400 PHY */ 39static const int phy_BCM5400_link_table[8][3] = { 40 { 0, 0, 0 }, /* No link */ 41 { 0, 0, 0 }, /* 10BT Half Duplex */ 42 { 1, 0, 0 }, /* 10BT Full Duplex */ 43 { 0, 1, 0 }, /* 100BT Half Duplex */ 44 { 0, 1, 0 }, /* 100BT Half Duplex */ --- 1106 unchanged lines hidden (view full) --- 1151 &bcm5462V_phy_def, 1152 &marvell88e1101v1_phy_def, 1153 &marvell88e1101v2_phy_def, 1154 &marvell88e1111_phy_def, 1155 &genmii_phy_def, 1156 NULL 1157}; 1158 | 37 38/* Link modes of the BCM5400 PHY */ 39static const int phy_BCM5400_link_table[8][3] = { 40 { 0, 0, 0 }, /* No link */ 41 { 0, 0, 0 }, /* 10BT Half Duplex */ 42 { 1, 0, 0 }, /* 10BT Full Duplex */ 43 { 0, 1, 0 }, /* 100BT Half Duplex */ 44 { 0, 1, 0 }, /* 100BT Half Duplex */ --- 1106 unchanged lines hidden (view full) --- 1151 &bcm5462V_phy_def, 1152 &marvell88e1101v1_phy_def, 1153 &marvell88e1101v2_phy_def, 1154 &marvell88e1111_phy_def, 1155 &genmii_phy_def, 1156 NULL 1157}; 1158 |
1159int mii_phy_probe(struct mii_phy *phy, int mii_id) | 1159int sungem_phy_probe(struct mii_phy *phy, int mii_id) |
1160{ 1161 int rc; 1162 u32 id; 1163 struct mii_phy_def* def; 1164 int i; 1165 1166 /* We do not reset the mii_phy structure as the driver 1167 * may re-probe the PHY regulary --- 22 unchanged lines hidden (view full) --- 1190fail: 1191 phy->speed = 0; 1192 phy->duplex = 0; 1193 phy->pause = 0; 1194 phy->advertising = 0; 1195 return -ENODEV; 1196} 1197 | 1160{ 1161 int rc; 1162 u32 id; 1163 struct mii_phy_def* def; 1164 int i; 1165 1166 /* We do not reset the mii_phy structure as the driver 1167 * may re-probe the PHY regulary --- 22 unchanged lines hidden (view full) --- 1190fail: 1191 phy->speed = 0; 1192 phy->duplex = 0; 1193 phy->pause = 0; 1194 phy->advertising = 0; 1195 return -ENODEV; 1196} 1197 |
1198EXPORT_SYMBOL(mii_phy_probe); | 1198EXPORT_SYMBOL(sungem_phy_probe); |
1199MODULE_LICENSE("GPL"); | 1199MODULE_LICENSE("GPL"); |
1200 | |