Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

The first function within the Ethernet PHY API is the PHY driver initialization/Init() function which is called by the Ethernet network interface layer after the MAC device driver is initialized without error.

Files

Every physical layer driver’s net_phy.c

Prototype

Note that since every PHY driver’s Init() function is accessed only by function pointer via the PHY driver’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static’.

Arguments

pif

Pointer to the interface to initialize a PHY.

perr

Pointer to variable that will receive the return error code from this function.

Returned Value

None.

Required Configuration

None.

Notes/Warnings

The PHY initialization function is responsible for the following actions:

...