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.2 (Berkeley) 12/17/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 <machine/fix_machine_type.h> 27 28 #include <sys/param.h> 29 #include <sys/buf.h> 30 #include <sys/disklabel.h> 31 32 #include <news3400/iodev/scsireg.h> 33 #include <news3400/iodev/sdreg.h> 34 35 struct iop/**/_ctlr *sdminfo[NSDC]; 36 struct iop/**/_device *sddinfo[NSD]; 37 struct iop/**/_device *sdip[NSDC][MAXSLAVE]; 38 39 struct buf rsdbuf[NSD]; /* buffer for raw I/O */ 40 struct buf csdbuf[NSD]; /* buffer for controll */ 41 struct buf sdutab[NSD]; /* per drive buffers */ 42 43 struct sdc_softc sdc_softc[NSDC]; 44 struct sdd_softc sdd_softc[NSD]; 45 u_char sd_b_openf[NSD][PNUM]; 46 u_char sd_c_openf[NSD][PNUM]; 47 48 struct scsi kernscsi[NSD]; 49 struct sdst sdstdrv[NSD]; 50 struct disklabel sdlabel[NSD]; 51 struct size sdsizedrv[NSD][PNUM]; 52 53 u_char sdc_rsense[NSDC][RSEN_CNT]; 54 55 struct sync_param sd_sync_param[NSD]; 56 57 int nsd = NSD; 58 int nsdc = NSDC; 59 60 #endif /* NSD > 0 */ 61