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