summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/isp_inline.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/sys/dev/ic/isp_inline.h b/sys/dev/ic/isp_inline.h
index da7ce26732d..65603a521a0 100644
--- a/sys/dev/ic/isp_inline.h
+++ b/sys/dev/ic/isp_inline.h
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_inline.h,v 1.3 1999/12/08 11:01:44 mjacob Exp $ */
+/* $NetBSD: isp_inline.h,v 1.4 2000/01/06 02:56:20 mjacob Exp $ */
/*
* Copyright (C) 1999 National Aeronautics & Space Administration
* All rights reserved.
@@ -205,4 +205,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 */