summaryrefslogtreecommitdiff
path: root/backend/hp5590_low.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
commit1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (patch)
treed78102ce30207c63e7608eeba743efd680c888dc /backend/hp5590_low.h
parent58912f68c2489bcee787599837447e0d64dfd61a (diff)
New upstream version 1.0.28upstream/1.0.28
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 */