-static ssize_t
-show_urb_priv(struct admhcd *ahcd, char *buf, size_t count,
- struct urb_priv *up)
-{
- unsigned temp, size = count;
- int i;
-
- if (!up)
- return 0;
-
- temp = scnprintf(buf, size,"\n\turb %p ", up->urb);
- size -= temp;
- buf += temp;
-
- for (i = 0; i< up->td_cnt; i++) {
- struct td *td;
- u32 dbp, cbl, info;
-
- td = up->td[i];
- info = hc32_to_cpup(ahcd, &td->hwINFO);
- dbp = hc32_to_cpup(ahcd, &td->hwDBP);
- cbl = hc32_to_cpup(ahcd, &td->hwCBL);
-
- temp = scnprintf(buf, size,
- "\n\t\ttd %p %s %d %s%scc=%x (%08x,%08x)",
- td,
- td_pidstring(info),
- TD_BL_GET(cbl),
- (info & TD_OWN) ? "WORK " : "DONE ",
- (cbl & TD_IE) ? "IE " : "",
- TD_CC_GET(info), info, cbl);
- size -= temp;
- buf += temp;
- }
-
- return count - size;
-}
-