mdio.h 1014 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  9. #ifndef __MDIO_H__
  10. #define __MDIO_H__
  11. #include "sys_common.h"
  12. #include "hw_mdio.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /*****************************************************************************/
  17. /**
  18. * @addtogroup EMACMDIO
  19. * @{
  20. */
  21. /*
  22. ** Prototypes for the APIs
  23. */
  24. extern uint32 MDIOPhyAliveStatusGet(uint32 baseAddr);
  25. extern uint32 MDIOPhyLinkStatusGet(uint32 baseAddr);
  26. extern void MDIOInit(uint32 baseAddr, uint32 mdioInputFreq,
  27. uint32 mdioOutputFreq);
  28. extern uint32 MDIOPhyRegRead(uint32 baseAddr, uint32 phyAddr,
  29. uint32 regNum, volatile uint16 * dataPtr);
  30. extern void MDIOPhyRegWrite(uint32 baseAddr, uint32 phyAddr,
  31. uint32 regNum, uint16 RegVal);
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. /**@}*/
  36. #endif /* __MDIO_H__ */