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