1141cc406Sopenharmony_ci#ifndef _EPSON2_SCSI_H_ 2141cc406Sopenharmony_ci#define _EPSON2_SCSI_H_ 3141cc406Sopenharmony_ci 4141cc406Sopenharmony_ci#include <sys/types.h> 5141cc406Sopenharmony_ci#include "../include/sane/sane.h" 6141cc406Sopenharmony_ci 7141cc406Sopenharmony_ci#define TEST_UNIT_READY_COMMAND (0x00) 8141cc406Sopenharmony_ci#define READ_6_COMMAND (0x08) 9141cc406Sopenharmony_ci#define WRITE_6_COMMAND (0x0a) 10141cc406Sopenharmony_ci#define INQUIRY_COMMAND (0x12) 11141cc406Sopenharmony_ci#define TYPE_PROCESSOR (0x03) 12141cc406Sopenharmony_ci 13141cc406Sopenharmony_ci#define INQUIRY_BUF_SIZE (36) 14141cc406Sopenharmony_ci 15141cc406Sopenharmony_ciSANE_Status sanei_epson2_scsi_sense_handler(int scsi_fd, unsigned char *result, 16141cc406Sopenharmony_ci void *arg); 17141cc406Sopenharmony_ciSANE_Status sanei_epson2_scsi_inquiry(int fd, void *buf, 18141cc406Sopenharmony_ci size_t *buf_size); 19141cc406Sopenharmony_ciint sanei_epson2_scsi_read(int fd, void *buf, size_t buf_size, 20141cc406Sopenharmony_ci SANE_Status *status); 21141cc406Sopenharmony_ciint sanei_epson2_scsi_write(int fd, const void *buf, size_t buf_size, 22141cc406Sopenharmony_ci SANE_Status *status); 23141cc406Sopenharmony_ciSANE_Status sanei_epson2_scsi_test_unit_ready(int fd); 24141cc406Sopenharmony_ci#endif 25