From 843be39a687253a9894847550ed56ea58510c179 Mon Sep 17 00:00:00 2001 From: mjacob Date: Sun, 20 Feb 2000 21:22:42 +0000 Subject: 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. --- sys/dev/ic/isp_inline.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic/isp_inline.h') 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 */ -- cgit v1.2.3