diff options
author | mjacob <mjacob@cvs.openbsd.org> | 2000-02-20 21:22:42 +0000 |
---|---|---|
committer | mjacob <mjacob@cvs.openbsd.org> | 2000-02-20 21:22:42 +0000 |
commit | 843be39a687253a9894847550ed56ea58510c179 (patch) | |
tree | 5ba8385712451adffcce024f1c84487e320e5d2d /sys/dev/ic/isp_inline.h | |
parent | 507037610dbda92ebe936b00eda0be017503a7d8 (diff) |
Add 12160 (Ultra3) support. Add files and changes for target mode support.
Do some SNS fabric suppor tchanges. Roll revision levels. Tested on
GENERIC i386 && sparc.
Diffstat (limited to 'sys/dev/ic/isp_inline.h')
-rw-r--r-- | sys/dev/ic/isp_inline.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sys/dev/ic/isp_inline.h b/sys/dev/ic/isp_inline.h index bedb4f70867..9e45b7d443c 100644 --- a/sys/dev/ic/isp_inline.h +++ b/sys/dev/ic/isp_inline.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_inline.h,v 1.2 1999/12/03 03:48:56 mjacob Exp $ */ +/* $OpenBSD: isp_inline.h,v 1.3 2000/02/20 21:22:41 mjacob Exp $ */ /* * Qlogic Inline Functions * @@ -275,4 +275,25 @@ 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"); + } +} #endif /* _ISP_INLINE_H */ |