FreeBSD/sys/dev/wl/if_wl.c
/*
 * wlack: if the 82596 wants attention because it has finished
 * sending or receiving a packet, acknowledge its desire and
 * return bits indicating the kind of attention. wlack() returns
 * these bits so that the caller can service exactly the
 * conditions that wlack() acknowledged.
 */
if the 82596 wants attention because it has finished
sending or receiving a packet, acknowledge its desire and
return bits indicating the kind of attention. wlack() returns
these bits so that the caller can service exactly the
conditions that wlack() acknowledged.
if the 82596 wants attention because it has finished sending or receiving a packet acknowledge its desire and return bits indicating the kind of attention . wlack () returns these bits so that the caller can service exactly the conditions that wlack () acknowledged .
static int
wlack(struct wl_softc *sc)
{
    int i;
    u_short cmd;
    WL_WRITE_2(sc, PIOR1, OFFSET_SCB);
    if (!(cmd = (WL_READ_2(sc, PIOP1) & SCB_SW_INT)))
	return(0);
#ifdef WLDEBUG
    if (sc->ifp->if_flags & IFF_DEBUG)
	if_printf(sc->ifp, "doing a wlack()\n");
#endif
    WL_WRITE_2(sc, PIOP1, cmd);
    SET_CHAN_ATTN(sc);
    WL_WRITE_2(sc, PIOR0, OFFSET_SCB + 2);	
    for (i = 1000000; WL_READ_2(sc, PIOP0) && (i-- > 0); )
	continue;
    if (i < 1)
	if_printf(sc->ifp, "wlack(): board not accepting command.\n");
    return(cmd);
}
static int wlack ( struct wl_softc * sc ) { int i ; u_short cmd ; WL_WRITE_2 ( sc , PIOR1 , OFFSET_SCB ) ; if ( ! ( cmd = ( WL_READ_2 ( sc , PIOP1 ) & SCB_SW_INT ) ) ) return ( 0 ) ; #ifdef WLDEBUG if ( sc -> ifp -> if_flags & IFF_DEBUG ) if_printf ( sc -> ifp , " \n " ) ; #endif WL_WRITE_2 ( sc , PIOP1 , cmd ) ; SET_CHAN_ATTN ( sc ) ; WL_WRITE_2 ( sc , PIOR0 , OFFSET_SCB + 2 ) ; for ( i = 1000000 ; WL_READ_2 ( sc , PIOP0 ) && ( i -- > 0 ) ; ) continue ; if ( i < 1 ) if_printf ( sc -> ifp , " \n " ) ; return ( cmd ) ; }
wlack: if the 82596 wants attention because it has finished
 sending or receiving a packet, acknowledge its desire and
 return bits indicating the kind of attention.
wlack : if the 82596 wants attention because it has finished sending or receiving a packet acknowledge its desire and return bits indicating the kind of attention .
/* address of scb_command */