xref: /original-bsd/sys/news3400/iodev/sd_var.c (revision 3705696b)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
7  *
8  * %sccs.include.redist.c%
9  *
10  * from: $Hdr: sd_var.c,v 4.300 91/06/09 06:38:23 root Rel41 $ SONY
11  *
12  *	@(#)sd_var.c	8.1 (Berkeley) 06/11/93
13  */
14 
15 /*
16  * Copyright (c) 1989 by SONY Corporation.
17  */
18 /*
19  *	sd_var.c - SCSI disk device driver
20  *			variable definition file.
21  */
22 
23 #include "sd.h"
24 #if NSD > 0
25 
26 #include <sys/param.h>
27 #include <sys/buf.h>
28 #include <sys/disklabel.h>
29 
30 #include <news3400/iodev/scsireg.h>
31 #include <news3400/iodev/sdreg.h>
32 
33 struct iop/**/_ctlr *sdminfo[NSDC];
34 struct iop/**/_device *sddinfo[NSD];
35 struct iop/**/_device *sdip[NSDC][MAXSLAVE];
36 
37 struct buf rsdbuf[NSD];			/* buffer for raw I/O */
38 struct buf csdbuf[NSD];			/* buffer for controll */
39 struct buf sdutab[NSD];			/* per drive buffers */
40 
41 struct sdc_softc sdc_softc[NSDC];
42 struct sdd_softc sdd_softc[NSD];
43 u_char sd_b_openf[NSD][PNUM];
44 u_char sd_c_openf[NSD][PNUM];
45 
46 struct scsi kernscsi[NSD];
47 struct sdst sdstdrv[NSD];
48 struct disklabel sdlabel[NSD];
49 struct size sdsizedrv[NSD][PNUM];
50 
51 u_char sdc_rsense[NSDC][RSEN_CNT];
52 
53 struct sync_param sd_sync_param[NSD];
54 
55 int nsd = NSD;
56 int nsdc = NSDC;
57 
58 #endif /* NSD > 0 */
59