2 * This file has been modified for the cdrkit suite.
4 * The behaviour and appearence of the program code below can differ to a major
5 * extent from the version distributed by the original author(s).
7 * For details, see Changelog file distributed with the cdrkit package. If you
8 * received this file from another source then ask the distributing person for
9 * a log of modifications.
13 /* @(#)usalio.h 2.16 00/11/07 Copyright 1986 J. Schilling */
15 * Definitions for the SCSI general driver 'usal'
17 * Copyright (c) 1986 J. Schilling
20 * This program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License version 2
22 * as published by the Free Software Foundation.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License along with
30 * this program; see the file COPYING. If not, write to the Free Software
31 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 #include <usal/usalcmd.h>
42 #include <sys/ioccom.h>
49 #if defined(__STDC__) || defined(SVR4)
50 #define SCGIOCMD _IOWR('G', 1, struct usal_cmd) /* do a SCSI cmd */
51 #define SCGIORESET _IO('G', 2) /* reset SCSI bus */
52 #define SCGIOGDISRE _IOR('G', 4, int) /* get sc disre Val*/
53 #define SCGIOSDISRE _IOW('G', 5, int) /* set sc disre Val*/
54 #define SCGIOIDBG _IO('G', 100) /* Inc Debug Val */
55 #define SCGIODDBG _IO('G', 101) /* Dec Debug Val */
56 #define SCGIOGDBG _IOR('G', 102, int) /* get Debug Val */
57 #define SCGIOSDBG _IOW('G', 103, int) /* set Debug Val */
58 #define SCIOGDBG _IOR('G', 104, int) /* get sc Debug Val*/
59 #define SCIOSDBG _IOW('G', 105, int) /* set sc Debug Val*/
61 #define SCGIOCMD _IOWR(G, 1, struct usal_cmd) /* do a SCSI cmd */
62 #define SCGIORESET _IO(G, 2) /* reset SCSI bus */
63 #define SCGIOGDISRE _IOR(G, 4, int) /* get sc disre Val*/
64 #define SCGIOSDISRE _IOW(G, 5, int) /* set sc disre Val*/
65 #define SCGIOIDBG _IO(G, 100) /* Inc Debug Val */
66 #define SCGIODDBG _IO(G, 101) /* Dec Debug Val */
67 #define SCGIOGDBG _IOR(G, 102, int) /* get Debug Val */
68 #define SCGIOSDBG _IOW(G, 103, int) /* set Debug Val */
69 #define SCIOGDBG _IOR(G, 104, int) /* get sc Debug Val*/
70 #define SCIOSDBG _IOW(G, 105, int) /* set sc Debug Val*/
73 #define SCGIO_CMD SCGIOCMD /* backward ccompatibility */
79 #endif /* _SCG_SCGIO_H */