diff options
| author | mjacob <mjacob@NetBSD.org> | 2000-01-06 02:56:20 +0000 |
|---|---|---|
| committer | mjacob <mjacob@NetBSD.org> | 2000-01-06 02:56:20 +0000 |
| commit | bc8be114683fca44c22976385a46ce25f2ca9103 (patch) | |
| tree | 941fb8a8f05751d6ebeff638779b71168e808ea0 /sys/dev | |
| parent | 2db2cab31071f90385d0c0dfb0afa0cd0a48896c (diff) | |
add isp_print_qentry inline
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/isp_inline.h | 25 |
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 */ |
