FreeBSD/sys/dev/wl/if_wl.c
/*
 * wlrustrt:
 *
 *	This routine starts the receive unit running.  First checks if the
 *	board is actually ready, then the board is instructed to receive
 *	packets again.
 *
 */
This routine starts the receive unit running.  First checks if the
board is actually ready, then the board is instructed to receive
packets again.
This routine starts the receive unit running . First checks if the board is actually ready then the board is instructed to receive packets again .
static void
wlrustrt(struct wl_softc *sc)
{
    u_short		rfa;
#ifdef WLDEBUG
    if (sc->ifp->if_flags & IFF_DEBUG)
	if_printf(sc->ifp, "entered wlrustrt()\n");
#endif
    WL_WRITE_2(sc, PIOR0, OFFSET_SCB);
    if (WL_READ_2(sc, PIOP0) & SCB_RUS_READY){
	printf("wlrustrt: RUS_READY\n");
	return;
    }
    WL_WRITE_2(sc, PIOR0, OFFSET_SCB + 2);
    WL_WRITE_2(sc, PIOP0, SCB_RU_STRT);		
    rfa = wlbldru(sc);
    WL_WRITE_2(sc, PIOR0, OFFSET_SCB + 6);	
    WL_WRITE_2(sc, PIOP0, rfa);
    SET_CHAN_ATTN(sc);
    return;
}
static void wlrustrt ( struct wl_softc * sc ) { u_short rfa ; #ifdef WLDEBUG if ( sc -> ifp -> if_flags & IFF_DEBUG ) if_printf ( sc -> ifp , " \n " ) ; #endif WL_WRITE_2 ( sc , PIOR0 , OFFSET_SCB ) ; if ( WL_READ_2 ( sc , PIOP0 ) & SCB_RUS_READY ) { printf ( " \n " ) ; return ; } WL_WRITE_2 ( sc , PIOR0 , OFFSET_SCB + 2 ) ; WL_WRITE_2 ( sc , PIOP0 , SCB_RU_STRT ) ; rfa = wlbldru ( sc ) ; WL_WRITE_2 ( sc , PIOR0 , OFFSET_SCB + 6 ) ; WL_WRITE_2 ( sc , PIOP0 , rfa ) ; SET_CHAN_ATTN ( sc ) ; return ; }
wlrustrt:
      This routine starts the receive unit running.
wlrustrt : This routine starts the receive unit running .
/* command */ /* address of scb_rfa_offset */