iPXE
Data Fields
mii_operations Struct Reference

MII interface operations. More...

#include <mii.h>

Data Fields

int(* read )(struct mii_interface *mdio, unsigned int phy, unsigned int reg)
 Read from MII register.
int(* write )(struct mii_interface *mdio, unsigned int phy, unsigned int reg, unsigned int data)
 Write to MII register.

Detailed Description

MII interface operations.

Definition at line 18 of file mii.h.


Field Documentation

int( * mii_operations::read)(struct mii_interface *mdio, unsigned int phy, unsigned int reg)

Read from MII register.

Parameters:
mdioMII interface
phyPHY address
regRegister address
Return values:
dataData read, or negative error

Definition at line 27 of file mii.h.

Referenced by mii_read().

int( * mii_operations::write)(struct mii_interface *mdio, unsigned int phy, unsigned int reg, unsigned int data)

Write to MII register.

Parameters:
mdioMII interface
phyPHY address
regRegister address
dataData to write
Return values:
rcReturn status code

Definition at line 38 of file mii.h.

Referenced by mii_write().


The documentation for this struct was generated from the following file: