From f38e1372e5905fb8f8b6dd189e0713d6bf5836ee Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Mon, 3 Jan 2000 22:14:24 +0000 Subject: [PATCH] add isp_print_qentry inline function --- sys/dev/isp/isp_inline.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sys/dev/isp/isp_inline.h b/sys/dev/isp/isp_inline.h index b2f096131ed7..17d998d66c2f 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 */