xref: /original-bsd/sys/news3400/iodev/sd_var.c (revision 6093a5ae)
1 /*
2  * Copyright (c) 1992 The Regents of the University of California.
3  * 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	7.1 (Berkeley) 06/04/92
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 "../include/fix_machine_type.h"
27 
28 #include "param.h"
29 #include "buf.h"
30 #include "disklabel.h"
31 
32 #if defined(news800) || defined(news1800)
33 # include "../iop/iopvar.h"
34 #endif
35 
36 #if defined(news1700)
37 # include "../hbdev/hbvar.h"
38 #endif
39 
40 #include "../iodev/scsireg.h"
41 #include "../iodev/sdreg.h"
42 
43 struct iop/**/_ctlr *sdminfo[NSDC];
44 struct iop/**/_device *sddinfo[NSD];
45 struct iop/**/_device *sdip[NSDC][MAXSLAVE];
46 
47 struct buf rsdbuf[NSD];			/* buffer for raw I/O */
48 struct buf csdbuf[NSD];			/* buffer for controll */
49 struct buf sdutab[NSD];			/* per drive buffers */
50 
51 struct sdc_softc sdc_softc[NSDC];
52 struct sdd_softc sdd_softc[NSD];
53 u_char sd_b_openf[NSD][PNUM];
54 u_char sd_c_openf[NSD][PNUM];
55 
56 struct scsi kernscsi[NSD];
57 struct sdst sdstdrv[NSD];
58 struct disklabel sdlabel[NSD];
59 struct size sdsizedrv[NSD][PNUM];
60 
61 u_char sdc_rsense[NSDC][RSEN_CNT];
62 
63 struct sync_param sd_sync_param[NSD];
64 
65 int nsd = NSD;
66 int nsdc = NSDC;
67 
68 #endif /* NSD > 0 */
69