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