1 /* @(#)scsidefs.h	1.28 04/09/04 Copyright 1988 J. Schilling */
2 /*
3  *	Definitions for SCSI devices i.e. for error strings in scsierrs.c
4  *
5  *	Copyright (c) 1988 J. Schilling
6  */
7 /*
8  * The contents of this file are subject to the terms of the
9  * Common Development and Distribution License, Version 1.0 only
10  * (the "License").  You may not use this file except in compliance
11  * with the License.
12  *
13  * See the file CDDL.Schily.txt in this distribution for details.
14  * A copy of the CDDL is also available via the Internet at
15  * http://www.opensource.org/licenses/cddl1.txt
16  *
17  * The following exceptions apply:
18  * CDDL �3.6 needs to be replaced by: "You may create a Larger Work by
19  * combining Covered Software with other code if all other code is governed by
20  * the terms of a license that is OSI approved (see www.opensource.org) and
21  * you may distribute the Larger Work as a single product. In such a case,
22  * You must make sure the requirements of this License are fulfilled for
23  * the Covered Software."
24  *
25  * When distributing Covered Code, include this CDDL HEADER in each
26  * file and include the License file CDDL.Schily.txt from this distribution.
27  */
28 
29 #ifndef	_SCG_SCSIDEFS_H
30 #define	_SCG_SCSIDEFS_H
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * Disks
38  */
39 #ifdef	DEV_UNKNOWN
40 /*
41  * True64 defines DEV_UNKNOWN in /usr/include/sys/devio.h as "UNKNOWN"
42  */
43 #undef	DEV_UNKNOWN
44 #endif
45 #define	DEV_UNKNOWN		0
46 #define	DEV_ACB40X0		1
47 #define	DEV_ACB4000		2
48 #define	DEV_ACB4010		3
49 #define	DEV_ACB4070		4
50 #define	DEV_ACB5500		5
51 #define	DEV_ACB4520A		6
52 #define	DEV_ACB4525		7
53 #define	DEV_MD21		8
54 #define	DEV_MD23		9
55 #define	DEV_NON_CCS_DSK		10
56 #define	DEV_CCS_GENDISK		11
57 
58 /*
59  * Tapes
60  */
61 #define	DEV_MT02		100
62 #define	DEV_SC4000		101
63 
64 /*
65  * Printer
66  */
67 #define	DEV_PRT			200
68 
69 /*
70  * Processors
71  */
72 #define	DEV_PROC		300
73 
74 /*
75  * Worm
76  */
77 #define	DEV_WORM		400
78 #define	DEV_RXT800S		401
79 
80 /*
81  * CD-ROM
82  */
83 #define	DEV_CDROM		500
84 #define	DEV_MMC_CDROM		501
85 #define	DEV_MMC_CDR		502
86 #define	DEV_MMC_CDRW		503
87 #define	DEV_MMC_DVD		504
88 #define	DEV_MMC_DVD_WR		505
89 
90 #define	DEV_CDD_521_OLD		510
91 #define	DEV_CDD_521		511
92 #define	DEV_CDD_522		512
93 #define	DEV_PCD_600		513
94 #define	DEV_CDD_2000		514
95 #define	DEV_CDD_2600		515
96 #define	DEV_TYUDEN_EW50		516
97 #define	DEV_YAMAHA_CDR_100	520
98 #define	DEV_YAMAHA_CDR_400	521
99 #define	DEV_PLASMON_RF_4100	530
100 #define	DEV_SONY_CDU_924	540
101 #define	DEV_RICOH_RO_1420C	550
102 #define	DEV_RICOH_RO_1060C	551
103 #define	DEV_TEAC_CD_R50S	560
104 #define	DEV_MATSUSHITA_7501	570
105 #define	DEV_MATSUSHITA_7502	571
106 #define	DEV_PIONEER_DW_S114X	580
107 #define	DEV_PIONEER_DVDR_S101	581
108 
109 /*
110  * Scanners
111  */
112 #define	DEV_HRSCAN		600
113 #define	DEV_MS300A		601
114 
115 /*
116  * Optical memory
117  */
118 #define	DEV_SONY_SMO		700
119 
120 
121 #define	old_acb(d)	(((d) == DEV_ACB40X0) || \
122 			    ((d) == DEV_ACB4000) || ((d) == DEV_ACB4010) || \
123 			    ((d) == DEV_ACB4070) || ((d) == DEV_ACB5500))
124 
125 #define	is_ccs(d)	(!old_acb(d))
126 
127 #ifdef	__cplusplus
128 }
129 #endif
130 
131 #endif	/* _SCG_SCSIDEFS_H */
132