diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-01-16 04:04:37 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-01-16 04:04:37 +0000 |
commit | 44d017900d1fa86842c5c61f42dc8b9c251362f6 (patch) | |
tree | 19d026477b44457a45b2f971cb61deb77cf7b42a /sys/arch/sun3/dev/xdvar.h | |
parent | abd2051d67a709d535a48746b4ff8bea263fabdb (diff) |
all modified code can now compile with -Werror -Wall -Wstrict-prototypes
CAVEAT: turning off -O2 produces warnings about "defined but not used"
functions from libkern.h
removed internal copy of gets() replaced with call to getsn()
fixed #ifdef ... #endif mismatch in swapgeneric.c
fixed printf() in if_ie.c that was missing an argument
fixed si.c so that it compiles
added tags to all edited files
Diffstat (limited to 'sys/arch/sun3/dev/xdvar.h')
-rw-r--r-- | sys/arch/sun3/dev/xdvar.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/sun3/dev/xdvar.h b/sys/arch/sun3/dev/xdvar.h index 35509803a97..64f2e569d8f 100644 --- a/sys/arch/sun3/dev/xdvar.h +++ b/sys/arch/sun3/dev/xdvar.h @@ -1,3 +1,4 @@ +/* $OpenBSD: xdvar.h,v 1.4 1997/01/16 04:03:57 kstailey Exp $ */ /* $NetBSD: xdvar.h,v 1.3 1996/02/22 06:55:33 thorpej Exp $ */ /* @@ -32,9 +33,9 @@ */ /* - * x d v a r . h + * x d v a r . h * - * this file defines the software structure we use to control the + * this file defines the software structure we use to control the * 753/7053. * * author: Chuck Cranor <chuck@ccrc.wustl.edu> @@ -67,7 +68,7 @@ struct xd_iorq { #define XD_SUB_MASK 0xf0 /* mask bits for state */ #define XD_SUB_FREE 0x00 /* free */ #define XD_SUB_NORM 0x10 /* normal I/O request */ -#define XD_SUB_WAIT 0x20 /* normal I/O request in the +#define XD_SUB_WAIT 0x20 /* normal I/O request in the context of a process */ #define XD_SUB_POLL 0x30 /* polled mode */ #define XD_SUB_DONE 0x40 /* not active, but can't be free'd yet */ @@ -151,12 +152,12 @@ struct xdc_softc { struct buf sc_wq; /* queue'd IOPBs for this controller */ char freereq[XDC_MAXIOPB]; /* free list (stack) */ char waitq[XDC_MAXIOPB]; /* wait queue */ - char nfree; /* number of iopbs free */ + int nfree; /* number of iopbs free */ char nrun; /* number running */ char nwait; /* number of waiting iopbs */ char ndone; /* number of done IORQs */ - char waithead; /* head of queue */ - char waitend; /* end of queue */ + int waithead; /* head of queue */ + int waitend; /* end of queue */ }; /* |