diff --git a/sys/dev/isp/isp_inline.h b/sys/dev/isp/isp_inline.h index b2f096131ed..17d998d66c2 100644 --- a/sys/dev/isp/isp_inline.h +++ b/sys/dev/isp/isp_inline.h @@ -273,4 +273,27 @@ isp_getrqentry(isp, iptrp, optrp, resultp) *iptrp = iptr; return (0); } + +static INLINE void +isp_print_qentry __P((struct ispsoftc *, char *, int, void *)); + +static INLINE void +isp_print_qentry(isp, msg, idx, arg) + struct ispsoftc *isp; + char *msg; + int idx; + void *arg; +{ + int amt, i, j; + u_int8_t *ptr = arg; + PRINTF("%s %s index %d:\n ", isp->isp_name, msg, idx); + for (amt = i = 0; i < 4; i++) { + for (j = 0; j < (QENTRY_LEN >> 2); j++) { + PRINTF(" %02x", ptr[amt++] & 0xff); + } + printf("\n "); + } + PRINTF("\n"); +} + #endif /* _ISP_INLINE_H */