xref: /original-bsd/sys/news3400/iodev/scu.h (revision 9360d17c)
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: scu.h,v 4.300 91/07/02 16:38:38 root Rel41 $ SONY
11  *
12  *	@(#)scu.h	7.1 (Berkeley) 06/04/92
13  */
14 
15 /*
16  * screg.h
17  */
18 
19 #ifndef __SCU__
20 #define __SCU__ 1
21 
22 #ifdef KERNEL
23 #include "ioctl.h"
24 #else
25 #include <sys/ioctl.h>
26 #endif
27 
28 #define	RAWSCSI_USE_PIO		0
29 #define	RAWSCSI_USE_DMA		1
30 
31 #define	SCSIIOCCMD		_IOWR('S', 0, struct sc_ureq)
32 #define	SCSIIOCGTIMEO		_IOR('S', 1, int)
33 #define	SCSIIOCSTIMEO		_IOW('S', 2, int)
34 
35 /*
36  *	scsi user request parameter block
37  */
38 struct sc_ureq {
39 /*00*/	u_int	scu_istatus;
40 /*04*/	u_int	scu_tstatus;
41 /*08*/	u_int	scu_identify;
42 /*0c*/	u_int	scu_message;
43 /*10*/	u_int	scu_bytesec;
44 /*14*/	u_char	scu_cdb[12];
45 /*20*/	u_char	scu_param[20];
46 /*34*/	u_char	*scu_addr;
47 /*38*/	u_int	scu_count;
48 /*3c*/
49 };
50 
51 #endif /* !__SCU__ */
52