FreeBSD/sys/dev/utopia/idtphy.c
/*
 * Reset the chip to reflect the current state of utopia.
 */
Reset the chip to reflect the current state of utopia.
Reset the chip to reflect the current state of utopia .
static int
idt77155_reset(struct utopia *utp)
{
	int err = 0;
	if (!(utp->flags & UTP_FL_NORESET)) {
		err |= UTP_WRITEREG(utp, IDTPHY_REGO_MRID,
		    IDTPHY_REGM_MRID_RESET, IDTPHY_REGM_MRID_RESET);
		err |= UTP_WRITEREG(utp, IDTPHY_REGO_MRID,
		    IDTPHY_REGM_MRID_RESET, 0);
	}
	err |= idt77155_set_chip(utp);
	return (err ? EIO : 0);
}
static int idt77155_reset ( struct utopia * utp ) { int err = 0 ; if ( ! ( utp -> flags & UTP_FL_NORESET ) ) { err |= UTP_WRITEREG ( utp , IDTPHY_REGO_MRID , IDTPHY_REGM_MRID_RESET , IDTPHY_REGM_MRID_RESET ) ; err |= UTP_WRITEREG ( utp , IDTPHY_REGO_MRID , IDTPHY_REGM_MRID_RESET , 0 ) ; } err |= idt77155_set_chip ( utp ) ; return ( err ? EIO : 0 ) ; }
Reset the chip to reflect the current state of utopia.
Reset the chip to reflect the current state of utopia .