FreeBSD/sys/dev/etherswitch/arswitch/arswitch_reg.c
/*
 * Write half a register.  See above!
 */
Write half a register.  See above!
Write half a register . See above!
static inline int
arswitch_writereg16(device_t dev, int addr, int data)
{
	uint16_t phy, reg;
	arswitch_split_setpage(dev, addr, &phy, &reg);
	return (MDIO_WRITEREG(device_get_parent(dev), 0x10 | phy, reg, data));
}
static inline int arswitch_writereg16 ( device_t dev , int addr , int data ) { uint16_t phy , reg ; arswitch_split_setpage ( dev , addr , & phy , & reg ) ; return ( MDIO_WRITEREG ( device_get_parent ( dev ) , 0x10 | phy , reg , data ) ) ; }
Write half a register.
Write half a register .