DDOLOG
DDOLOG("Invalid root endpoint", 0, 0, 0, 0);
DDOLOG("Memory still in use after detach! mem_use (count)"
DDOLOG("Clear toggle on transfer in progress! halted",
DDOLOG("Flags=%#x IER=%#x ISR=%#x CTRL=%#x", t->flags, e, r, f);
DDOLOG("IER value corrupted! halted", 0, 0, 0, 0);
DDOLOG("Missed transfer completion. halted", 0, 0, 0,
DDOLOG("AB=%d done but not in progress! halted", ab,
DDOLOG("no status! xfer %p spipe %p", xfer, spipe, 0,0);
DDOLOG("USB Status = %#.2x", status, 0, 0, 0);
DDOLOG("overflow - cont %d len %d xfer->ux_length %d "
DDOLOG("Invalid controller state detected! "
DDOLOG("xfer %p spipe %p NAK delay by %d", xfer, spipe,
DDOLOG("xfer %p spipe %p nerrs %d", xfer, spipe,
DDOLOG("Low speed device via hub disabled, "
DDOLOG("ISOC transfer not supported "
DDOLOG("Halt! sc %p spipe %p xfer %p", sc, spipe, xfer, 0);
DDOLOG("reserved_bustime %d < 0!",
DDOLOG("%s: Max reserved bus time exceeded! "
DDOLOG("Reserved bus time exceeds %d!",
DDOLOG("ClrPortFeatERR:value=%#.4x", what, 0,0,0);
DDOLOG("SET PORT_RESET when not ACTIVE!",
DDOLOG("SET PORT_RESET without PORT_POWER! flags %p",
DDOLOG("USB Suspend not implemented!", 0, 0, 0, 0);
DDOLOG("SetPortFeatERR=%#.8x", what, 0,0,0);
DDOLOG("Unknown Get Descriptor %#.4x",
DDOLOG("Unknown Get Hub Descriptor %#.4x",
DDOLOG("len %d actlen %d short %d", xfer->ux_length,
DDOLOG("request: type %#x", type, 0, 0, 0);
DDOLOG("request: r=%d,v=%d,i=%d,l=%d ", req, value, index, len);
DDOLOG("USB A Host Control = %#.2x", r, 0, 0, 0);
DDOLOG("USB A Base Address = %u", aaddr, 0,0,0);
DDOLOG("USB A Length = %u", alen, 0,0,0);
DDOLOG("USB A Status = %#.2x", r, 0,0,0);
DDOLOG("USB A Remaining or Overflow Length = %u", r, 0,0,0);
DDOLOG("USB B Host Control = %#.2x", r, 0,0,0);
DDOLOG("USB B Base Address = %u", baddr, 0,0,0);
DDOLOG("USB B Length = %u", blen, 0,0,0);
DDOLOG("USB B Status = %#.2x", r, 0,0,0);
DDOLOG("USB B Remaining or Overflow Length = %u", r, 0,0,0);
DDOLOG("Control = %#.2x", r, 0,0,0);
DDOLOG("Interrupt Enable = %#.2x", r, 0,0,0);
DDOLOG("Interrupt Status = %#.2x", r, 0,0,0);
DDOLOG("Revision = %#.2x", r, 0,0,0);
DDOLOG("SOF Counter = %#.2x", r, 0,0,0);
DDOLOG("USBA Buffer: start %u len %u", aaddr, alen, 0,0);
DDOLOG("USBA Buffer Invalid", 0,0,0,0);
DDOLOG("USBB Buffer: start %u len %u", baddr, blen, 0,0);
DDOLOG("USBB Buffer Invalid", 0,0,0,0);
DDOLOG("xfer: length=%u, actlen=%u, flags=%#x, timeout=%u,",
DDOLOG("buffer=%p", xfer->ux_buf, 0,0,0);
DDOLOG("spipe %p onlists: AP=%d TO=%d XQ=%d", spipe,
DDOLOG("spipe: xfer %p buffer %p pflags %#x ptype %d",
DDOLOG("Flags=%#x", t->flags, 0,0,0);
DDOLOG("a = %p Alen=%d b = %p Blen=%d", t->spipe[0], t->len[0],
DDOLOG("Q %d: %p", i, gcq_hq(&t->q[i]), 0,0);
DDOLOG("TIMED: %p", GCQ_ITEM(gcq_hq(&t->to),
DDOLOG("frame=%d rootintr=%p", t->frame, t->rootintr, 0,0);
DDOLOG("ub_usepolling=%d", ssc->sc_bus.ub_usepolling, 0, 0, 0);
DDOLOG("xfer: %p", r->xfer, 0,0,0);
DDOLOG("buffer: %p", r->buffer, 0,0,0);
DDOLOG("bustime: %u", r->bustime, 0,0,0);
DDOLOG("control: %#x", r->control, 0,0,0);
DDOLOG("pid: %#x", r->tregs[PID], 0,0,0);
DDOLOG("dev: %u", r->tregs[DEV], 0,0,0);
DDOLOG("len: %u", r->tregs[LEN], 0,0,0);
#define DLOG(x, f, a, b, c, d) SLHCI_DEXEC(x, DDOLOG(f, a, b, c, d))
DDOLOG("%.4x %.4x %.4x %.4x", (buf[i] << 8) | buf[i+1],
DDOLOG("%.4x %.4x %.4x %.2x", (buf[i] << 8) | buf[i+1],
DDOLOG("%.4x %.4x %.4x", (buf[i] << 8) | buf[i+1],
DDOLOG("%.4x %.4x %.2x", (buf[i] << 8) | buf[i+1],
DDOLOG("%.4x %.4x", (buf[i] << 8) | buf[i+1],
DDOLOG("%.4x %.2x", (buf[i] << 8) | buf[i+1], buf[i+2], 0,0);
DDOLOG("%.4x", (buf[i] << 8) | buf[i+1], 0,0,0);
DDOLOG("%.2x", buf[i], 0,0,0);
DDOLOG("CTRL suspend=%jd", !!((x) & SL11_CTRL_SUSPEND), 0, 0, 0); \
DDOLOG("CTRL ls =%jd jk =%jd reset =%jd sof =%jd", \
DDOLOG("ISR data =%jd det/res=%jd insert =%jd sof =%jd", \
DDOLOG("ISR babble =%jd usbb =%jd usba =%jd", \
DDOLOG("IER det/res=%d insert =%d sof =%d", \
DDOLOG("IER babble =%d usbb =%d usba =%d", \
DDOLOG("STAT stall =%d nak =%d overflow =%d setup =%d", \
DDOLOG("STAT sequence=%d timeout =%d error =%d ack =%d", \
DDOLOG("CTRL preamble=%d toggle =%d sof =%d iso =%d", \
DDOLOG("CTRL out =%d enable =%d arm =%d", \
DDOLOG("STAT stall =%d nak =%d overflow =%d setup =%d", \
DDOLOG("STAT sequence=%d timeout =%d error =%d ack =%d", \
DDOLOG("xfer=%p not busy, %#08x halted\n", xfer,
DDOLOG("Long INTR transfer not supported!", 0, 0, 0, 0);