summaryrefslogtreecommitdiff
path: root/drivers/staging/et131x/et131x.h
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-10-01 10:14:11 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-04 17:43:12 (GMT)
commita3bf5fa772963ef0310d982077784ef6839f2fa7 (patch)
tree7b770e78b73a458c23ff3679b2c4903e0377d067 /drivers/staging/et131x/et131x.h
parent53c3ee0db36db31d095f4e902bc42a4dea18fd8c (diff)
downloadlinux-fsl-qoriq-a3bf5fa772963ef0310d982077784ef6839f2fa7.tar.xz
staging: et131x: Introduce et1310_in_phy_coma() call
In several places in the code, the pm_csr register is read and the PHY_SW_COMA bit checked. Move this check into its own small function to make the code more readable. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et131x.h')
-rw-r--r--drivers/staging/et131x/et131x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/et131x/et131x.h b/drivers/staging/et131x/et131x.h
index c047e6e..d967c5a1 100644
--- a/drivers/staging/et131x/et131x.h
+++ b/drivers/staging/et131x/et131x.h
@@ -87,6 +87,7 @@ void et131x_enable_txrx(struct net_device *netdev);
void et131x_disable_txrx(struct net_device *netdev);
/* et1310_pm.c */
+int et1310_in_phy_coma(struct et131x_adapter *adapter);
void et1310_enable_phy_coma(struct et131x_adapter *adapter);
void et1310_disable_phy_coma(struct et131x_adapter *adapter);