summaryrefslogtreecommitdiff
path: root/backend/hp5590_low.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
commitee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch)
tree58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/hp5590_low.h
parent0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff)
parentfef76e17ed4c607ea73b81279f9ef1d7121be900 (diff)
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/hp5590_low.h')
-rw-r--r--backend/hp5590_low.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/backend/hp5590_low.h b/backend/hp5590_low.h
index 5ca191d..4882860 100644
--- a/backend/hp5590_low.h
+++ b/backend/hp5590_low.h
@@ -48,40 +48,40 @@
#include "../include/sane/sane.h"
enum proto_flags {
- PF_NONE = 0,
- PF_NO_USB_IN_USB_ACK = 1 << 0 /* Getting acknowledge after USB-in-USB command
- * will be skipped */
+ PF_NONE = 0,
+ PF_NO_USB_IN_USB_ACK = 1 << 0 /* Getting acknowledge after USB-in-USB command
+ * will be skipped */
};
/* Flags for hp5590_cmd() */
-#define CMD_IN 1 << 0 /* Indicates IN direction, otherwise - OUT */
-#define CMD_VERIFY 1 << 1 /* Requests last command verification */
+#define CMD_IN 1 << 0 /* Indicates IN direction, otherwise - OUT */
+#define CMD_VERIFY 1 << 1 /* Requests last command verification */
/* Core flags for hp5590_cmd() - they indicate so called CORE commands */
-#define CORE_NONE 0 /* No CORE operation */
-#define CORE_DATA 1 << 0 /* Operate on CORE data */
-#define CORE_BULK_IN 1 << 1 /* CORE bulk operation - prepare for bulk IN
- * transfer (not used yet)
- */
-#define CORE_BULK_OUT 1 << 2 /* CORE bulk operation - prepare for bulk OUT
- * transfer
- */
+#define CORE_NONE 0 /* No CORE operation */
+#define CORE_DATA 1 << 0 /* Operate on CORE data */
+#define CORE_BULK_IN 1 << 1 /* CORE bulk operation - prepare for bulk IN
+ * transfer (not used yet)
+ */
+#define CORE_BULK_OUT 1 << 2 /* CORE bulk operation - prepare for bulk OUT
+ * transfer
+ */
static SANE_Status hp5590_cmd (SANE_Int dn,
- enum proto_flags proto_flags,
- unsigned int flags,
- unsigned int cmd, unsigned char *data,
- unsigned int size, unsigned int core_flags);
+ enum proto_flags proto_flags,
+ unsigned int flags,
+ unsigned int cmd, unsigned char *data,
+ unsigned int size, unsigned int core_flags);
static SANE_Status hp5590_bulk_read (SANE_Int dn,
- enum proto_flags proto_flags,
- unsigned char *bytes,
- unsigned int size, void *state);
+ enum proto_flags proto_flags,
+ unsigned char *bytes,
+ unsigned int size, void *state);
static SANE_Status hp5590_bulk_write (SANE_Int dn,
- enum proto_flags proto_flags,
- int cmd,
- unsigned char *bytes,
- unsigned int size);
+ enum proto_flags proto_flags,
+ int cmd,
+ unsigned char *bytes,
+ unsigned int size);
static SANE_Status hp5590_get_status (SANE_Int dn,
- enum proto_flags proto_flags);
+ enum proto_flags proto_flags);
static SANE_Status hp5590_low_init_bulk_read_state (void **state);
static SANE_Status hp5590_low_free_bulk_read_state (void **state);
#endif /* HP5590_LOW_H */