FreeBSD/sys/dev/bm/if_bm.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
bm_mii_bitbang_read(device_t dev)
{
	struct bm_softc *sc;
	uint32_t reg;
	sc = device_get_softc(dev);
	reg = CSR_READ_2(sc, BM_MII_CSR);
	CSR_BARRIER(sc, BM_MII_CSR, 2,
	    BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE);
	return (reg);
}
static uint32_t bm_mii_bitbang_read ( device_t dev ) { struct bm_softc * sc ; uint32_t reg ; sc = device_get_softc ( dev ) ; reg = CSR_READ_2 ( sc , BM_MII_CSR ) ; CSR_BARRIER ( sc , BM_MII_CSR , 2 , BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE ) ; return ( reg ) ; }
Read the MII serial port for the MII bit-bang module.
Read the MII serial port for the MII bit - bang module .