153901Smckusick /* 2*63307Sbostic * Copyright (c) 1992, 1993 3*63307Sbostic * The Regents of the University of California. All rights reserved. 453901Smckusick * 553901Smckusick * This code is derived from software contributed to Berkeley by 653901Smckusick * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc. 753901Smckusick * 853901Smckusick * %sccs.include.redist.c% 953901Smckusick * 1053901Smckusick * from: $Hdr: scu.h,v 4.300 91/07/02 16:38:38 root Rel41 $ SONY 1153901Smckusick * 12*63307Sbostic * @(#)scu.h 8.1 (Berkeley) 06/11/93 1353901Smckusick */ 1453901Smckusick 1553901Smckusick /* 1653901Smckusick * screg.h 1753901Smckusick */ 1853901Smckusick 1953901Smckusick #ifndef __SCU__ 2053901Smckusick #define __SCU__ 1 2153901Smckusick 2253901Smckusick #include <sys/ioctl.h> 2353901Smckusick 2453901Smckusick #define RAWSCSI_USE_PIO 0 2553901Smckusick #define RAWSCSI_USE_DMA 1 2653901Smckusick 2753901Smckusick #define SCSIIOCCMD _IOWR('S', 0, struct sc_ureq) 2853901Smckusick #define SCSIIOCGTIMEO _IOR('S', 1, int) 2953901Smckusick #define SCSIIOCSTIMEO _IOW('S', 2, int) 3053901Smckusick 3153901Smckusick /* 3253901Smckusick * scsi user request parameter block 3353901Smckusick */ 3453901Smckusick struct sc_ureq { 3553901Smckusick /*00*/ u_int scu_istatus; 3653901Smckusick /*04*/ u_int scu_tstatus; 3753901Smckusick /*08*/ u_int scu_identify; 3853901Smckusick /*0c*/ u_int scu_message; 3953901Smckusick /*10*/ u_int scu_bytesec; 4053901Smckusick /*14*/ u_char scu_cdb[12]; 4153901Smckusick /*20*/ u_char scu_param[20]; 4253901Smckusick /*34*/ u_char *scu_addr; 4353901Smckusick /*38*/ u_int scu_count; 4453901Smckusick /*3c*/ 4553901Smckusick }; 4653901Smckusick 4753901Smckusick #endif /* !__SCU__ */ 48