* Copyright (c) 1992 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
* %sccs.include.redist.c%
* from: $Hdr: scsic.h,v 4.300 91/06/09 06:22:24 root Rel41 $ SONY
* @(#)scsic.h 7.1 (Berkeley) %G%
* Copyright (c) 1987- by SONY Corporation.
* Header file for scsi.c.
#define SCSI_NOTWAIT 0x2 /* don't wait cmd completion */
#define splhi spl7 /* IPL 7 Be careful to use this.*/
* Delay units are in microseconds.
register int N = (n)*1500 ; \
int wbc
; /* # of channel that is waiting for scsi bus free */
int wrc
; /* # of channel that is waiting for reselection */
/* In progress channel. Same as ISTAT.IP */
int ipc
; /* number of in progress channel. */
int dma_stat
; /* OFF = DMAC is not used */
#define VOLATILE volatile
struct scsi
*sc
; /* scsi struct address */
u_char comflg
; /* flag for save comand pointer */
u_int stcnt
; /* save transfer count */
u_char
*spoint
; /* save transfer point */
u_int stag
; /* save tag register */
u_int soffset
; /* save offset register */
u_char intr_flg
; /* interrupt flag. SCSI_INTEN/INTDIS */
int chan_num
; /* channel NO. */
VOLATILE
struct sc_chan_stat
*wb_next
; /* wait bus channel queue */
extern struct scintsw scintsw
[];
extern struct scsi_stat scsi_stat
;