FreeBSD/sys/dev/ste/if_ste.c
/*
 * Read the MII serial port for the MII bit-bang module.
 */
Read the MII serial port for the MII bit-bang module.
Read the MII serial port for the MII bit - bang module .
static uint32_t
ste_mii_bitbang_read(device_t dev)
{
	struct ste_softc *sc;
	uint32_t val;
	sc = device_get_softc(dev);
	val = CSR_READ_1(sc, STE_PHYCTL);
	CSR_BARRIER(sc, STE_PHYCTL, 1,
	    BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
	return (val);
}
static uint32_t ste_mii_bitbang_read ( device_t dev ) { struct ste_softc * sc ; uint32_t val ; sc = device_get_softc ( dev ) ; val = CSR_READ_1 ( sc , STE_PHYCTL ) ; CSR_BARRIER ( sc , STE_PHYCTL , 1 , BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE ) ; return ( val ) ; }
Read the MII serial port for the MII bit-bang module.
Read the MII serial port for the MII bit - bang module .