1/* ------------------------------------------------------------------------- */
2
3/* umax-uc1260.c: inquiry for UMAX scanner uc1260
4
5   (C) 1997-2002 Oliver Rauch
6
7   This program is free software; you can redistribute it and/or
8   modify it under the terms of the GNU General Public License as
9   published by the Free Software Foundation; either version 2 of the
10   License, or (at your option) any later version.
11
12   This program is distributed in the hope that it will be useful, but
13   WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15   General Public License for more details.
16
17   You should have received a copy of the GNU General Public License
18   along with this program.  If not, see <https://www.gnu.org/licenses/>.
19
20   As a special exception, the authors of SANE give permission for
21   additional uses of the libraries contained in this release of SANE.
22
23   The exception is that, if you link a SANE library with other files
24   to produce an executable, this does not by itself cause the
25   resulting executable to be covered by the GNU General Public
26   License.  Your use of that executable is in no way restricted on
27   account of linking the SANE library code into it.
28
29   This exception does not, however, invalidate any other reasons why
30   the executable file might be covered by the GNU General Public
31   License.
32
33   If you submit changes to SANE to the maintainers to be included in
34   a subsequent release, you agree by submitting the changes that
35   those changes may be distributed with this exception intact.
36
37   If you write modifications of your own for SANE, it is your choice
38   whether to permit this exception to apply to your modifications.
39   If you do not wish that, delete this exception notice.
40
41 */
42
43/* ------------------------------------------------------------------------- */
44#include "umax-scanner.h"
45/* ------------------------------------------------------------------------- */
46
47static unsigned char UC1260_INQUIRY[] =
48{
49#define UC1260_INQUIRY_LEN 0x9d
50/* 24 F/W support function */
51	0x03,
52
53/* 25 -27 exposure-times */
54	0x00, 0x00, 0x00,
55
56/* 28 - 29 reserved */
57	0x00, 0x00,
58
59/* 2a - 35 exposure times */
60	0x00, 0x00,
61	0x00, 0x00, 0x00, 0x00,
62	0x00, 0x00, 0x00, 0x00,
63	0x00, 0x00,
64
65/* 36 - 37 reserved */
66	0x00, 0x00,
67
68/* 38 - 5f scsi reserved */
69	00, 00, 00, 00, 00, 00, 00, 00,
70	00, 00, 00, 00, 00, 00, 00, 00,
71	00, 00, 00, 00, 00, 00, 00, 00,
72	00, 00, 00, 00, 00, 00, 00, 00,
73	00, 00, 00, 00, 00, 00, 00, 00,
74
75/* 60 -62 scanner capability*/
76	0x31,
77	0x0c,
78	0x07,
79
80/* 63 reserved */
81	0x00,
82
83/* 64 gamma */
84	0xa3,
85
86/* 65 reserved */
87	0x00,
88
89/* 66 GIB */
90	0x01,
91
92/* 67 reserved */
93	0x00,
94
95/* 68 GOB */
96	0x01,
97
98/* 69 - 6a halftone */
99	0x0c, 0x2f,
100
101/* 6b - 6c reserved */
102	0x00, 0x00,
103
104/* 6d color sequence */
105	0x08,
106
107/* 6e - 71 video memory */
108	0x00, 0x20, 0x00, 0x00,
109
110/* 72 reserved */
111	0x00,
112
113/* 73 max optical res in 100 dpi */
114	0x06,
115
116/* 74 max x_res in 100 dpi */
117	0x06,
118
119/* 75 max y_res in 100 dpi */
120	0x0c,
121
122/* 76-77 fb max scan width in 0.01 inch */
123	0x03, 0x52,
124
125/* 78-79 fb max scan length in 0.01 inch */
126	0x05, 0x78,
127
128/* UTA parameters empirically determined on Peter Missel's unit */
129/* 7a-7b uta x original point */
130	0x00, 0x77,
131
132/* 7c-7d uta y original point */
133	0x00, 0x8f,
134
135/* 7e-7f uta max scan width in 0.01 inch */
136	0x02, 0x63,
137
138/* 80-81 uta max scan length in 0.01 inch */
139	0x03, 0x61,
140
141/* 82-85 reserved */
142	00, 00, 00, 00,
143
144/* 86-87 dor x original point */
145	0x00, 0x00,
146
147/* 88-89 dor x original point */
148	0x00, 0x00,
149
150/* 8a-8b dor max scan width in 0.01 inch */
151	0x00, 0x00,
152
153/* 8c-8d dor max scan length in 0.01 inch */
154	0x00, 0x00,
155
156/* 8e reserved */
157	0x00,
158
159/* 8f last calibration lamp density */
160	0x00,
161
162/* 90 reserved */
163	0x00,
164
165/* 91 lamp warmup max time */
166	0x00,
167
168/* 92-93 window descriptor block length */
169	0x00, 0x30,
170
171/* 94 optical resolution residue (1dpi) */
172	0x00,
173
174/* 95 x_resolution residue (1dpi) */
175	0x00,
176
177/* 96 y_resolution residue (1dpi) */
178	0x00,
179
180/* 97 analog gamma table */
181	0x00,
182
183/* 98-99 reserved */
184	0x00, 0x00,
185
186/* 9a max calibration data lines */
187	0x00,
188
189/* 9b fb/uta colour-sequnce-mode */
190	0x01,
191
192/* 9c adf colour-sequnce-mode */
193	0x01,
194
195/* 9d line-distance of ccd */
196	0x08
197};
198
199static inquiry_blk inquiry_uc1260 =
200{
201  "UC1260 ",UC1260_INQUIRY, UC1260_INQUIRY_LEN
202};
203