Add a maintenance note. Fix QFREE and QAVAIL macros to match change in usage.
This commit is contained in:
parent
ed05406b77
commit
ec701021fd
|
@ -1,4 +1,33 @@
|
|||
/* $NetBSD: ispvar.h,v 1.33 2000/08/08 22:58:32 mjacob Exp $ */
|
||||
/* $NetBSD: ispvar.h,v 1.34 2000/08/14 07:12:15 mjacob Exp $ */
|
||||
/*
|
||||
* This driver, which is contained in NetBSD in the files:
|
||||
*
|
||||
* sys/dev/ic/isp.c
|
||||
* sys/dev/ic/ic/isp.c
|
||||
* sys/dev/ic/ic/isp_inline.h
|
||||
* sys/dev/ic/ic/isp_netbsd.c
|
||||
* sys/dev/ic/ic/isp_netbsd.h
|
||||
* sys/dev/ic/ic/isp_target.c
|
||||
* sys/dev/ic/ic/isp_target.h
|
||||
* sys/dev/ic/ic/isp_tpublic.h
|
||||
* sys/dev/ic/ic/ispmbox.h
|
||||
* sys/dev/ic/ic/ispreg.h
|
||||
* sys/dev/ic/ic/ispvar.h
|
||||
* sys/microcode/isp/asm_sbus.h
|
||||
* sys/microcode/isp/asm_1040.h
|
||||
* sys/microcode/isp/asm_1080.h
|
||||
* sys/microcode/isp/asm_12160.h
|
||||
* sys/microcode/isp/asm_2100.h
|
||||
* sys/microcode/isp/asm_2200.h
|
||||
* sys/pci/isp_pci.c
|
||||
* sys/sbus/isp_sbus.c
|
||||
*
|
||||
* Is being actively maintained by Matthew Jacob (mjacob@netbsd.org).
|
||||
* This driver also is shared source with FreeBSD, OpenBSD, Linux, Solaris,
|
||||
* Linux versions. This tends to be an interesting maintenance problem.
|
||||
*
|
||||
* Please coordinate with Matthew Jacob on changes you wish to make here.
|
||||
*/
|
||||
/*
|
||||
* Copyright (C) 1999 National Aeronautics & Space Administration
|
||||
* All rights reserved.
|
||||
|
@ -151,9 +180,11 @@ struct ispmdvec {
|
|||
#define ISP_QUEUE_ENTRY(q, idx) ((q) + ((idx) * QENTRY_LEN))
|
||||
#define ISP_QUEUE_SIZE(n) ((n) * QENTRY_LEN)
|
||||
#define ISP_NXT_QENTRY(idx, qlen) (((idx) + 1) & ((qlen)-1))
|
||||
#define ISP_QAVAIL(in, out, qlen) \
|
||||
#define ISP_QFREE(in, out, qlen) \
|
||||
((in == out)? (qlen - 1) : ((in > out)? \
|
||||
((qlen - 1) - (in - out)) : (out - in - 1)))
|
||||
#define ISP_QAVAIL(isp) \
|
||||
ISP_QFREE(isp->isp_reqidx, isp->isp_reqodx, RQUEST_QUEUE_LEN(isp))
|
||||
|
||||
#define ISP_ADD_REQUEST(isp, iptr) \
|
||||
MEMORYBARRIER(isp, SYNC_REQUEST, iptr, QENTRY_LEN); \
|
||||
|
|
Loading…
Reference in New Issue