summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2000-01-03 22:14:24 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2000-01-03 22:14:24 +0000
commitf38e1372e5905fb8f8b6dd189e0713d6bf5836ee (patch)
treee75b9754fb0292b75417c11daa6589de2032d051
parent41593b2586c0519a60988460d1026e0e1a1952cc (diff)
downloadsrc-test2-f38e1372e5905fb8f8b6dd189e0713d6bf5836ee.tar.gz
src-test2-f38e1372e5905fb8f8b6dd189e0713d6bf5836ee.zip
Notes
-rw-r--r--sys/dev/isp/isp_inline.h23
1 files changed, 23 insertions, 0 deletions
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 */