53#include <sane/config.h>
96 int bus,
int channel,
int id,
int lun,
97 SANE_Status (*attach) (
const char *dev));
152 const char * device_name,
int * fd,
154 void *sense_arg,
int *buffersize);
165#define HAVE_SANEI_SCSI_OPEN_EXTENDED
194 const void * src,
size_t src_size,
195 void * dst,
size_t * dst_size,
231 const void * cmd,
size_t cmd_size,
232 const void * src,
size_t src_size,
233 void * dst,
size_t * dst_size,
272 const void * src,
size_t src_size,
273 void * dst,
size_t * dst_size);
299 const void * cmd,
size_t cmd_size,
300 const void * src,
size_t src_size,
301 void * dst,
size_t * dst_size);
SANE_Status sanei_scsi_req_enter2(int fd, const void *cmd, size_t cmd_size, const void *src, size_t src_size, void *dst, size_t *dst_size, void **idp)
Enqueue SCSI command and separated data.
SANE_Status sanei_scsi_cmd(int fd, const void *src, size_t src_size, void *dst, size_t *dst_size)
Send SCSI command.
SANE_Status(* SANEI_SCSI_Sense_Handler)(int fd, u_char *sense_buffer, void *arg)
Sense handler.
Definition: sanei_scsi.h:68
SANE_Status sanei_scsi_open(const char *device_name, int *fd, SANEI_SCSI_Sense_Handler sense_handler, void *sense_arg)
Open a SCSI device.
SANE_Status sanei_scsi_req_wait(void *id)
Wait for SCSI command.
SANE_Status sanei_scsi_cmd2(int fd, const void *cmd, size_t cmd_size, const void *src, size_t src_size, void *dst, size_t *dst_size)
Send SCSI command and separated data.
void sanei_scsi_req_flush_all(void)
Flush queue.
SANE_Status sanei_scsi_req_enter(int fd, const void *src, size_t src_size, void *dst, size_t *dst_size, void **idp)
Enqueue SCSI command.
void sanei_scsi_find_devices(const char *vendor, const char *model, const char *type, int bus, int channel, int id, int lun, SANE_Status(*attach)(const char *dev))
Find SCSI devices.
void sanei_scsi_req_flush_all_extended(int fd)
Flush queue for handle.
int sanei_scsi_max_request_size
Maximum size of a SCSI request.
SANE_Status sanei_scsi_open_extended(const char *device_name, int *fd, SANEI_SCSI_Sense_Handler sense_handler, void *sense_arg, int *buffersize)
Open a SCSI device and set the buffer size.
void sanei_scsi_close(int fd)
Close a SCSI device.