Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / libusal / usal / scsidefs.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 /* @(#)scsidefs.h       1.28 04/09/04 Copyright 1988 J. Schilling */
14 /*
15  *      Definitions for SCSI devices i.e. for error strings in scsierrs.c
16  *
17  *      Copyright (c) 1988 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_SCSIDEFS_H
35 #define _SCG_SCSIDEFS_H
36
37 #ifdef  __cplusplus
38 extern "C" {
39 #endif
40
41 /*
42  * Disks
43  */
44 #ifdef  DEV_UNKNOWN
45 /*
46  * True64 defines DEV_UNKNOWN in /usr/include/sys/devio.h as "UNKNOWN"
47  */
48 #undef  DEV_UNKNOWN
49 #endif
50 #define DEV_UNKNOWN             0
51 #define DEV_ACB40X0             1
52 #define DEV_ACB4000             2
53 #define DEV_ACB4010             3
54 #define DEV_ACB4070             4
55 #define DEV_ACB5500             5
56 #define DEV_ACB4520A            6
57 #define DEV_ACB4525             7
58 #define DEV_MD21                8
59 #define DEV_MD23                9
60 #define DEV_NON_CCS_DSK         10
61 #define DEV_CCS_GENDISK         11
62
63 /*
64  * Tapes
65  */
66 #define DEV_MT02                100
67 #define DEV_SC4000              101
68
69 /*
70  * Printer
71  */
72 #define DEV_PRT                 200
73
74 /*
75  * Processors
76  */
77 #define DEV_PROC                300
78
79 /*
80  * Worm
81  */
82 #define DEV_WORM                400
83 #define DEV_RXT800S             401
84
85 /*
86  * CD-ROM
87  */
88 #define DEV_CDROM               500
89 #define DEV_MMC_CDROM           501
90 #define DEV_MMC_CDR             502
91 #define DEV_MMC_CDRW            503
92 #define DEV_MMC_DVD             504
93 #define DEV_MMC_DVD_WR          505
94
95 #define DEV_CDD_521_OLD         510
96 #define DEV_CDD_521             511
97 #define DEV_CDD_522             512
98 #define DEV_PCD_600             513
99 #define DEV_CDD_2000            514
100 #define DEV_CDD_2600            515
101 #define DEV_TYUDEN_EW50         516
102 #define DEV_YAMAHA_CDR_100      520
103 #define DEV_YAMAHA_CDR_400      521
104 #define DEV_PLASMON_RF_4100     530
105 #define DEV_SONY_CDU_924        540
106 #define DEV_RICOH_RO_1420C      550
107 #define DEV_RICOH_RO_1060C      551
108 #define DEV_TEAC_CD_R50S        560
109 #define DEV_MATSUSHITA_7501     570
110 #define DEV_MATSUSHITA_7502     571
111 #define DEV_PIONEER_DW_S114X    580
112 #define DEV_PIONEER_DVDR_S101   581
113
114 /*
115  * Scanners
116  */
117 #define DEV_HRSCAN              600
118 #define DEV_MS300A              601
119
120 /*
121  * Optical memory
122  */
123 #define DEV_SONY_SMO            700
124
125
126 #define old_acb(d)      (((d) == DEV_ACB40X0) || \
127                             ((d) == DEV_ACB4000) || ((d) == DEV_ACB4010) || \
128                             ((d) == DEV_ACB4070) || ((d) == DEV_ACB5500))
129
130 #define is_ccs(d)       (!old_acb(d))
131
132 #ifdef  __cplusplus
133 }
134 #endif
135
136 #endif  /* _SCG_SCSIDEFS_H */