Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic add isp_print_qentry inline



details:   https://anonhg.NetBSD.org/src/rev/f5a4569417d4
branches:  trunk
changeset: 480177:f5a4569417d4
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Thu Jan 06 02:56:20 2000 +0000

description:
add isp_print_qentry inline

diffstat:

 sys/dev/ic/isp_inline.h |  25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r a5a831142acf -r f5a4569417d4 sys/dev/ic/isp_inline.h
--- a/sys/dev/ic/isp_inline.h   Thu Jan 06 02:52:29 2000 +0000
+++ b/sys/dev/ic/isp_inline.h   Thu Jan 06 02:56:20 2000 +0000
@@ -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 @@
        *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 */



Home | Main Index | Thread Index | Old Index