diff options
author | Divy Le Ray <divy@chelsio.com> | 2009-03-12 17:14:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-13 14:30:47 -0400 |
commit | bf792094ef830117312b3990b63474320ec864c0 (patch) | |
tree | db47894a787ec8eee78b34c500661fd17231229f /drivers/net/cxgb3/common.h | |
parent | cd40658a616050df0a50d0a3ded06e3ebcc0a04a (diff) |
cxgb3: detect mac link faults.
The driver currently ignores the local or remote link faults
raised at the mac layer. This patch fixes it.
Our mac however only advertizes link events, so wait for the
phy to stabilize the link, then enable mac link events interrupts.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3/common.h')
-rw-r--r-- | drivers/net/cxgb3/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/common.h b/drivers/net/cxgb3/common.h index db4f4f575b6a..9ee021e750c8 100644 --- a/drivers/net/cxgb3/common.h +++ b/drivers/net/cxgb3/common.h | |||
@@ -280,6 +280,7 @@ struct mac_stats { | |||
280 | unsigned long num_toggled; /* # times toggled TxEn due to stuck TX */ | 280 | unsigned long num_toggled; /* # times toggled TxEn due to stuck TX */ |
281 | unsigned long num_resets; /* # times reset due to stuck TX */ | 281 | unsigned long num_resets; /* # times reset due to stuck TX */ |
282 | 282 | ||
283 | unsigned long link_faults; /* # detected link faults */ | ||
283 | }; | 284 | }; |
284 | 285 | ||
285 | struct tp_mib_stats { | 286 | struct tp_mib_stats { |
@@ -701,6 +702,8 @@ int t3_phy_lasi_intr_handler(struct cphy *phy); | |||
701 | void t3_intr_enable(struct adapter *adapter); | 702 | void t3_intr_enable(struct adapter *adapter); |
702 | void t3_intr_disable(struct adapter *adapter); | 703 | void t3_intr_disable(struct adapter *adapter); |
703 | void t3_intr_clear(struct adapter *adapter); | 704 | void t3_intr_clear(struct adapter *adapter); |
705 | void t3_xgm_intr_enable(struct adapter *adapter, int idx); | ||
706 | void t3_xgm_intr_disable(struct adapter *adapter, int idx); | ||
704 | void t3_port_intr_enable(struct adapter *adapter, int idx); | 707 | void t3_port_intr_enable(struct adapter *adapter, int idx); |
705 | void t3_port_intr_disable(struct adapter *adapter, int idx); | 708 | void t3_port_intr_disable(struct adapter *adapter, int idx); |
706 | void t3_port_intr_clear(struct adapter *adapter, int idx); | 709 | void t3_port_intr_clear(struct adapter *adapter, int idx); |
@@ -708,6 +711,7 @@ int t3_slow_intr_handler(struct adapter *adapter); | |||
708 | int t3_phy_intr_handler(struct adapter *adapter); | 711 | int t3_phy_intr_handler(struct adapter *adapter); |
709 | 712 | ||
710 | void t3_link_changed(struct adapter *adapter, int port_id); | 713 | void t3_link_changed(struct adapter *adapter, int port_id); |
714 | void t3_link_fault(struct adapter *adapter, int port_id); | ||
711 | int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc); | 715 | int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc); |
712 | const struct adapter_info *t3_get_adapter_info(unsigned int board_id); | 716 | const struct adapter_info *t3_get_adapter_info(unsigned int board_id); |
713 | int t3_seeprom_read(struct adapter *adapter, u32 addr, __le32 *data); | 717 | int t3_seeprom_read(struct adapter *adapter, u32 addr, __le32 *data); |
@@ -744,6 +748,8 @@ int t3_mc7_bd_read(struct mc7 *mc7, unsigned int start, unsigned int n, | |||
744 | 748 | ||
745 | int t3_mac_reset(struct cmac *mac); | 749 | int t3_mac_reset(struct cmac *mac); |
746 | void t3b_pcs_reset(struct cmac *mac); | 750 | void t3b_pcs_reset(struct cmac *mac); |
751 | void t3_mac_disable_exact_filters(struct cmac *mac); | ||
752 | void t3_mac_enable_exact_filters(struct cmac *mac); | ||
747 | int t3_mac_enable(struct cmac *mac, int which); | 753 | int t3_mac_enable(struct cmac *mac, int which); |
748 | int t3_mac_disable(struct cmac *mac, int which); | 754 | int t3_mac_disable(struct cmac *mac, int which); |
749 | int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu); | 755 | int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu); |