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.2 (Berkeley) 12/17/92 13 */ 14 15 /* 16 * screg.h 17 */ 18 19 #ifndef __SCU__ 20 #define __SCU__ 1 21 22 #include <sys/ioctl.h> 23 24 #define RAWSCSI_USE_PIO 0 25 #define RAWSCSI_USE_DMA 1 26 27 #define SCSIIOCCMD _IOWR('S', 0, struct sc_ureq) 28 #define SCSIIOCGTIMEO _IOR('S', 1, int) 29 #define SCSIIOCSTIMEO _IOW('S', 2, int) 30 31 /* 32 * scsi user request parameter block 33 */ 34 struct sc_ureq { 35 /*00*/ u_int scu_istatus; 36 /*04*/ u_int scu_tstatus; 37 /*08*/ u_int scu_identify; 38 /*0c*/ u_int scu_message; 39 /*10*/ u_int scu_bytesec; 40 /*14*/ u_char scu_cdb[12]; 41 /*20*/ u_char scu_param[20]; 42 /*34*/ u_char *scu_addr; 43 /*38*/ u_int scu_count; 44 /*3c*/ 45 }; 46 47 #endif /* !__SCU__ */ 48