summaryrefslogtreecommitdiff
path: root/backend/epson_scsi.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-06 14:00:40 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-06 14:00:40 +0200
commit6e9c41a892ed0e0da326e0278b3221ce3f5713b8 (patch)
tree2e301d871bbeeb44aa57ff9cc070fcf3be484487 /backend/epson_scsi.h
Initial import of sane-backends version 1.0.24-1.2
Diffstat (limited to 'backend/epson_scsi.h')
-rw-r--r--backend/epson_scsi.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/backend/epson_scsi.h b/backend/epson_scsi.h
new file mode 100644
index 0000000..5033014
--- /dev/null
+++ b/backend/epson_scsi.h
@@ -0,0 +1,24 @@
+#ifndef _EPSON_SCSI_H_
+#define _EPSON_SCSI_H_
+
+#include <sys/types.h>
+#include "../include/sane/sane.h"
+
+#define TEST_UNIT_READY_COMMAND (0x00)
+#define READ_6_COMMAND (0x08)
+#define WRITE_6_COMMAND (0x0a)
+#define INQUIRY_COMMAND (0x12)
+#define TYPE_PROCESSOR (0x03)
+
+#define INQUIRY_BUF_SIZE (36)
+
+SANE_Status sanei_epson_scsi_sense_handler (int scsi_fd, u_char * result,
+ void *arg);
+SANE_Status sanei_epson_scsi_inquiry (int fd, int page_code, void *buf,
+ size_t * buf_size);
+int sanei_epson_scsi_read (int fd, void *buf, size_t buf_size,
+ SANE_Status * status);
+int sanei_epson_scsi_write (int fd, const void *buf, size_t buf_size,
+ SANE_Status * status);
+
+#endif