xref: /original-bsd/sys/hp300/dev/scsivar.h (revision 63b2a11c)
1 /*
2  * Copyright (c) 1990 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Van Jacobson of Lawrence Berkeley Laboratory.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)scsivar.h	7.2 (Berkeley) 06/05/92
11  */
12 
13 struct	scsi_softc {
14 	struct	hp_ctlr *sc_hc;
15 	struct	devqueue sc_dq;
16 	struct	devqueue sc_sq;
17 	u_char	sc_flags;
18 	u_char	sc_sync;
19 	u_char	sc_scsi_addr;
20 	u_char	sc_stat[2];
21 	u_char	sc_msg[7];
22 };
23 
24 /* sc_flags */
25 #define	SCSI_IO		0x80	/* DMA I/O in progress */
26 #define	SCSI_DMA32	0x40	/* 32-bit DMA should be used */
27 #define	SCSI_HAVEDMA	0x04	/* controller has DMA channel */
28 #ifdef DEBUG
29 #define	SCSI_PAD	0x02	/* 'padded' transfer in progress */
30 #endif
31 #define	SCSI_ALIVE	0x01	/* controller initialized */
32