1141cc406Sopenharmony_ci/* -------------------------------------------------------------------- */
2141cc406Sopenharmony_ci
3141cc406Sopenharmony_ci/* umax-scanner.c: scanner-definiton file for UMAX scanner driver.
4141cc406Sopenharmony_ci
5141cc406Sopenharmony_ci   (C) 1997-2004 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
45141cc406Sopenharmony_ci#include "umax-scanner.h"
46141cc406Sopenharmony_ci
47141cc406Sopenharmony_ci/* ==================================================================== */
48141cc406Sopenharmony_ci
49141cc406Sopenharmony_ci/* scanners that are supported because the driver knows missing */
50141cc406Sopenharmony_ci/* inquiry-data */
51141cc406Sopenharmony_ci
52141cc406Sopenharmony_ci/* these umax-*.c files are included and not compiled separately */
53141cc406Sopenharmony_ci/* because this way the symbols are not exported */
54141cc406Sopenharmony_ci
55141cc406Sopenharmony_ci#include "umax-uc630.c"
56141cc406Sopenharmony_ci#include "umax-uc840.c"
57141cc406Sopenharmony_ci#include "umax-ug630.c"
58141cc406Sopenharmony_ci#include "umax-ug80.c"
59141cc406Sopenharmony_ci#include "umax-uc1200s.c"
60141cc406Sopenharmony_ci#include "umax-uc1200se.c"
61141cc406Sopenharmony_ci#include "umax-uc1260.c"
62141cc406Sopenharmony_ci
63141cc406Sopenharmony_cistatic inquiry_blk *inquiry_table[] =
64141cc406Sopenharmony_ci{
65141cc406Sopenharmony_ci  &inquiry_uc630,
66141cc406Sopenharmony_ci  &inquiry_uc840,
67141cc406Sopenharmony_ci  &inquiry_ug630,
68141cc406Sopenharmony_ci  &inquiry_ug80,
69141cc406Sopenharmony_ci  &inquiry_uc1200s,
70141cc406Sopenharmony_ci  &inquiry_uc1200se,
71141cc406Sopenharmony_ci  &inquiry_uc1260
72141cc406Sopenharmony_ci};
73141cc406Sopenharmony_ci
74141cc406Sopenharmony_ci#define known_inquiry 7
75141cc406Sopenharmony_ci
76141cc406Sopenharmony_ci/* ==================================================================== */
77141cc406Sopenharmony_ci
78141cc406Sopenharmony_ci/* names of scanners that are supported because */
79141cc406Sopenharmony_ci/* the inquiry_return_block is ok and driver is tested */
80141cc406Sopenharmony_ci
81141cc406Sopenharmony_cistatic char *scanner_str[] =
82141cc406Sopenharmony_ci{
83141cc406Sopenharmony_ci  "UMAX ",	"Vista-T630 ",
84141cc406Sopenharmony_ci  "UMAX ",	"Vista-S6 ",
85141cc406Sopenharmony_ci  "UMAX ",	"Vista-S6E ",
86141cc406Sopenharmony_ci  "UMAX ",	"UMAX S-6E ",
87141cc406Sopenharmony_ci  "UMAX ",	"UMAX S-6EG ",
88141cc406Sopenharmony_ci  "UMAX ",	"Vista-S8 ",
89141cc406Sopenharmony_ci  "UMAX ",	"UMAX S-12 ",
90141cc406Sopenharmony_ci  "UMAX ",	"UMAX S-12G ",
91141cc406Sopenharmony_ci  "UMAX ",	"SuperVista S-12 ",
92141cc406Sopenharmony_ci  "UMAX ",	"PSD ",
93141cc406Sopenharmony_ci  "UMAX ",	"Astra 600S ",
94141cc406Sopenharmony_ci  "UMAX ",	"Astra 610S ",
95141cc406Sopenharmony_ci  "UMAX ",	"Astra 1200S ",
96141cc406Sopenharmony_ci  "UMAX ",	"Astra 1220S ",
97141cc406Sopenharmony_ci  "UMAX ",	"Astra 2100S ",
98141cc406Sopenharmony_ci  "UMAX ",	"Astra 2200 ",
99141cc406Sopenharmony_ci  "UMAX ",	"Astra 2400S ",
100141cc406Sopenharmony_ci/*  "UMAX ",	"Astra 6400 ", */ /* this is a firewire scanner */
101141cc406Sopenharmony_ci/*  "UMAX ",	"Astra 6450 ", */ /* this is a firewire scanner */
102141cc406Sopenharmony_ci  "UMAX ",	"Mirage D-16L ",
103141cc406Sopenharmony_ci  "UMAX ",	"Mirage II ",
104141cc406Sopenharmony_ci  "UMAX ",	"Mirage IIse ",
105141cc406Sopenharmony_ci  "UMAX ",	"PL-II ",
106141cc406Sopenharmony_ci  "UMAX ",	"Power Look 2000 ",
107141cc406Sopenharmony_ci  "UMAX ",	"PowerLook 2100XL",
108141cc406Sopenharmony_ci  "UMAX ",	"PowerLook III ",
109141cc406Sopenharmony_ci  "UMAX ",	"PowerLook 3000 ",
110141cc406Sopenharmony_ci  "UMAX ",	"Gemini D-16 ",
111141cc406Sopenharmony_ci  "UMAX ",      "PS-2400X ", /* same as LinoHell SAPHIR */
112141cc406Sopenharmony_ci  "LinoHell",	"JADE ",   /* is a Supervista S-12 */
113141cc406Sopenharmony_ci  "LinoHell",	"Office ", /* is a Supervista S-12 */
114141cc406Sopenharmony_ci  "LinoHell",	"Office2 ",
115141cc406Sopenharmony_ci  "LinoHell",	"SAPHIR ", /* same as UMAX PS-2400X */
116141cc406Sopenharmony_ci  "LinoHell",	"SAPHIR2 ",
117141cc406Sopenharmony_ci  "LinoHell",	"SAPHIR3 ", /* 1000x2000 dpi */
118141cc406Sopenharmony_ci/*  "LinoHell",	"SAPHIR4 ", */
119141cc406Sopenharmony_ci  "Linotype",	"SAPHIR4 ", /* Linotype-Hell Saphir Ultra II */
120141cc406Sopenharmony_ci/*  "LinoHell",	"OPAL ", */
121141cc406Sopenharmony_ci  "LinoHell",	"OPAL2 ", /* looks like a UMAX Mirage II */
122141cc406Sopenharmony_ci  "HDM ",	"LS4H1S ", /* Linoscan 1400 */
123141cc406Sopenharmony_ci  "Nikon ",	"AX-110 ", /* is a Vista S6E */
124141cc406Sopenharmony_ci  "Nikon ",	"AX-210 ", /* is a Supervista S12 */
125141cc406Sopenharmony_ci  "KYE ",	"ColorPage-HR5 ",
126141cc406Sopenharmony_ci  "EPSON ",	"Perfection600 ",
127141cc406Sopenharmony_ci  "ESCORT ",    "Galleria 600S ", /* is an Astra 600S */
128141cc406Sopenharmony_ci  "EDGE ",	"KTX-9600US ", /* may be an Astra 1220S */
129141cc406Sopenharmony_ci  "TriGem ",	"PowerScanII ", /* is a Supervista S12 */
130141cc406Sopenharmony_ci  "END_OF_LIST"
131141cc406Sopenharmony_ci};
132141cc406Sopenharmony_ci
133141cc406Sopenharmony_ci/* ==================================================================== */
134