AM263x MCU+ SDK  10.00.00
enet_mod_phy.h File Reference

Introduction

This file contains the type definitions and helper macros for the Ethernet PHY interface.

Go to the source code of this file.

Data Structures

struct  EnetPhy_GenericInArgs
 Generic input args. More...
 
struct  EnetPhy_ReadRegInArgs
 Input args for ENET_PHY_IOCTL_READ_EXT_REG command. More...
 
struct  EnetPhy_WriteRegInArgs
 Input args for ENET_PHY_IOCTL_WRITE_EXT_REG command. More...
 
struct  EnetPhy_C45ReadRegInArgs
 Input args for ENET_PHY_IOCTL_C45_READ_REG command. More...
 
struct  EnetPhy_C45WriteRegInArgs
 Input args for ENET_PHY_IOCTL_C45_WRITE_REG command. More...
 

Macros

#define ENET_PHY_PUBLIC_IOCTL(x)
 Helper macro to create PHY IOCTL commands. More...
 

Enumerations

enum  EnetPhy_Ioctl_e {
  ENET_PHY_IOCTL_GET_ID = ENET_PHY_PUBLIC_IOCTL(0U), ENET_PHY_IOCTL_GET_SUPPORTED_MODES = ENET_PHY_PUBLIC_IOCTL(1U), ENET_PHY_IOCTL_GET_LOOPBACK_STATE = ENET_PHY_PUBLIC_IOCTL(2U), ENET_PHY_IOCTL_IS_ALIVE = ENET_PHY_PUBLIC_IOCTL(3U),
  ENET_PHY_IOCTL_IS_LINKED = ENET_PHY_PUBLIC_IOCTL(4U), ENET_PHY_IOCTL_GET_LINK_MODE = ENET_PHY_PUBLIC_IOCTL(5U), ENET_PHY_IOCTL_RESET = ENET_PHY_PUBLIC_IOCTL(6U), ENET_PHY_IOCTL_READ_REG = ENET_PHY_PUBLIC_IOCTL(7U),
  ENET_PHY_IOCTL_WRITE_REG = ENET_PHY_PUBLIC_IOCTL(8U), ENET_PHY_IOCTL_READ_EXT_REG = ENET_PHY_PUBLIC_IOCTL(9U), ENET_PHY_IOCTL_WRITE_EXT_REG = ENET_PHY_PUBLIC_IOCTL(10U), ENET_PHY_IOCTL_C45_READ_REG = ENET_PHY_PUBLIC_IOCTL(11U),
  ENET_PHY_IOCTL_C45_WRITE_REG = ENET_PHY_PUBLIC_IOCTL(12U), ENET_PHY_IOCTL_PRINT_REGS = ENET_PHY_PUBLIC_IOCTL(13U)
}
 PHY IOCTL commands. More...
 

Macro Definition Documentation

◆ ENET_PHY_PUBLIC_IOCTL

#define ENET_PHY_PUBLIC_IOCTL (   x)
Value:
ENET_IOCTL_PHY_BASE | \
ENET_IOCTL_MIN(x))

Helper macro to create PHY IOCTL commands.

Enumeration Type Documentation

◆ EnetPhy_Ioctl_e

PHY IOCTL commands.

Enumerator
ENET_PHY_IOCTL_GET_ID 

Get PHY identification.

IOCTL parameters:

ENET_PHY_IOCTL_GET_SUPPORTED_MODES 

Get PHY supported modes by local PHY device.

IOCTL parameters:

ENET_PHY_IOCTL_GET_LOOPBACK_STATE 

Check if PHY is in loopback or not.

IOCTL parameters:

ENET_PHY_IOCTL_IS_ALIVE 

Check PHY alive status.

IOCTL parameters:

ENET_PHY_IOCTL_IS_LINKED 

Check state-machine link state, that is, whether the state machine has reached the LINKED state.

IOCTL parameters:

ENET_PHY_IOCTL_GET_LINK_MODE 

Get the link speed and duplexity state after the state machine has reached the LINKED state.

IOCTL parameters:

ENET_PHY_IOCTL_RESET 

Reset PHY.

IOCTL parameters:

ENET_PHY_IOCTL_READ_REG 

Read PHY register.

IOCTL parameters:

ENET_PHY_IOCTL_WRITE_REG 

Write PHY register.

IOCTL parameters:

ENET_PHY_IOCTL_READ_EXT_REG 

Read PHY extended register.

IOCTL parameters:

ENET_PHY_IOCTL_WRITE_EXT_REG 

Write PHY extended register.

IOCTL parameters:

ENET_PHY_IOCTL_C45_READ_REG 

Read PHY register using Clause-45 frame.

IOCTL parameters:

ENET_PHY_IOCTL_C45_WRITE_REG 

Write PHY register using Clause-45 frame.

IOCTL parameters:

ENET_PHY_IOCTL_PRINT_REGS 

Print PHY registers.

IOCTL parameters:

ENET_IOCTL_TYPE_PUBLIC
@ ENET_IOCTL_TYPE_PUBLIC
Definition: enet_ioctl.h:209