FreeBSD/sys/dev/wl/if_wl.c
/*
 * Print out interesting information about the 82596.
 */
Print out interesting information about the 82596.
Print out interesting information about the 82596 .
static void
wldump(struct wl_softc *sc)
{
    int		i;
    printf("hasr %04x\n", WL_READ_2(sc, HASR));
    printf("scb at %04x:\n ", OFFSET_SCB);
    WL_WRITE_2(sc, PIOR1, OFFSET_SCB);
    for (i = 0; i < 8; i++)
	printf("%04x ", WL_READ_2(sc, PIOP1));
    printf("\n");
    printf("cu at %04x:\n ", OFFSET_CU);
    WL_WRITE_2(sc, PIOR1, OFFSET_CU);
    for (i = 0; i < 8; i++)
	printf("%04x ", WL_READ_2(sc, PIOP1));
    printf("\n");
    printf("tbd at %04x:\n ", OFFSET_TBD);
    WL_WRITE_2(sc, PIOR1, OFFSET_TBD);
    for (i = 0; i < 4; i++)
	printf("%04x ", WL_READ_2(sc, PIOP1));
    printf("\n");
}
static void wldump ( struct wl_softc * sc ) { int i ; printf ( " \n " , WL_READ_2 ( sc , HASR ) ) ; printf ( " \n " , OFFSET_SCB ) ; WL_WRITE_2 ( sc , PIOR1 , OFFSET_SCB ) ; for ( i = 0 ; i < 8 ; i ++ ) printf ( " " , WL_READ_2 ( sc , PIOP1 ) ) ; printf ( " \n " ) ; printf ( " \n " , OFFSET_CU ) ; WL_WRITE_2 ( sc , PIOR1 , OFFSET_CU ) ; for ( i = 0 ; i < 8 ; i ++ ) printf ( " " , WL_READ_2 ( sc , PIOP1 ) ) ; printf ( " \n " ) ; printf ( " \n " , OFFSET_TBD ) ; WL_WRITE_2 ( sc , PIOR1 , OFFSET_TBD ) ; for ( i = 0 ; i < 4 ; i ++ ) printf ( " " , WL_READ_2 ( sc , PIOP1 ) ) ; printf ( " \n " ) ; }
Print out interesting information about the 82596.
Print out interesting information about the 82596 .