]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_A2F200_IAR_and_Keil/MicroSemi_Code/drivers/mss_ethernet_mac/phy.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / CORTEX_A2F200_IAR_and_Keil / MicroSemi_Code / drivers / mss_ethernet_mac / phy.h
1 /***************************************************************************//**\r
2  * PHY access methods.\r
3  *\r
4  * (c) Copyright 2007 Actel Corporation\r
5  *\r
6  * SVN $Revision: 2293 $\r
7  * SVN $Date: 2010-02-24 13:52:02 +0000 (Wed, 24 Feb 2010) $\r
8  *\r
9  ******************************************************************************/\r
10 \r
11 #ifndef __MSS_ETHERNET_MAC_PHY_H\r
12 #define __MSS_ETHERNET_MAC_PHY_H        1\r
13 \r
14 #ifdef __cplusplus\r
15 extern "C" {\r
16 #endif \r
17 \r
18 /***************************************************************************//**\r
19  * Resets the PHY.\r
20  */\r
21 void PHY_reset( void );\r
22 \r
23 \r
24 /***************************************************************************//**\r
25  * Restarts PHY auto-negotiation and wait until it's over.\r
26  */\r
27 void PHY_auto_negotiate( void );\r
28 \r
29 \r
30 /***************************************************************************//**\r
31  * Probe used PHY.\r
32  *\r
33  * return       PHY address. If PHY don't fount, returns 255.\r
34  */\r
35 uint8_t PHY_probe( void );\r
36 \r
37 \r
38 /***************************************************************************//**\r
39  * Returns link status.\r
40  *\r
41  * @return          #MAC_LINK_STATUS_LINK if link is up.\r
42  */\r
43 uint8_t PHY_link_status( void );\r
44 \r
45 \r
46 /***************************************************************************//**\r
47  * Returns link type.\r
48  *\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
52  */\r
53 uint8_t PHY_link_type( void );\r
54 \r
55 \r
56 /***************************************************************************//**\r
57  * Sets link type.\r
58  */\r
59 void\r
60 PHY_set_link_type\r
61 (\r
62     uint8_t type\r
63 );\r
64 \r
65 /***************************************************************************//**\r
66  * Sets/Clears the phy loop back mode, based on the enable value\r
67  */\r
68 uint16_t\r
69 PHY_set_loopback\r
70 (\r
71     uint8_t enable\r
72 );\r
73 \r
74 #ifdef __cplusplus\r
75 }\r
76 #endif\r
77 \r
78 #endif /*__MSS_ETHERNET_MAC_PHY_H*/\r