1 /* ------------------------------------------------------------------------- */
2 
3 /* umax-ug630.c: inquiry for UMAX scanner ug630
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 
47 static unsigned char UG630_INQUIRY[] =
48 {
49 #define UG630_INQUIRY_LEN 0x94
50 /* 24 F/W support function */
51 	0x00,
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 	0xdc,
77 	0xbc, /* 8e ? */
78 	0x03, /* ? */
79 
80 /* 63 reserved */
81 	0x00,
82 
83 /* 64 gamma */
84 	0xa1,
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 	0x88, 0x21, /* ? */
100 
101 /* 6b - 6c reserved */
102 	0x00, 0x00,
103 
104 /* 6d color sequence */
105 	0x05,
106 
107 /* 6e - 71 video memory */
108 	0x00, 0x04, 0x00, 0x00,
109 
110 /* 72 reserved */
111 	0x00,
112 
113 /* 73 max optical res in 100 dpi */
114 	0x04,
115 
116 /* 74 max x_res in 100 dpi */
117 	0x04,
118 
119 /* 75 max y_res in 100 dpi */
120 	0x04,
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 	0x04, 0x92,
127 
128 /* 7a-7b uta x original point */
129 	0x00, 0x76,
130 
131 /* 7c-7d uta y original point */
132 	0x00, 0x89,
133 
134 /* 7e-7f uta max scan width in 0.01 inch */
135 	0x02, 0x4e,
136 
137 /* 80-81 uta max scan length in 0.01 inch */
138 	0x03, 0x65,
139 
140 /* 82-85 reserved */
141 	00, 00, 00, 00,
142 
143 /* 86-87 dor x original point */
144 	0x00, 0x00,
145 
146 /* 88-89 dor x original point */
147 	0x00, 0x00,
148 
149 /* 8a-8b dor max scan width in 0.01 inch */
150 	0x00, 0x00,
151 
152 /* 8c-8d dor max scan length in 0.01 inch */
153 	0x00, 0x00,
154 
155 /* 8e reserved */
156 	0x00,
157 
158 /* 8f last calibration lamp density */
159 	0x00,
160 
161 /* 90 reserved */
162 	0x00,
163 
164 /* 91 lamp warmup max time */
165 	0x00,
166 
167 /* 92-93 window descriptor block length */
168 	0x00, 0x30,
169 
170 /* 94 optical resolution residue (1dpi) */
171 	0x00,
172 
173 /* 95 x_resolution residue (1dpi) */
174 	0x00,
175 
176 /* 96 y_resolution residue (1dpi) */
177 	0x00,
178 
179 /* 97 analog gamma table */
180 	0x00,
181 
182 /* 98-99 reserved */
183 	0x00, 0x00,
184 
185 /* 9a max calibration data lines */
186 	0x00
187 };
188 
189 static inquiry_blk inquiry_ug630 =
190 {
191   "UG630 ", UG630_INQUIRY, UG630_INQUIRY_LEN
192 };
193