FreeBSD/sys/dev/ed/if_ed_pccard.c
/* MII bit-twiddling routines for cards using Dlink chipset */
MII bit-twiddling routines for cards using Dlink chipset
MII bit - twiddling routines for cards using Dlink chipset
static void
ed_pccard_dl100xx_mii_reset(struct ed_softc *sc)
{
	if (sc->chip_type != ED_CHIP_TYPE_DL10022)
		return;
	ed_asic_outb(sc, ED_DL100XX_MIIBUS, ED_DL10022_MII_RESET2);
	DELAY(10);
	ed_asic_outb(sc, ED_DL100XX_MIIBUS,
	    ED_DL10022_MII_RESET2 | ED_DL10022_MII_RESET1);
	DELAY(10);
	ed_asic_outb(sc, ED_DL100XX_MIIBUS, ED_DL10022_MII_RESET2);
	DELAY(10);
	ed_asic_outb(sc, ED_DL100XX_MIIBUS,
	    ED_DL10022_MII_RESET2 | ED_DL10022_MII_RESET1);
	DELAY(10);
	ed_asic_outb(sc, ED_DL100XX_MIIBUS, 0);
}
static void ed_pccard_dl100xx_mii_reset ( struct ed_softc * sc ) { if ( sc -> chip_type != ED_CHIP_TYPE_DL10022 ) return ; ed_asic_outb ( sc , ED_DL100XX_MIIBUS , ED_DL10022_MII_RESET2 ) ; DELAY ( 10 ) ; ed_asic_outb ( sc , ED_DL100XX_MIIBUS , ED_DL10022_MII_RESET2 | ED_DL10022_MII_RESET1 ) ; DELAY ( 10 ) ; ed_asic_outb ( sc , ED_DL100XX_MIIBUS , ED_DL10022_MII_RESET2 ) ; DELAY ( 10 ) ; ed_asic_outb ( sc , ED_DL100XX_MIIBUS , ED_DL10022_MII_RESET2 | ED_DL10022_MII_RESET1 ) ; DELAY ( 10 ) ; ed_asic_outb ( sc , ED_DL100XX_MIIBUS , 0 ) ; }
MII bit-twiddling routines for cards using Dlink chipset
MII bit - twiddling routines for cards using Dlink chipset