aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cxgb3/common.h')
-rw-r--r--drivers/net/cxgb3/common.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/common.h b/drivers/net/cxgb3/common.h
index 75b5ee61f45c..d1b6b1e62f41 100644
--- a/drivers/net/cxgb3/common.h
+++ b/drivers/net/cxgb3/common.h
@@ -522,7 +522,20 @@ enum {
522 MDIO_DEV_PMA_PMD = 1, 522 MDIO_DEV_PMA_PMD = 1,
523 MDIO_DEV_WIS = 2, 523 MDIO_DEV_WIS = 2,
524 MDIO_DEV_PCS = 3, 524 MDIO_DEV_PCS = 3,
525 MDIO_DEV_XGXS = 4 525 MDIO_DEV_XGXS = 4,
526 MDIO_DEV_ANEG = 7,
527 MDIO_DEV_VEND1 = 30,
528 MDIO_DEV_VEND2 = 31
529};
530
531/* LASI control and status registers */
532enum {
533 RX_ALARM_CTRL = 0x9000,
534 TX_ALARM_CTRL = 0x9001,
535 LASI_CTRL = 0x9002,
536 RX_ALARM_STAT = 0x9003,
537 TX_ALARM_STAT = 0x9004,
538 LASI_STAT = 0x9005
526}; 539};
527 540
528/* PHY loopback direction */ 541/* PHY loopback direction */
@@ -665,6 +678,10 @@ int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear,
665int t3_phy_reset(struct cphy *phy, int mmd, int wait); 678int t3_phy_reset(struct cphy *phy, int mmd, int wait);
666int t3_phy_advertise(struct cphy *phy, unsigned int advert); 679int t3_phy_advertise(struct cphy *phy, unsigned int advert);
667int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex); 680int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex);
681int t3_phy_lasi_intr_enable(struct cphy *phy);
682int t3_phy_lasi_intr_disable(struct cphy *phy);
683int t3_phy_lasi_intr_clear(struct cphy *phy);
684int t3_phy_lasi_intr_handler(struct cphy *phy);
668 685
669void t3_intr_enable(struct adapter *adapter); 686void t3_intr_enable(struct adapter *adapter);
670void t3_intr_disable(struct adapter *adapter); 687void t3_intr_disable(struct adapter *adapter);