summaryrefslogtreecommitdiff
path: root/backend/avision.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:32:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:32:49 +0200
commitcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (patch)
tree56cb8849a5df91b19b72fd4f48c79c343cd9bc5e /backend/avision.h
parentba8d09abe681600aad991f4a75e904615b7ed29f (diff)
Imported Upstream version 1.0.25upstream/1.0.25
Diffstat (limited to 'backend/avision.h')
-rw-r--r--backend/avision.h84
1 files changed, 40 insertions, 44 deletions
diff --git a/backend/avision.h b/backend/avision.h
index 14134e1..2122e09 100644
--- a/backend/avision.h
+++ b/backend/avision.h
@@ -93,123 +93,119 @@ typedef struct Avision_HWEntry {
/* feature overwrites - as embedded CPUs have 16bit enums - this
would need a change ... */
- enum {
/* force no calibration */
- AV_NO_CALIB = (1<<0),
+ #define AV_NO_CALIB ((uint64_t)1<<0)
/* force all in one command calibration */
- AV_ONE_CALIB_CMD = (1<<1),
+ #define AV_ONE_CALIB_CMD ((uint64_t)1<<1)
/* no gamma table */
- AV_NO_GAMMA = (1<<2),
+ #define AV_NO_GAMMA ((uint64_t)1<<2)
/* light check is bogus */
- AV_LIGHT_CHECK_BOGUS = (1<<3),
+ #define AV_LIGHT_CHECK_BOGUS ((uint64_t)1<<3)
/* no button though the device advertise it */
- AV_NO_BUTTON = (1<<4),
+ #define AV_NO_BUTTON ((uint64_t)1<<4)
/* if the scan area needs to be forced to A3 */
- AV_FORCE_A3 = (1<<5),
+ #define AV_FORCE_A3 ((uint64_t)1<<5)
/* if the scan area and resolution needs to be forced for films */
- AV_FORCE_FILM = (1<<6),
+ #define AV_FORCE_FILM ((uint64_t)1<<6)
/* does not suport, or very broken background (added for AV610C2) */
- AV_NO_BACKGROUND = (1<<7),
+ #define AV_NO_BACKGROUND ((uint64_t)1<<7)
/* is film scanner - no detection yet */
- AV_FILMSCANNER = (1<<8),
+ #define AV_FILMSCANNER ((uint64_t)1<<8)
/* fujitsu adaption */
- AV_FUJITSU = (1<<9),
+ #define AV_FUJITSU ((uint64_t)1<<9)
/* gray calibration data has to be uploaded on the blue channel ... ? */
- AV_GRAY_CALIB_BLUE = (1<<10),
+ #define AV_GRAY_CALIB_BLUE ((uint64_t)1<<10)
/* Interrupt endpoint button readout (so far AV220) */
- AV_INT_BUTTON = (1<<11),
+ #define AV_INT_BUTTON ((uint64_t)1<<11)
/* send acceleration table ... */
- AV_ACCEL_TABLE = (1<<12),
+ #define AV_ACCEL_TABLE ((uint64_t)1<<12)
/* non-interlaced scanns up to 300 dpi (AV32xx / AV83xx) */
- AV_NON_INTERLACED_DUPLEX_300 = (1<<13),
+ #define AV_NON_INTERLACED_DUPLEX_300 ((uint64_t)1<<13)
/* do not read multiples of 64 bytes - stalls the USB chip */
- AV_NO_64BYTE_ALIGN = (1<<14),
+ #define AV_NO_64BYTE_ALIGN ((uint64_t)1<<14)
/* force channel-by-channel calibration */
- AV_MULTI_CALIB_CMD = (1<<15),
+ #define AV_MULTI_CALIB_CMD ((uint64_t)1<<15)
/* non color scans are faster with a filter applied (AV32xx) */
- AV_FASTER_WITH_FILTER = (1<<16),
+ #define AV_FASTER_WITH_FILTER ((uint64_t)1<<16)
/* interlaced data with 1 line distance */
- AV_2ND_LINE_INTERLACED = (1<<17),
+ #define AV_2ND_LINE_INTERLACED ((uint64_t)1<<17)
/* does not keep the window though it advertices so */
- AV_DOES_NOT_KEEP_WINDOW = (1<<18),
+ #define AV_DOES_NOT_KEEP_WINDOW ((uint64_t)1<<18)
/* does not keep the gamma though it advertices so */
- AV_DOES_NOT_KEEP_GAMMA = (1<<19),
+ #define AV_DOES_NOT_KEEP_GAMMA ((uint64_t)1<<19)
/* advertises ADF is BGR order, but isn't (or vice versa) */
- AV_ADF_BGR_ORDER_INVERT = (1<<20),
+ #define AV_ADF_BGR_ORDER_INVERT ((uint64_t)1<<20)
/* allows 12bit mode, though not flagged */
- AV_12_BIT_MODE = (1<<21),
+ #define AV_12_BIT_MODE ((uint64_t)1<<21)
/* very broken background raster */
- AV_BACKGROUND_QUIRK = (1<<22),
+ #define AV_BACKGROUND_QUIRK ((uint64_t)1<<22)
/* though marked as GRAY only the scanner can do GRAY modes */
- AV_GRAY_MODES = (1<<23),
+ #define AV_GRAY_MODES ((uint64_t)1<<23)
/* no seperate, single REAR scan (AV122, DM152, ...) */
- AV_NO_REAR = (1<<24),
+ #define AV_NO_REAR ((uint64_t)1<<24)
/* only scan with some known good hardware resolutions, as the
scanner fails to properly interpoloate in between (e.g. AV121,
DM152 on duplex scans - but also the AV600), software scale and
interpolate to all the others */
- AV_SOFT_SCALE = (1<<25),
+ #define AV_SOFT_SCALE ((uint64_t)1<<25)
/* does keep window though it does not advertice it - the AV122/DM152
mess up image data if window is resend between ADF pages */
- AV_DOES_KEEP_WINDOW = (1<<26),
+ #define AV_DOES_KEEP_WINDOW ((uint64_t)1<<26)
/* does keep gamma though it does not advertice it */
- AV_DOES_KEEP_GAMMA = (1<<27),
+ #define AV_DOES_KEEP_GAMMA ((uint64_t)1<<27)
/* does the scanner contain a Cancel button? */
- AV_CANCEL_BUTTON = (1<<28),
+ #define AV_CANCEL_BUTTON ((uint64_t)1<<28)
/* is the rear image offset? */
- AV_REAR_OFFSET = (1<<29),
+ #define AV_REAR_OFFSET ((uint64_t)1<<29)
/* some devices do not need a START_SCAN, even hang with it */
- AV_NO_START_SCAN = (1<<30),
-
- AV_INT_STATUS = (1<<31)
+ #define AV_NO_START_SCAN ((uint64_t)1<<30)
- /* maybe more ...*/
- } feature_type;
-
- /*second enum cause 32 bit int above is full*/
- enum {
+ #define AV_INT_STATUS ((uint64_t)1<<31)
+
/* force no calibration */
- AV_NO_TUNE_SCAN_LENGTH = (1<<0),
+ #define AV_NO_TUNE_SCAN_LENGTH ((uint64_t)1<<32)
/* for gray scans, set grey filter */
- AV_USE_GRAY_FILTER = (1<<1),
+ #define AV_USE_GRAY_FILTER ((uint64_t)1<<33)
/* For (HP) scanners with flipping duplexers */
- AV_ADF_FLIPPING_DUPLEX = (1<<2),
+ #define AV_ADF_FLIPPING_DUPLEX ((uint64_t)1<<34)
/* For scanners which need to have their firmware read to properly function. */
- AV_FIRMWARE = (1<<3)
- } feature_type2;
+ #define AV_FIRMWARE ((uint64_t)1<<35)
+
+ /* maybe more ...*/
+ uint64_t feature_type;
} Avision_HWEntry;