RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Data Structures | Macros
reg_mdio.h File Reference

This header file provides MDIO interfaces. More...

#include <bsp/utility.h>

Go to the source code of this file.

Data Structures

struct  tms570_mdio_t
 

Macros

#define TMS570_MDIO_CONTROL_IDLE   BSP_BIT32(31)
 
#define TMS570_MDIO_CONTROL_ENABLE   BSP_BIT32(30)
 
#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL(val)   BSP_FLD32(val,24, 28)
 
#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL_GET(reg)   BSP_FLD32GET(reg,24, 28)
 
#define TMS570_MDIO_CONTROL_HIGHEST_USER_CHANNEL_SET(reg, val)   BSP_FLD32SET(reg, val,24, 28)
 
#define TMS570_MDIO_CONTROL_PREAMBLE   BSP_BIT32(20)
 
#define TMS570_MDIO_CONTROL_FAULT   BSP_BIT32(19)
 
#define TMS570_MDIO_CONTROL_FAULTENB   BSP_BIT32(18)
 
#define TMS570_MDIO_CONTROL_CLKDIV(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_MDIO_CONTROL_CLKDIV_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_MDIO_CONTROL_CLKDIV_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_MDIO_LINKINTRAW_USERPHY1   BSP_BIT32(1)
 
#define TMS570_MDIO_LINKINTRAW_USERPHY0   BSP_BIT32(0)
 
#define TMS570_MDIO_LINKINTMASKED_USERPHY1   BSP_BIT32(1)
 
#define TMS570_MDIO_LINKINTMASKED_USERPHY0   BSP_BIT32(0)
 
#define TMS570_MDIO_USERINTRAW_USERACCESS1   BSP_BIT32(1)
 
#define TMS570_MDIO_USERINTRAW_USERACCESS0   BSP_BIT32(0)
 
#define TMS570_MDIO_USERINTMASKED_USERACCESS1   BSP_BIT32(1)
 
#define TMS570_MDIO_USERINTMASKED_USERACCESS0   BSP_BIT32(0)
 
#define TMS570_MDIO_USERINTMASKSET_USERACCESS1   BSP_BIT32(1)
 
#define TMS570_MDIO_USERINTMASKSET_USERACCESS0   BSP_BIT32(0)
 
#define TMS570_MDIO_USERINTMASKCLEAR_USERACCESS1   BSP_BIT32(1)
 
#define TMS570_MDIO_USERINTMASKCLEAR_USERACCESS0   BSP_BIT32(0)
 
#define TMS570_MDIO_USERACCESS0_GO   BSP_BIT32(31)
 
#define TMS570_MDIO_USERACCESS0_WRITE   BSP_BIT32(30)
 
#define TMS570_MDIO_USERACCESS0_ACK   BSP_BIT32(29)
 
#define TMS570_MDIO_USERACCESS0_REGADR(val)   BSP_FLD32(val,21, 25)
 
#define TMS570_MDIO_USERACCESS0_REGADR_GET(reg)   BSP_FLD32GET(reg,21, 25)
 
#define TMS570_MDIO_USERACCESS0_REGADR_SET(reg, val)   BSP_FLD32SET(reg, val,21, 25)
 
#define TMS570_MDIO_USERACCESS0_PHYADR(val)   BSP_FLD32(val,16, 20)
 
#define TMS570_MDIO_USERACCESS0_PHYADR_GET(reg)   BSP_FLD32GET(reg,16, 20)
 
#define TMS570_MDIO_USERACCESS0_PHYADR_SET(reg, val)   BSP_FLD32SET(reg, val,16, 20)
 
#define TMS570_MDIO_USERACCESS0_DATA(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_MDIO_USERACCESS0_DATA_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_MDIO_USERACCESS0_DATA_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_MDIO_USERPHYSEL0_LINKSEL   BSP_BIT32(7)
 
#define TMS570_MDIO_USERPHYSEL0_LINKINTENB   BSP_BIT32(6)
 
#define TMS570_MDIO_USERPHYSEL0_PHYADRMON(val)   BSP_FLD32(val,0, 4)
 
#define TMS570_MDIO_USERPHYSEL0_PHYADRMON_GET(reg)   BSP_FLD32GET(reg,0, 4)
 
#define TMS570_MDIO_USERPHYSEL0_PHYADRMON_SET(reg, val)   BSP_FLD32SET(reg, val,0, 4)
 
#define TMS570_MDIO_USERACCESS1_GO   BSP_BIT32(31)
 
#define TMS570_MDIO_USERACCESS1_WRITE   BSP_BIT32(30)
 
#define TMS570_MDIO_USERACCESS1_ACK   BSP_BIT32(29)
 
#define TMS570_MDIO_USERACCESS1_REGADR(val)   BSP_FLD32(val,21, 25)
 
#define TMS570_MDIO_USERACCESS1_REGADR_GET(reg)   BSP_FLD32GET(reg,21, 25)
 
#define TMS570_MDIO_USERACCESS1_REGADR_SET(reg, val)   BSP_FLD32SET(reg, val,21, 25)
 
#define TMS570_MDIO_USERACCESS1_PHYADR(val)   BSP_FLD32(val,16, 20)
 
#define TMS570_MDIO_USERACCESS1_PHYADR_GET(reg)   BSP_FLD32GET(reg,16, 20)
 
#define TMS570_MDIO_USERACCESS1_PHYADR_SET(reg, val)   BSP_FLD32SET(reg, val,16, 20)
 
#define TMS570_MDIO_USERACCESS1_DATA(val)   BSP_FLD32(val,0, 15)
 
#define TMS570_MDIO_USERACCESS1_DATA_GET(reg)   BSP_FLD32GET(reg,0, 15)
 
#define TMS570_MDIO_USERACCESS1_DATA_SET(reg, val)   BSP_FLD32SET(reg, val,0, 15)
 
#define TMS570_MDIO_USERPHYSEL1_LINKSEL   BSP_BIT32(7)
 
#define TMS570_MDIO_USERPHYSEL1_LINKINTENB   BSP_BIT32(6)
 
#define TMS570_MDIO_USERPHYSEL1_PHYADRMON(val)   BSP_FLD32(val,0, 4)
 
#define TMS570_MDIO_USERPHYSEL1_PHYADRMON_GET(reg)   BSP_FLD32GET(reg,0, 4)
 
#define TMS570_MDIO_USERPHYSEL1_PHYADRMON_SET(reg, val)   BSP_FLD32SET(reg, val,0, 4)
 

Detailed Description

This header file provides MDIO interfaces.