kopia lustrzana https://gitlab.com/sane-project/backends
2000-11-21 Henning Meier-Geinitz <hmg@gmx.de>
* AUTHORS: Added FUKUDA Kazuya for the nec Backend. Used spaces instead of tabs. * PROJECTS: Removed entry about NEC. Added/updated entries about Mustek USB scanners. * README: Added link to sane-nec(5). * TODO: Removed entries about sanei_authorize and plain text passwords. * backend/Makefile.in backend/dll.conf backend/nec.conf backend/nec.c backend/nec.desc backend/nec.h doc/Makefile.in doc/sane-nec.man: Added nec backend for the NEC scanners PC-IN500/4C (from Kazuya Fukuda <fukuda@pjs.nevt.nec.co.jp>)DEVEL_2_0_BRANCH-1
rodzic
32d8b87c92
commit
eb92849a5e
71
AUTHORS
71
AUTHORS
|
@ -8,43 +8,44 @@ Java API:
|
|||
|
||||
Backends:
|
||||
|
||||
abaton: David Huggins-Daines
|
||||
agfafocus: Karl Anders Øygard
|
||||
apple: Milon Firikis
|
||||
artec: Chris Pinkham (*)
|
||||
abaton: David Huggins-Daines
|
||||
agfafocus: Karl Anders Øygard
|
||||
apple: Milon Firikis
|
||||
artec: Chris Pinkham (*)
|
||||
as6e: Eugene S. Weiss (*)
|
||||
avision: Meino Christian Cramer, Rene Rebe(*)
|
||||
canon: Helmut Koeberle, Manuel Panea (*), and Markus Mertinat
|
||||
coolscan: Didier Carlier, Andreas Rick (*)
|
||||
dc25: Peter Fales (*)
|
||||
dc210: Brian J. Murrell
|
||||
dll: David Mosberger
|
||||
dmc: David F. Skoll
|
||||
epson: Karl Heinz Kremer(*)
|
||||
hp: Peter Kirchgessner (*)
|
||||
Geoffrey Dairiki
|
||||
m3096g: Randolph Bentson (*)
|
||||
microtek: Matthew Marjanovic (*)
|
||||
microtek2: Bernd Schroeder (*)
|
||||
mustek: Andreas Bolsch, David Mosberger, Andreas Czechanowski and
|
||||
Henning Meier-Geinitz (*)
|
||||
avision: Meino Christian Cramer, Rene Rebe(*)
|
||||
canon: Helmut Koeberle, Manuel Panea (*), and Markus Mertinat
|
||||
coolscan: Didier Carlier, Andreas Rick (*)
|
||||
dc25: Peter Fales (*)
|
||||
dc210: Brian J. Murrell
|
||||
dll: David Mosberger
|
||||
dmc: David F. Skoll
|
||||
epson: Karl Heinz Kremer(*)
|
||||
hp: Peter Kirchgessner (*)
|
||||
Geoffrey Dairiki
|
||||
m3096g: Randolph Bentson (*)
|
||||
microtek: Matthew Marjanovic (*)
|
||||
microtek2: Bernd Schroeder (*)
|
||||
mustek: Andreas Bolsch, David Mosberger, Andreas Czechanowski and
|
||||
Henning Meier-Geinitz (*)
|
||||
mustek_pp: Jochen Eisinger (*)
|
||||
net: Andreas Beck and David Mosberger
|
||||
pnm: Andreas Beck, Gordon Matzigkeit, and David Mosberger
|
||||
pie: Simon Munton (*)
|
||||
pint: Gordon Matzigkeit
|
||||
plustek: Rick Bronson, Gerhard Jaeger (*)
|
||||
qcam: Scott Laird (original driver), David Mosberger (SANE backend),
|
||||
despeckling filter by Patrick Reynolds,
|
||||
B&W fixes by Andrew Kuchling
|
||||
ricoh: Feico W. Dillema
|
||||
s9036: Ingo Schneider
|
||||
sharp: FUKUDA Kazuya (*) and Abel Deuring (*)
|
||||
snapscan: Kevin Charter, Franck Schneider, and Michel Roelofs
|
||||
sp15c: Randolph Bentson (*)
|
||||
st400: Ingo Wilken (*)
|
||||
tamarack: Roger Wolff
|
||||
umax: Oliver Rauch (*) and Michael K. Johnson
|
||||
nec: FUKUDA Kazuya (*)
|
||||
net: Andreas Beck and David Mosberger
|
||||
pnm: Andreas Beck, Gordon Matzigkeit, and David Mosberger
|
||||
pie: Simon Munton (*)
|
||||
pint: Gordon Matzigkeit
|
||||
plustek: Rick Bronson, Gerhard Jaeger (*)
|
||||
qcam: Scott Laird (original driver), David Mosberger (SANE backend),
|
||||
despeckling filter by Patrick Reynolds,
|
||||
B&W fixes by Andrew Kuchling
|
||||
ricoh: Feico W. Dillema
|
||||
s9036: Ingo Schneider
|
||||
sharp: FUKUDA Kazuya (*) and Abel Deuring (*)
|
||||
snapscan: Kevin Charter, Franck Schneider, and Michel Roelofs
|
||||
sp15c: Randolph Bentson (*)
|
||||
st400: Ingo Wilken (*)
|
||||
tamarack: Roger Wolff
|
||||
umax: Oliver Rauch (*) and Michael K. Johnson
|
||||
v4l: Juergen G. Schimmer
|
||||
|
||||
(*) Current active maintainer(s).
|
||||
|
|
6
PROJECTS
6
PROJECTS
|
@ -34,11 +34,11 @@ ftp://www.cs.ubishops.ca/pub/lhii/
|
|||
HP USB backend for HP 4200 (wip)
|
||||
http://hp4200-backend.sourceforge.net/
|
||||
|
||||
Mustek USB scanner: BearPaw 1200, ScanExpress 1200 CU, USB, UB (planned)
|
||||
Mustek BearPaw USB scanner (planned)
|
||||
Henning Meier-Geinitz <hmg@gmx.de>
|
||||
|
||||
NEC PC-IN500/4C support (wip)
|
||||
<fukuda@pjs.nevt.nec.co.jp>
|
||||
Mustek 1200 CU USB scanner (planned)
|
||||
Daniel Münch <aris.to@gmx.de>
|
||||
|
||||
Polaroid SprintScan 35 LE (wip)
|
||||
Dick Bruijn <dick@wau.mis.ah.nl>
|
||||
|
|
3
README
3
README
|
@ -116,7 +116,8 @@ below:
|
|||
Microtek SCSI-2 sane-microtek2(5)
|
||||
Mustek sane-mustek(5)
|
||||
Mustek parallel port sane-mustek_pp(5)
|
||||
Pacific Image sane-pie(5)
|
||||
NEC sane-nec(5)
|
||||
Pacific Image sane-pie(5)
|
||||
Plustek sane-plustek(5)
|
||||
Ricoh sane-ricoh(5)
|
||||
Sharp sane-sharp(5)
|
||||
|
|
|
@ -53,7 +53,7 @@ COMPILE = $(CC) -c $(CFLAGS) $(DEFS) $(INCLUDES) $(CPPFLAGS)
|
|||
|
||||
PRELOADABLE_BACKENDS = abaton agfafocus apple artec as6e avision canon \
|
||||
coolscan dc25 @DC210@ dmc epson hp m3096g microtek microtek2 mustek \
|
||||
mustek_pp @NET@ pie @PINT@ plustek pnm @QCAM@ ricoh s9036 sharp \
|
||||
mustek_pp nec @NET@ pie @PINT@ plustek pnm @QCAM@ ricoh s9036 sharp \
|
||||
snapscan sp15c st400 tamarack umax @V4L@
|
||||
ALL_BACKENDS = $(PRELOADABLE_BACKENDS) dll
|
||||
|
||||
|
@ -217,6 +217,9 @@ libsane-mustek.la: ../sanei/sanei_ab306.lo
|
|||
libsane-mustek_pp.la: ../sanei/sanei_constrain_value.lo
|
||||
libsane-mustek_pp.la: ../sanei/sanei_config2.lo
|
||||
libsane-mustek_pp.la: ../sanei/sanei_pa4s2.lo
|
||||
libsane-nec.la: ../sanei/sanei_config2.lo
|
||||
libsane-nec.la: ../sanei/sanei_constrain_value.lo
|
||||
libsane-nec.la: ../sanei/sanei_scsi.lo
|
||||
libsane-net.la: ../sanei/sanei_codec_bin.lo
|
||||
libsane-net.la: ../sanei/sanei_net.lo
|
||||
libsane-net.la: ../sanei/sanei_wire.lo
|
||||
|
|
|
@ -18,6 +18,7 @@ microtek
|
|||
microtek2
|
||||
mustek
|
||||
#mustek_pp
|
||||
nec
|
||||
pie
|
||||
pint
|
||||
plustek
|
||||
|
|
Plik diff jest za duży
Load Diff
|
@ -0,0 +1 @@
|
|||
/dev/scanner
|
|
@ -1,9 +1,9 @@
|
|||
:backend "nec" ; name of backend
|
||||
:version "(0.10)" ; version of backend
|
||||
:version "0.11" ; version of backend
|
||||
:status :beta ; :alpha, :beta, :stable, :new
|
||||
; Currently no home page. Email author to get it.
|
||||
:url "mailto:fukuda@pjs.nevt.nec.co.jp" ; backend's homepage
|
||||
|
||||
:url "http://www5a.biglobe.ne.jp/~saetaka/"
|
||||
; backend's homepage
|
||||
:manpage "sane-nec"
|
||||
:devicetype :scanner
|
||||
|
||||
:mfg "NEC" ; name a manufacturer
|
||||
|
@ -14,4 +14,4 @@
|
|||
:comment "PC-IN500/4C was sold only in JAPAN"
|
||||
:model "PC-IN600,700,800 series"; name models for above-specified mfg.
|
||||
:interface "SCSI, USB"
|
||||
:comment "PC-IN600,700,800 series is not supported"
|
||||
:comment "PC-IN600,700,800 series is not supprted"
|
||||
|
|
|
@ -0,0 +1,454 @@
|
|||
/* sane - Scanner Access Now Easy.
|
||||
|
||||
Copyright (C) 2000 Kazuya Fukuda
|
||||
|
||||
This file is part of the SANE package.
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||
MA 02111-1307, USA.
|
||||
|
||||
As a special exception, the authors of SANE give permission for
|
||||
additional uses of the libraries contained in this release of SANE.
|
||||
|
||||
The exception is that, if you link a SANE library with other files
|
||||
to produce an executable, this does not by itself cause the
|
||||
resulting executable to be covered by the GNU General Public
|
||||
License. Your use of that executable is in no way restricted on
|
||||
account of linking the SANE library code into it.
|
||||
|
||||
This exception does not, however, invalidate any other reasons why
|
||||
the executable file might be covered by the GNU General Public
|
||||
License.
|
||||
|
||||
If you submit changes to SANE to the maintainers to be included in
|
||||
a subsequent release, you agree by submitting the changes that
|
||||
those changes may be distributed with this exception intact.
|
||||
|
||||
If you write modifications of your own for SANE, it is your choice
|
||||
whether to permit this exception to apply to your modifications.
|
||||
If you do not wish that, delete this exception notice. */
|
||||
|
||||
#ifndef nec_h
|
||||
#define nec_h 1
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
/* default values for configurable options.
|
||||
Though these options are only meaningful if USE_FORK is defined,
|
||||
they are
|
||||
DEFAULT_BUFFERS: number of buffers allocated as shared memory
|
||||
for the data transfer from reader_process to
|
||||
read_data. The minimum value is 2
|
||||
DEFAULT_BUFSIZE: default size of one buffer. Must be greater
|
||||
than zero.
|
||||
DEFAULT_QUEUED_READS: number of read requests queued by
|
||||
sanei_scsi_req_enter. Since queued read requests
|
||||
are currently only supported for Linux and
|
||||
DomainOS, this value should automatically be set
|
||||
dependent on the target OS...
|
||||
For Linux, 2 is the optimum; for DomainOS, I
|
||||
don't have any recommendation; other OS
|
||||
should use the value zero.
|
||||
|
||||
The value for DEFAULT_BUFSIZE is probably too Linux-oriented...
|
||||
*/
|
||||
|
||||
#define DEFAULT_BUFFERS 12
|
||||
#define DEFAULT_BUFSIZE 128 * 1024
|
||||
#define DEFAULT_QUEUED_READS 2
|
||||
|
||||
typedef enum
|
||||
{
|
||||
OPT_NUM_OPTS = 0,
|
||||
|
||||
OPT_MODE_GROUP,
|
||||
OPT_MODE,
|
||||
OPT_HALFTONE,
|
||||
OPT_PAPER,
|
||||
OPT_SCANSOURCE,
|
||||
OPT_GAMMA,
|
||||
#ifdef USE_CUSTOM_GAMMA
|
||||
OPT_CUSTOM_GAMMA,
|
||||
#endif
|
||||
OPT_RESOLUTION_GROUP,
|
||||
OPT_RESOLUTION,
|
||||
OPT_X_RESOLUTION,
|
||||
OPT_Y_RESOLUTION,
|
||||
|
||||
OPT_GEOMETRY_GROUP,
|
||||
OPT_TL_X, /* top-left x */
|
||||
OPT_TL_Y, /* top-left y */
|
||||
OPT_BR_X, /* bottom-right x */
|
||||
OPT_BR_Y, /* bottom-right y */
|
||||
|
||||
OPT_ENHANCEMENT_GROUP,
|
||||
OPT_EDGE_EMPHASIS,
|
||||
OPT_OR,
|
||||
OPT_NR,
|
||||
OPT_EDGE,
|
||||
OPT_THRESHOLD,
|
||||
#ifdef USE_COLOR_THRESHOLD
|
||||
OPT_THRESHOLD_R,
|
||||
OPT_THRESHOLD_G,
|
||||
OPT_THRESHOLD_B,
|
||||
#endif
|
||||
OPT_LIGHTCOLOR,
|
||||
OPT_TINT,
|
||||
OPT_COLOR,
|
||||
OPT_PREVIEW,
|
||||
|
||||
#ifdef USE_CUSTOM_GAMMA
|
||||
OPT_GAMMA_VECTOR,
|
||||
OPT_GAMMA_VECTOR_R,
|
||||
OPT_GAMMA_VECTOR_G,
|
||||
OPT_GAMMA_VECTOR_B,
|
||||
#endif
|
||||
/* must come last: */
|
||||
NUM_OPTIONS
|
||||
}
|
||||
NEC_Option;
|
||||
|
||||
typedef union
|
||||
{
|
||||
SANE_Word w;
|
||||
SANE_Word *wa; /* word array */
|
||||
SANE_String s;
|
||||
}
|
||||
Option_Value;
|
||||
|
||||
#ifdef USE_FORK
|
||||
|
||||
/* status defines for a buffer:
|
||||
buffer not used / read request queued / buffer contains data
|
||||
*/
|
||||
#define SHM_EMPTY 0
|
||||
#define SHM_BUSY 1
|
||||
#define SHM_FULL 2
|
||||
typedef struct NEC_shmem_ctl
|
||||
{
|
||||
int shm_status; /* can be SHM_EMPTY, SHM_BUSY, SHM_FULL */
|
||||
size_t used; /* number of bytes successfully read from scanner */
|
||||
size_t nreq; /* number of bytes requested from scanner */
|
||||
size_t start; /* index of the begin of used area of the buffer */
|
||||
void *qid;
|
||||
SANE_Byte *buffer;
|
||||
}
|
||||
NEC_shmem_ctl;
|
||||
|
||||
typedef struct NEC_rdr_ctl
|
||||
{
|
||||
int cancel; /* 1 = flag for the reader process to cancel */
|
||||
int running; /* 1 indicates that the reader process is alive */
|
||||
SANE_Status status; /* return status of the reader process */
|
||||
NEC_shmem_ctl *buf_ctl;
|
||||
}
|
||||
NEC_rdr_ctl;
|
||||
#endif /* USE_FORK */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
/* PCIN500, PCINXXX are used as array indices, so the corresponding
|
||||
numbers should start at 0
|
||||
*/
|
||||
unknown = -1,
|
||||
PCIN500,
|
||||
PCINXXX
|
||||
}
|
||||
NEC_Model;
|
||||
|
||||
typedef struct NEC_Info
|
||||
{
|
||||
SANE_Range xres_range;
|
||||
SANE_Range yres_range;
|
||||
SANE_Range tl_x_ranges[3]; /* normal / FSU / ADF */
|
||||
SANE_Range br_x_ranges[3]; /* normal / FSU / ADF */
|
||||
SANE_Range tl_y_ranges[3]; /* normal / FSU / ADF */
|
||||
SANE_Range br_y_ranges[3]; /* normal / FSU / ADF */
|
||||
SANE_Range threshold_range;
|
||||
SANE_Range tint_range;
|
||||
SANE_Range color_range;
|
||||
|
||||
SANE_Int xres_default;
|
||||
SANE_Int yres_default;
|
||||
SANE_Int x_default;
|
||||
SANE_Int y_default;
|
||||
SANE_Int bmu;
|
||||
SANE_Int mud;
|
||||
SANE_Int adf_fsu_installed;
|
||||
SANE_String_Const scansources[5];
|
||||
size_t buffers;
|
||||
size_t bufsize;
|
||||
int wanted_bufsize;
|
||||
size_t queued_reads;
|
||||
}
|
||||
NEC_Info;
|
||||
|
||||
typedef struct NEC_Sense_Data
|
||||
{
|
||||
NEC_Model model;
|
||||
/* flag, if conditions like "paper jam" or "cover open"
|
||||
are considered as an error. Should be 0 for attach, else
|
||||
a frontend might refuse to start, if the scanner returns
|
||||
these errors.
|
||||
*/
|
||||
int complain_on_adf_error;
|
||||
/* Linux returns only 16 bytes of sense data... */
|
||||
u_char sb[16];
|
||||
}
|
||||
NEC_Sense_Data;
|
||||
|
||||
typedef struct NEC_Device
|
||||
{
|
||||
struct NEC_Device *next;
|
||||
SANE_Device sane;
|
||||
NEC_Info info;
|
||||
/* xxx now part of sense data NEC_Model model; */
|
||||
NEC_Sense_Data sensedat;
|
||||
}
|
||||
NEC_Device;
|
||||
|
||||
typedef struct NEC_New_Device
|
||||
{
|
||||
struct NEC_Device *dev;
|
||||
struct NEC_New_Device *next;
|
||||
}
|
||||
NEC_New_Device;
|
||||
|
||||
typedef struct NEC_Scanner
|
||||
{
|
||||
struct NEC_Scanner *next;
|
||||
int fd;
|
||||
NEC_Device *dev;
|
||||
SANE_Option_Descriptor opt[NUM_OPTIONS];
|
||||
Option_Value val[NUM_OPTIONS];
|
||||
SANE_Parameters params;
|
||||
|
||||
int get_params_called;
|
||||
SANE_Byte *buffer; /* for color data re-ordering */
|
||||
SANE_Int buf_used;
|
||||
SANE_Int buf_pos;
|
||||
SANE_Int modes;
|
||||
SANE_Int xres;
|
||||
SANE_Int yres;
|
||||
SANE_Int ulx;
|
||||
SANE_Int uly;
|
||||
SANE_Int width;
|
||||
SANE_Int length;
|
||||
SANE_Int threshold;
|
||||
SANE_Int image_composition;
|
||||
SANE_Int bpp;
|
||||
SANE_Int halftone;
|
||||
SANE_Bool reverse;
|
||||
SANE_Bool or;
|
||||
SANE_Bool nr;
|
||||
SANE_Int gamma;
|
||||
SANE_Int edge;
|
||||
SANE_Int lightcolor;
|
||||
SANE_Int adf_fsu_mode; /* mode selected by user */
|
||||
SANE_Int adf_scan; /* flag, if the actual scan is an ADF scan */
|
||||
|
||||
SANE_Int tint;
|
||||
SANE_Int color;
|
||||
|
||||
size_t bytes_to_read;
|
||||
size_t max_lines_to_read;
|
||||
size_t unscanned_lines;
|
||||
SANE_Bool scanning;
|
||||
SANE_Bool busy;
|
||||
SANE_Bool cancel;
|
||||
#ifdef USE_CUSTOM_GAMMA
|
||||
SANE_Int gamma_table[4][256];
|
||||
#endif
|
||||
#ifdef USE_FORK
|
||||
pid_t reader_pid;
|
||||
NEC_rdr_ctl *rdr_ctl;
|
||||
int shmid;
|
||||
size_t read_buff; /* index of the buffer actually used by read_data */
|
||||
#endif /* USE_FORK */
|
||||
}
|
||||
NEC_Scanner;
|
||||
|
||||
typedef struct NEC_Send
|
||||
{
|
||||
SANE_Int dtc;
|
||||
SANE_Int dtq;
|
||||
SANE_Int length;
|
||||
SANE_Byte *data;
|
||||
}
|
||||
NEC_Send;
|
||||
|
||||
typedef struct WPDH
|
||||
{
|
||||
u_char wpdh[6];
|
||||
u_char wdl[2];
|
||||
}
|
||||
WPDH;
|
||||
|
||||
typedef struct WDB
|
||||
{
|
||||
SANE_Byte wid;
|
||||
SANE_Byte autobit;
|
||||
SANE_Byte x_res[2];
|
||||
SANE_Byte y_res[2];
|
||||
|
||||
SANE_Byte x_ul[4];
|
||||
SANE_Byte y_ul[4];
|
||||
SANE_Byte width[4];
|
||||
SANE_Byte length[4];
|
||||
|
||||
SANE_Byte brightness;
|
||||
SANE_Byte threshold;
|
||||
SANE_Byte contrast;
|
||||
SANE_Byte image_composition;
|
||||
SANE_Byte bpp;
|
||||
|
||||
SANE_Byte ht_pattern[2];
|
||||
SANE_Byte rif_padding;
|
||||
SANE_Byte bit_ordering[2];
|
||||
SANE_Byte compression_type;
|
||||
SANE_Byte compression_argument;
|
||||
SANE_Byte reserved[6];
|
||||
}
|
||||
WDB;
|
||||
|
||||
/* "extension" of the window descriptor block for the PC-IN500 */
|
||||
typedef struct XWDBX500
|
||||
{
|
||||
SANE_Byte data_length;
|
||||
SANE_Byte control;
|
||||
SANE_Byte format;
|
||||
SANE_Byte gamma;
|
||||
SANE_Byte tint;
|
||||
SANE_Byte color;
|
||||
SANE_Byte reserved1;
|
||||
SANE_Byte reserved2;
|
||||
}
|
||||
WDBX500;
|
||||
|
||||
typedef struct window_param
|
||||
{
|
||||
WPDH wpdh;
|
||||
WDB wdb;
|
||||
WDBX500 wdbx500;
|
||||
}
|
||||
window_param;
|
||||
|
||||
typedef struct mode_sense_param
|
||||
{
|
||||
SANE_Byte mode_data_length;
|
||||
SANE_Byte mode_param_header2;
|
||||
SANE_Byte mode_param_header3;
|
||||
SANE_Byte mode_desciptor_length;
|
||||
SANE_Byte page_code;
|
||||
SANE_Byte page_length; /* 6 */
|
||||
SANE_Byte bmu;
|
||||
SANE_Byte res2;
|
||||
SANE_Byte mud[2];
|
||||
SANE_Byte res3;
|
||||
SANE_Byte res4;
|
||||
}
|
||||
mode_sense_param;
|
||||
|
||||
typedef struct mode_sense_subdevice
|
||||
{
|
||||
SANE_Byte mode_data_length;
|
||||
SANE_Byte mode_param_header2;
|
||||
SANE_Byte mode_param_header3;
|
||||
SANE_Byte mode_desciptor_length;
|
||||
SANE_Byte res1[5];
|
||||
SANE_Byte blocklength[3];
|
||||
SANE_Byte page_code;
|
||||
SANE_Byte page_length; /* 0x1a */
|
||||
SANE_Byte a_mode_type;
|
||||
SANE_Byte f_mode_type;
|
||||
SANE_Byte res2;
|
||||
SANE_Byte max_x[4];
|
||||
SANE_Byte max_y[4];
|
||||
SANE_Byte res3[2];
|
||||
SANE_Byte x_basic_resolution[2];
|
||||
SANE_Byte y_basic_resolution[2];
|
||||
SANE_Byte x_max_resolution[2];
|
||||
SANE_Byte y_max_resolution[2];
|
||||
SANE_Byte x_min_resolution[2];
|
||||
SANE_Byte y_min_resolution[2];
|
||||
SANE_Byte res4;
|
||||
}
|
||||
mode_sense_subdevice;
|
||||
|
||||
typedef struct mode_select_param
|
||||
{
|
||||
SANE_Byte mode_param_header1;
|
||||
SANE_Byte mode_param_header2;
|
||||
SANE_Byte mode_param_header3;
|
||||
SANE_Byte mode_param_header4;
|
||||
SANE_Byte page_code;
|
||||
SANE_Byte page_length; /* 6 */
|
||||
SANE_Byte res1;
|
||||
SANE_Byte res2;
|
||||
SANE_Byte mud[2];
|
||||
SANE_Byte res3;
|
||||
SANE_Byte res4;
|
||||
}
|
||||
mode_select_param;
|
||||
|
||||
typedef struct mode_select_subdevice
|
||||
{
|
||||
SANE_Byte mode_param_header1;
|
||||
SANE_Byte mode_param_header2;
|
||||
SANE_Byte mode_param_header3;
|
||||
SANE_Byte mode_param_header4;
|
||||
SANE_Byte page_code;
|
||||
SANE_Byte page_length; /* 0x1A */
|
||||
SANE_Byte a_mode;
|
||||
SANE_Byte f_mode;
|
||||
SANE_Byte res[24];
|
||||
}
|
||||
mode_select_subdevice;
|
||||
|
||||
typedef struct buffer_status
|
||||
{
|
||||
SANE_Byte data_length[3];
|
||||
SANE_Byte block;
|
||||
SANE_Byte window_id;
|
||||
SANE_Byte reserved;
|
||||
SANE_Byte bsa[3]; /* buffer space available */
|
||||
SANE_Byte fdb[3]; /* filled data buffer */
|
||||
}
|
||||
buffer_status;
|
||||
|
||||
/* SCSI commands */
|
||||
#define TEST_UNIT_READY 0x00
|
||||
#define REQUEST_SENSE 0x03
|
||||
#define INQUIRY 0x12
|
||||
#define MODE_SELECT6 0x15
|
||||
#define RESERVE_UNIT 0x16
|
||||
#define RELEASE_UNIT 0x17
|
||||
#define MODE_SENSE6 0x1a
|
||||
#define SCAN 0x1b
|
||||
#define SEND_DIAGNOSTIC 0x1d
|
||||
#define SET_WINDOW 0x24
|
||||
#define GET_WINDOW 0x25
|
||||
#define READ 0x28
|
||||
#define SEND 0x2a
|
||||
#define GET_DATA_BUFFER_STATUS 0x34
|
||||
|
||||
#define SENSE_LEN 18
|
||||
#define INQUIRY_LEN 36
|
||||
#define MODEPARAM_LEN 12
|
||||
#define MODE_SUBDEV_LEN 32
|
||||
#define WINDOW_LEN 76
|
||||
#define BUFFERSTATUS_LEN 12
|
||||
|
||||
#endif /* not nec_h */
|
|
@ -33,12 +33,12 @@ LN_S = @LN_S@
|
|||
SECT1 = saned.1 scanimage.1 xscanimage.1 xcam.1
|
||||
SECT5 = sane-abaton.5 sane-agfafocus.5 sane-apple.5 sane-as6e.5 sane-dll.5 \
|
||||
sane-dc25.5 sane-dmc.5 sane-epson.5 sane-hp.5 sane-microtek.5 \
|
||||
sane-microtek2.5 sane-mustek.5 sane-net.5 sane-pie.5 sane-pint.5 \
|
||||
sane-pnm.5 sane-umax.5 sane-qcam.5 sane-scsi.5 sane-artec.5 \
|
||||
sane-fujitsu.5 sane-sharp.5 sane-s9036.5 sane-tamarack.5 \
|
||||
sane-ricoh.5 sane-avision.5 sane-plustek.5 sane-st400.5 \
|
||||
sane-mustek_pp.5 sane-dc210.5 sane-v4l.5 sane-snapscan.5 \
|
||||
sane-canon.5 sane-coolscan.5
|
||||
sane-microtek2.5 sane-mustek.5 sane-nec.5 sane-net.5 sane-pie.5 \
|
||||
sane-pint.5 sane-pnm.5 sane-umax.5 sane-qcam.5 sane-scsi.5 \
|
||||
sane-artec.5 sane-fujitsu.5 sane-sharp.5 sane-s9036.5 \
|
||||
sane-tamarack.5 sane-ricoh.5 sane-avision.5 sane-plustek.5 \
|
||||
sane-st400.5 sane-mustek_pp.5 sane-dc210.5 sane-v4l.5 \
|
||||
sane-snapscan.5 sane-canon.5 sane-coolscan.5
|
||||
MANPAGES = $(SECT1) $(SECT5)
|
||||
DOCS = sane.ps sane.dvi
|
||||
LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS latex
|
||||
|
|
|
@ -0,0 +1,57 @@
|
|||
.TH sane-nec 5 "17 Feb 2000"
|
||||
.IX sane-nec
|
||||
.SH NAME
|
||||
sane-nec - SANE backend for NEC scanners
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.B sane-nec
|
||||
library implements a SANE (Scanner Access Now Easy) backend that
|
||||
provides access to NEC SCSI scanners. This backend should be
|
||||
considered
|
||||
.B alpha-quality
|
||||
software! In the current state it is known to work with PC-IN500/4C
|
||||
scanners. Another MultiReader scanner series is not supported. PC-IN
|
||||
500/4C and MultiReader scanner are only sold in Japan.(except Multi
|
||||
Reader PetiScan.)
|
||||
|
||||
For other scanners, it may or may not work.
|
||||
.PP
|
||||
The backend has the following known problems:
|
||||
.RS
|
||||
- ColorLineart mode is not supported.
|
||||
.br
|
||||
- device name is fixed to /dev/scanner
|
||||
.RE
|
||||
.PP
|
||||
At present,
|
||||
the following scanners are known to work with this backend.
|
||||
.RS
|
||||
Vendor Product id:
|
||||
.br
|
||||
----- -----------
|
||||
.br
|
||||
NEC PC-IN500/4C
|
||||
|
||||
.RE
|
||||
.SH FILES
|
||||
.TP
|
||||
.I @CONFIGDIR@/nec.conf
|
||||
The backend configuration file.
|
||||
.TP
|
||||
.I @LIBDIR@/libsane-nec.a
|
||||
The static library implementing this backend.
|
||||
.TP
|
||||
.I @LIBDIR@/libsane-nec.so
|
||||
The shared library implementing this backend (present on systems that
|
||||
support dynamic loading).
|
||||
.SH ENVIRONMENT
|
||||
.TP
|
||||
.B SANE_DEBUG_NEC
|
||||
If the library was compiled with debug support enabled, this
|
||||
environment variable controls the debug level for this backend. E.g.,
|
||||
a value of 128 requests all debug output to be printed. Smaller
|
||||
levels reduce verbosity.
|
||||
.SH "SEE ALSO"
|
||||
sane\-scsi(5)
|
||||
.SH AUTHORS
|
||||
Kazuya Fukuda
|
Ładowanie…
Reference in New Issue