FreeBSD/sys/dev/etherswitch/arswitch/arswitch_reg.c
/*
 * Read half a register.  Some of the registers define control bits, and
 * the sequence of half-word accesses matters.  The register addresses
 * are word-even (mod 4).
 */
Read half a register.  Some of the registers define control bits, and
the sequence of half-word accesses matters.  The register addresses
are word-even (mod 4).
Read half a register . Some of the registers define control bits and the sequence of half - word accesses matters . The register addresses are word - even ( mod 4 ) .
static inline int
arswitch_readreg16(device_t dev, int addr)
{
	uint16_t phy, reg;
	arswitch_split_setpage(dev, addr, &phy, &reg);
	return (MDIO_READREG(device_get_parent(dev), 0x10 | phy, reg));
}
static inline int arswitch_readreg16 ( device_t dev , int addr ) { uint16_t phy , reg ; arswitch_split_setpage ( dev , addr , & phy , & reg ) ; return ( MDIO_READREG ( device_get_parent ( dev ) , 0x10 | phy , reg ) ) ; }
Read half a register.
Read half a register .