Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / libusal / usal / usalio.h
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
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).
6  *
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.
10  *
11  */
12
13 /* @(#)usalio.h 2.16 00/11/07 Copyright 1986 J. Schilling */
14 /*
15  *      Definitions for the SCSI general driver 'usal'
16  *
17  *      Copyright (c) 1986 J. Schilling
18  */
19 /*
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.
23  *
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.
28  *
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.
32  */
33
34 #ifndef _SCG_SCGIO_H
35 #define _SCG_SCGIO_H
36
37 #ifndef _SCG_SCGCMD_H
38 #include <usal/usalcmd.h>
39 #endif
40
41 #if     defined(SVR4)
42 #include <sys/ioccom.h>
43 #endif
44
45 #ifdef  __cplusplus
46 extern "C" {
47 #endif
48
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*/
60 #else
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*/
71 #endif
72
73 #define SCGIO_CMD       SCGIOCMD        /* backward ccompatibility */
74
75 #ifdef  __cplusplus
76 }
77 #endif
78
79 #endif  /* _SCG_SCGIO_H */