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