FreeRTOS
[armadillo_firmware.git] / FreeRTOS / Common / ethernet / lwIP_130 / contrib / port / FreeRTOS / ColdFire / mii.h
blob26b279341350d0e27a4c0e00e639a06b0a1b6c94
1 /*!
2 * \file mii.h
3 * \brief Media Independent Interface (MII) driver
4 * \version $Revision: 1.3 $
5 * \author Michael Norman
6 *
7 * \warning This driver assumes that FEC0 is used for all MII management
8 * communications. For dual PHYs, etc., insure that FEC0_MDC and
9 * FEC0_MDIO are connected to the PHY's MDC and MDIO.
12 #ifndef _MII_H_
13 #define _MII_H_
15 /*******************************************************************/
17 int
18 mii_write(int, int, uint16);
20 int
21 mii_read(int, int, uint16*);
23 void
24 mii_init(int);
26 /* MII Speed Settings */
27 typedef enum {
28 MII_10BASE_T, /*!< 10Base-T operation */
29 MII_100BASE_TX /*!< 100Base-TX operation */
30 } MII_SPEED;
32 /* MII Duplex Settings */
33 typedef enum {
34 MII_HDX, /*!< half-duplex */
35 MII_FDX /*!< full-duplex */
36 } MII_DUPLEX;
38 #define MII_TIMEOUT 0x10000
39 #define MII_LINK_TIMEOUT 0x10000
41 /*******************************************************************/
43 #endif /* _MII_H_ */