Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
mdio_if_info Struct Reference

#include <mdio.h>

Data Fields

int prtad
u32 mmds
unsigned mode_support
struct net_devicedev
int(* mdio_read )(struct net_device *dev, int prtad, int devad, u16 addr)
int(* mdio_write )(struct net_device *dev, int prtad, int devad, u16 addr, u16 val)

Detailed Description

struct mdio_if_info - Ethernet controller MDIO interface : PRTAD of the PHY (MDIO_PRTAD_NONE if not present/unknown) : Mask of MMDs expected to be present in the PHY. This must be non-zero unless = MDIO_PRTAD_NONE. : MDIO modes supported. If MDIO_SUPPORTS_C22 is set then MII register access will be passed through with = MDIO_DEVAD_NONE. If MDIO_EMULATE_C22 is set then access to commonly used clause 22 registers will be translated into clause 45 registers. : Net device structure : Register read function; returns value or negative error code : Register write function; returns 0 or negative error code

Definition at line 44 of file mdio.h.

Field Documentation

Definition at line 49 of file mdio.h.

int(* mdio_read)(struct net_device *dev, int prtad, int devad, u16 addr)

Definition at line 50 of file mdio.h.

int(* mdio_write)(struct net_device *dev, int prtad, int devad, u16 addr, u16 val)

Definition at line 52 of file mdio.h.

u32 mmds

Definition at line 46 of file mdio.h.

unsigned mode_support

Definition at line 47 of file mdio.h.

int prtad

Definition at line 45 of file mdio.h.

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