1141cc406Sopenharmony_ci/* ------------------------------------------------------------------------- */
2141cc406Sopenharmony_ci
3141cc406Sopenharmony_ci/* umax-ug630.c: inquiry for UMAX scanner ug630
4141cc406Sopenharmony_ci
5141cc406Sopenharmony_ci   (C) 1997-2002 Oliver Rauch
6141cc406Sopenharmony_ci
7141cc406Sopenharmony_ci   This program is free software; you can redistribute it and/or
8141cc406Sopenharmony_ci   modify it under the terms of the GNU General Public License as
9141cc406Sopenharmony_ci   published by the Free Software Foundation; either version 2 of the
10141cc406Sopenharmony_ci   License, or (at your option) any later version.
11141cc406Sopenharmony_ci
12141cc406Sopenharmony_ci   This program is distributed in the hope that it will be useful, but
13141cc406Sopenharmony_ci   WITHOUT ANY WARRANTY; without even the implied warranty of
14141cc406Sopenharmony_ci   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15141cc406Sopenharmony_ci   General Public License for more details.
16141cc406Sopenharmony_ci
17141cc406Sopenharmony_ci   You should have received a copy of the GNU General Public License
18141cc406Sopenharmony_ci   along with this program.  If not, see <https://www.gnu.org/licenses/>.
19141cc406Sopenharmony_ci
20141cc406Sopenharmony_ci   As a special exception, the authors of SANE give permission for
21141cc406Sopenharmony_ci   additional uses of the libraries contained in this release of SANE.
22141cc406Sopenharmony_ci
23141cc406Sopenharmony_ci   The exception is that, if you link a SANE library with other files
24141cc406Sopenharmony_ci   to produce an executable, this does not by itself cause the
25141cc406Sopenharmony_ci   resulting executable to be covered by the GNU General Public
26141cc406Sopenharmony_ci   License.  Your use of that executable is in no way restricted on
27141cc406Sopenharmony_ci   account of linking the SANE library code into it.
28141cc406Sopenharmony_ci
29141cc406Sopenharmony_ci   This exception does not, however, invalidate any other reasons why
30141cc406Sopenharmony_ci   the executable file might be covered by the GNU General Public
31141cc406Sopenharmony_ci   License.
32141cc406Sopenharmony_ci
33141cc406Sopenharmony_ci   If you submit changes to SANE to the maintainers to be included in
34141cc406Sopenharmony_ci   a subsequent release, you agree by submitting the changes that
35141cc406Sopenharmony_ci   those changes may be distributed with this exception intact.
36141cc406Sopenharmony_ci
37141cc406Sopenharmony_ci   If you write modifications of your own for SANE, it is your choice
38141cc406Sopenharmony_ci   whether to permit this exception to apply to your modifications.
39141cc406Sopenharmony_ci   If you do not wish that, delete this exception notice.
40141cc406Sopenharmony_ci
41141cc406Sopenharmony_ci */
42141cc406Sopenharmony_ci
43141cc406Sopenharmony_ci/* ------------------------------------------------------------------------- */
44141cc406Sopenharmony_ci#include "umax-scanner.h"
45141cc406Sopenharmony_ci/* ------------------------------------------------------------------------- */
46141cc406Sopenharmony_ci
47141cc406Sopenharmony_cistatic unsigned char UG630_INQUIRY[] =
48141cc406Sopenharmony_ci{
49141cc406Sopenharmony_ci#define UG630_INQUIRY_LEN 0x94
50141cc406Sopenharmony_ci/* 24 F/W support function */
51141cc406Sopenharmony_ci	0x00,
52141cc406Sopenharmony_ci
53141cc406Sopenharmony_ci/* 25 -27 exposure-times */
54141cc406Sopenharmony_ci	0x00, 0x00, 0x00,
55141cc406Sopenharmony_ci
56141cc406Sopenharmony_ci/* 28 - 29 reserved */
57141cc406Sopenharmony_ci	0x00, 0x00,
58141cc406Sopenharmony_ci
59141cc406Sopenharmony_ci/* 2a - 35 exposure times */
60141cc406Sopenharmony_ci	0x00, 0x00,
61141cc406Sopenharmony_ci	0x00, 0x00, 0x00, 0x00,
62141cc406Sopenharmony_ci	0x00, 0x00, 0x00, 0x00,
63141cc406Sopenharmony_ci	0x00, 0x00,
64141cc406Sopenharmony_ci
65141cc406Sopenharmony_ci/* 36 - 37 reserved */
66141cc406Sopenharmony_ci	0x00, 0x00,
67141cc406Sopenharmony_ci
68141cc406Sopenharmony_ci/* 38 - 5f scsi reserved */
69141cc406Sopenharmony_ci	00, 00, 00, 00, 00, 00, 00, 00,
70141cc406Sopenharmony_ci	00, 00, 00, 00, 00, 00, 00, 00,
71141cc406Sopenharmony_ci	00, 00, 00, 00, 00, 00, 00, 00,
72141cc406Sopenharmony_ci	00, 00, 00, 00, 00, 00, 00, 00,
73141cc406Sopenharmony_ci	00, 00, 00, 00, 00, 00, 00, 00,
74141cc406Sopenharmony_ci
75141cc406Sopenharmony_ci/* 60 -62 scanner capability */
76141cc406Sopenharmony_ci	0xdc,
77141cc406Sopenharmony_ci	0xbc, /* 8e ? */
78141cc406Sopenharmony_ci	0x03, /* ? */
79141cc406Sopenharmony_ci
80141cc406Sopenharmony_ci/* 63 reserved */
81141cc406Sopenharmony_ci	0x00,
82141cc406Sopenharmony_ci
83141cc406Sopenharmony_ci/* 64 gamma */
84141cc406Sopenharmony_ci	0xa1,
85141cc406Sopenharmony_ci
86141cc406Sopenharmony_ci/* 65 reserved */
87141cc406Sopenharmony_ci	0x00,
88141cc406Sopenharmony_ci
89141cc406Sopenharmony_ci/* 66 GIB */
90141cc406Sopenharmony_ci	0x01,
91141cc406Sopenharmony_ci
92141cc406Sopenharmony_ci/* 67 reserved */
93141cc406Sopenharmony_ci	0x00,
94141cc406Sopenharmony_ci
95141cc406Sopenharmony_ci/* 68 GOB */
96141cc406Sopenharmony_ci	0x01,
97141cc406Sopenharmony_ci
98141cc406Sopenharmony_ci/* 69 - 6a halftone */
99141cc406Sopenharmony_ci	0x88, 0x21, /* ? */
100141cc406Sopenharmony_ci
101141cc406Sopenharmony_ci/* 6b - 6c reserved */
102141cc406Sopenharmony_ci	0x00, 0x00,
103141cc406Sopenharmony_ci
104141cc406Sopenharmony_ci/* 6d color sequence */
105141cc406Sopenharmony_ci	0x05,
106141cc406Sopenharmony_ci
107141cc406Sopenharmony_ci/* 6e - 71 video memory */
108141cc406Sopenharmony_ci	0x00, 0x04, 0x00, 0x00,
109141cc406Sopenharmony_ci
110141cc406Sopenharmony_ci/* 72 reserved */
111141cc406Sopenharmony_ci	0x00,
112141cc406Sopenharmony_ci
113141cc406Sopenharmony_ci/* 73 max optical res in 100 dpi */
114141cc406Sopenharmony_ci	0x04,
115141cc406Sopenharmony_ci
116141cc406Sopenharmony_ci/* 74 max x_res in 100 dpi */
117141cc406Sopenharmony_ci	0x04,
118141cc406Sopenharmony_ci
119141cc406Sopenharmony_ci/* 75 max y_res in 100 dpi */
120141cc406Sopenharmony_ci	0x04,
121141cc406Sopenharmony_ci
122141cc406Sopenharmony_ci/* 76-77 fb max scan width in 0.01 inch */
123141cc406Sopenharmony_ci	0x03, 0x52,
124141cc406Sopenharmony_ci
125141cc406Sopenharmony_ci/* 78-79 fb max scan length in 0.01 inch */
126141cc406Sopenharmony_ci	0x04, 0x92,
127141cc406Sopenharmony_ci
128141cc406Sopenharmony_ci/* 7a-7b uta x original point */
129141cc406Sopenharmony_ci	0x00, 0x76,
130141cc406Sopenharmony_ci
131141cc406Sopenharmony_ci/* 7c-7d uta y original point */
132141cc406Sopenharmony_ci	0x00, 0x89,
133141cc406Sopenharmony_ci
134141cc406Sopenharmony_ci/* 7e-7f uta max scan width in 0.01 inch */
135141cc406Sopenharmony_ci	0x02, 0x4e,
136141cc406Sopenharmony_ci
137141cc406Sopenharmony_ci/* 80-81 uta max scan length in 0.01 inch */
138141cc406Sopenharmony_ci	0x03, 0x65,
139141cc406Sopenharmony_ci
140141cc406Sopenharmony_ci/* 82-85 reserved */
141141cc406Sopenharmony_ci	00, 00, 00, 00,
142141cc406Sopenharmony_ci
143141cc406Sopenharmony_ci/* 86-87 dor x original point */
144141cc406Sopenharmony_ci	0x00, 0x00,
145141cc406Sopenharmony_ci
146141cc406Sopenharmony_ci/* 88-89 dor x original point */
147141cc406Sopenharmony_ci	0x00, 0x00,
148141cc406Sopenharmony_ci
149141cc406Sopenharmony_ci/* 8a-8b dor max scan width in 0.01 inch */
150141cc406Sopenharmony_ci	0x00, 0x00,
151141cc406Sopenharmony_ci
152141cc406Sopenharmony_ci/* 8c-8d dor max scan length in 0.01 inch */
153141cc406Sopenharmony_ci	0x00, 0x00,
154141cc406Sopenharmony_ci
155141cc406Sopenharmony_ci/* 8e reserved */
156141cc406Sopenharmony_ci	0x00,
157141cc406Sopenharmony_ci
158141cc406Sopenharmony_ci/* 8f last calibration lamp density */
159141cc406Sopenharmony_ci	0x00,
160141cc406Sopenharmony_ci
161141cc406Sopenharmony_ci/* 90 reserved */
162141cc406Sopenharmony_ci	0x00,
163141cc406Sopenharmony_ci
164141cc406Sopenharmony_ci/* 91 lamp warmup max time */
165141cc406Sopenharmony_ci	0x00,
166141cc406Sopenharmony_ci
167141cc406Sopenharmony_ci/* 92-93 window descriptor block length */
168141cc406Sopenharmony_ci	0x00, 0x30,
169141cc406Sopenharmony_ci
170141cc406Sopenharmony_ci/* 94 optical resolution residue (1dpi) */
171141cc406Sopenharmony_ci	0x00,
172141cc406Sopenharmony_ci
173141cc406Sopenharmony_ci/* 95 x_resolution residue (1dpi) */
174141cc406Sopenharmony_ci	0x00,
175141cc406Sopenharmony_ci
176141cc406Sopenharmony_ci/* 96 y_resolution residue (1dpi) */
177141cc406Sopenharmony_ci	0x00,
178141cc406Sopenharmony_ci
179141cc406Sopenharmony_ci/* 97 analog gamma table */
180141cc406Sopenharmony_ci	0x00,
181141cc406Sopenharmony_ci
182141cc406Sopenharmony_ci/* 98-99 reserved */
183141cc406Sopenharmony_ci	0x00, 0x00,
184141cc406Sopenharmony_ci
185141cc406Sopenharmony_ci/* 9a max calibration data lines */
186141cc406Sopenharmony_ci	0x00
187141cc406Sopenharmony_ci};
188141cc406Sopenharmony_ci
189141cc406Sopenharmony_cistatic inquiry_blk inquiry_ug630 =
190141cc406Sopenharmony_ci{
191141cc406Sopenharmony_ci  "UG630 ", UG630_INQUIRY, UG630_INQUIRY_LEN
192141cc406Sopenharmony_ci};
193