version 1.17, 2008/11/07 00:20:12 |
version 1.18, 2008/12/16 22:35:34 |
Line 695 dmcxint(void *a) |
|
Line 695 dmcxint(void *a) |
|
arg &= DMC_CNTMASK; |
arg &= DMC_CNTMASK; |
if (arg & DMC_FATAL) { |
if (arg & DMC_FATAL) { |
if (arg != DMC_START) { |
if (arg != DMC_START) { |
bitmask_snprintf(arg, CNTLO_BITS, |
snprintb(buf, sizeof(buf), CNTLO_BITS, |
buf, sizeof(buf)); |
arg); |
log(LOG_ERR, |
log(LOG_ERR, |
"%s: fatal error, flags=%s\n", |
"%s: fatal error, flags=%s\n", |
device_xname(&sc->sc_dev), buf); |
device_xname(&sc->sc_dev), buf); |
Line 730 dmcxint(void *a) |
|
Line 730 dmcxint(void *a) |
|
break; |
break; |
report: |
report: |
#ifdef DMCDEBUG |
#ifdef DMCDEBUG |
bitmask_snprintf(arg, CNTLO_BITS, buf, sizeof(buf)); |
snprintb(buf, sizeof(buf), CNTLO_BITS, arg); |
printd("%s: soft error, flags=%s\n", |
printd("%s: soft error, flags=%s\n", |
device_xname(&sc->sc_dev), buf); |
device_xname(&sc->sc_dev), buf); |
#endif |
#endif |
Line 944 dmctimeout(struct ifnet *ifp) |
|
Line 944 dmctimeout(struct ifnet *ifp) |
|
char buf1[64], buf2[64]; |
char buf1[64], buf2[64]; |
|
|
if (sc->sc_flag & DMC_ONLINE) { |
if (sc->sc_flag & DMC_ONLINE) { |
bitmask_snprintf(DMC_RBYTE(DMC_BSEL0) & 0xff, DMC0BITS, |
snprintb(buf1, sizeof(buf1), DMC0BITS, |
buf1, sizeof(buf1)); |
DMC_RBYTE(DMC_BSEL0) & 0xff); |
bitmask_snprintf(DMC_RBYTE(DMC_BSEL2) & 0xff, DMC2BITS, |
snprintb(buf2, sizeof(buf2), DMC2BITS, |
buf2, sizeof(buf2)); |
DMC_RBYTE(DMC_BSEL2) & 0xff); |
log(LOG_ERR, "%s: output timeout, bsel0=%s bsel2=%s\n", |
log(LOG_ERR, "%s: output timeout, bsel0=%s bsel2=%s\n", |
device_xname(&sc->sc_dev), buf1, buf2); |
device_xname(&sc->sc_dev), buf1, buf2); |
dmcrestart(sc); |
dmcrestart(sc); |