Annotation of uae/src/include/scg/scgio.h, revision 1.1.1.1

1.1       root        1: /* @(#)scgio.h 2.14 98/11/29 Copyright 1986 J. Schilling */
                      2: /*
                      3:  *     Definitions for the SCSI general driver 'scg'
                      4:  *
                      5:  *     Copyright (c) 1986 J. Schilling
                      6:  */
                      7: /*
                      8:  * This program is free software; you can redistribute it and/or modify
                      9:  * it under the terms of the GNU General Public License as published by
                     10:  * the Free Software Foundation; either version 2, or (at your option)
                     11:  * any later version.
                     12:  *
                     13:  * This program is distributed in the hope that it will be useful,
                     14:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
                     15:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     16:  * GNU General Public License for more details.
                     17:  *
                     18:  * You should have received a copy of the GNU General Public License
                     19:  * along with this program; see the file COPYING.  If not, write to
                     20:  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
                     21:  */
                     22: 
                     23: #ifndef        _SCGIO_H
                     24: #define        _SCGIO_H
                     25: 
                     26: #ifndef        _SCGCMD_H
                     27: #include <scg/scgcmd.h>
                     28: #endif
                     29: 
                     30: #if    defined(SVR4)
                     31: #include <sys/ioccom.h>
                     32: #endif
                     33: #if    defined(__STDC__) || defined(SVR4)
                     34: #define        SCGIOCMD        _IOWR('G', 1, struct scg_cmd)   /* do a SCSI cmd   */
                     35: #define        SCGIORESET      _IO('G', 2)                     /* reset SCSI bus  */
                     36: #define        SCGIOGDISRE     _IOR('G', 4, int)               /* get sc disre Val*/
                     37: #define        SCGIOSDISRE     _IOW('G', 5, int)               /* set sc disre Val*/
                     38: #define        SCGIOIDBG       _IO('G', 100)                   /* Inc Debug Val   */
                     39: #define        SCGIODDBG       _IO('G', 101)                   /* Dec Debug Val   */
                     40: #define        SCGIOGDBG       _IOR('G', 102, int)             /* get Debug Val   */
                     41: #define        SCGIOSDBG       _IOW('G', 103, int)             /* set Debug Val   */
                     42: #define        SCIOGDBG        _IOR('G', 104, int)             /* get sc Debug Val*/
                     43: #define        SCIOSDBG        _IOW('G', 105, int)             /* set sc Debug Val*/
                     44: #else
                     45: #define        SCGIOCMD        _IOWR(G, 1, struct scg_cmd)     /* do a SCSI cmd   */
                     46: #define        SCGIORESET      _IO(G, 2)                       /* reset SCSI bus  */
                     47: #define        SCGIOGDISRE     _IOR(G, 4, int)                 /* get sc disre Val*/
                     48: #define        SCGIOSDISRE     _IOW(G, 5, int)                 /* set sc disre Val*/
                     49: #define        SCGIOIDBG       _IO(G, 100)                     /* Inc Debug Val   */
                     50: #define        SCGIODDBG       _IO(G, 101)                     /* Dec Debug Val   */
                     51: #define        SCGIOGDBG       _IOR(G, 102, int)               /* get Debug Val   */
                     52: #define        SCGIOSDBG       _IOW(G, 103, int)               /* set Debug Val   */
                     53: #define        SCIOGDBG        _IOR(G, 104, int)               /* get sc Debug Val*/
                     54: #define        SCIOSDBG        _IOW(G, 105, int)               /* set sc Debug Val*/
                     55: #endif
                     56: 
                     57: #define        SCGIO_CMD       SCGIOCMD        /* backward ccompatibility */
                     58: 
                     59: #endif /* _SCGIO_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.