1 /***************************************************************************//**
\r
2 * PHY access methods.
\r
4 * (c) Copyright 2007 Actel Corporation
\r
6 * SVN $Revision: 2293 $
\r
7 * SVN $Date: 2010-02-24 13:52:02 +0000 (Wed, 24 Feb 2010) $
\r
9 ******************************************************************************/
\r
11 #ifndef __MSS_ETHERNET_MAC_PHY_H
\r
12 #define __MSS_ETHERNET_MAC_PHY_H 1
\r
18 /***************************************************************************//**
\r
21 void PHY_reset( void );
\r
24 /***************************************************************************//**
\r
25 * Restarts PHY auto-negotiation and wait until it's over.
\r
27 void PHY_auto_negotiate( void );
\r
30 /***************************************************************************//**
\r
33 * return PHY address. If PHY don't fount, returns 255.
\r
35 uint8_t PHY_probe( void );
\r
38 /***************************************************************************//**
\r
39 * Returns link status.
\r
41 * @return #MAC_LINK_STATUS_LINK if link is up.
\r
43 uint8_t PHY_link_status( void );
\r
46 /***************************************************************************//**
\r
47 * Returns link type.
\r
49 * @return the logical OR of the following values:
\r
50 * #MAC_LINK_STATUS_100MB - Connection is 100Mb
\r
51 * #MAC_LINK_STATUS_FDX - Connection is full duplex
\r
53 uint8_t PHY_link_type( void );
\r
56 /***************************************************************************//**
\r
65 /***************************************************************************//**
\r
66 * Sets/Clears the phy loop back mode, based on the enable value
\r
78 #endif /*__MSS_ETHERNET_MAC_PHY_H*/
\r