Name
mdiobus_write —
Convenience function for writing a given MII mgmt register
Synopsis
int mdiobus_write ( | struct mii_bus * bus, |
| int addr, |
| u32 regnum, |
| u16 val) ; |
Arguments
struct mii_bus * bus
the mii_bus struct
int addr
the phy address
u32 regnum
register number to write
u16 val
value to write to regnum
NOTE
MUST NOT be called from interrupt context,
because the bus read/write functions may wait for an interrupt
to conclude the operation.