xref: /csrg-svn/sys/hp300/dev/scsivar.h (revision 63151)
141480Smckusick /*
2*63151Sbostic  * Copyright (c) 1990, 1993
3*63151Sbostic  *	The Regents of the University of California.  All rights reserved.
441480Smckusick  *
541480Smckusick  * This code is derived from software contributed to Berkeley by
641480Smckusick  * Van Jacobson of Lawrence Berkeley Laboratory.
741480Smckusick  *
841480Smckusick  * %sccs.include.redist.c%
941480Smckusick  *
10*63151Sbostic  *	@(#)scsivar.h	8.1 (Berkeley) 06/10/93
1141480Smckusick  */
1241480Smckusick 
1341480Smckusick struct	scsi_softc {
1441480Smckusick 	struct	hp_ctlr *sc_hc;
1541480Smckusick 	struct	devqueue sc_dq;
1641480Smckusick 	struct	devqueue sc_sq;
1741480Smckusick 	u_char	sc_flags;
1841480Smckusick 	u_char	sc_sync;
1941480Smckusick 	u_char	sc_scsi_addr;
2041480Smckusick 	u_char	sc_stat[2];
2141480Smckusick 	u_char	sc_msg[7];
2241480Smckusick };
2341480Smckusick 
2441480Smckusick /* sc_flags */
2541480Smckusick #define	SCSI_IO		0x80	/* DMA I/O in progress */
2641480Smckusick #define	SCSI_DMA32	0x40	/* 32-bit DMA should be used */
2753930Shibler #define	SCSI_HAVEDMA	0x04	/* controller has DMA channel */
2841480Smckusick #ifdef DEBUG
2941480Smckusick #define	SCSI_PAD	0x02	/* 'padded' transfer in progress */
3041480Smckusick #endif
3153930Shibler #define	SCSI_ALIVE	0x01	/* controller initialized */
32