1 /** 2 * \file mdio.h 3 * 4 * \brief MDIO APIs and macros. 5 * 6 * This file contains the driver API prototypes and macro definitions. 7 */ 8 9 /* (c) Texas Instruments 2009-2013, All rights reserved. */ 10 11 #ifndef __MDIO_H__ 12 #define __MDIO_H__ 13 14 #include "sys_common.h" 15 #include "hw_mdio.h" 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 /*****************************************************************************/ 21 22 /** 23 * @addtogroup EMACMDIO 24 * @{ 25 */ 26 /* 27 ** Prototypes for the APIs 28 */ 29 extern uint32 MDIOPhyAliveStatusGet(uint32 baseAddr); 30 extern uint32 MDIOPhyLinkStatusGet(uint32 baseAddr); 31 extern void MDIOInit(uint32 baseAddr, uint32 mdioInputFreq, 32 uint32 mdioOutputFreq); 33 extern uint32 MDIOPhyRegRead(uint32 baseAddr, uint32 phyAddr, 34 uint32 regNum, volatile uint16 * dataPtr); 35 extern void MDIOPhyRegWrite(uint32 baseAddr, uint32 phyAddr, 36 uint32 regNum, uint16 RegVal); 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 /**@}*/ 43 #endif /* __MDIO_H__ */ 44