3 #include <linux/types.h>
5 static int scsi_debug_slave_alloc(struct scsi_device
*);
6 static int scsi_debug_slave_configure(struct scsi_device
*);
7 static void scsi_debug_slave_destroy(struct scsi_device
*);
8 static int scsi_debug_queuecommand(struct scsi_cmnd
*,
9 void (*done
) (struct scsi_cmnd
*));
10 static int scsi_debug_ioctl(struct scsi_device
*, int, void __user
*);
11 static int scsi_debug_biosparam(struct scsi_device
*, struct block_device
*,
13 static int scsi_debug_abort(struct scsi_cmnd
*);
14 static int scsi_debug_bus_reset(struct scsi_cmnd
*);
15 static int scsi_debug_device_reset(struct scsi_cmnd
*);
16 static int scsi_debug_host_reset(struct scsi_cmnd
*);
17 static int scsi_debug_proc_info(struct Scsi_Host
*, char *, char **, off_t
, int, int);
18 static const char * scsi_debug_info(struct Scsi_Host
*);
20 #define SCSI_DEBUG_CANQUEUE 255 /* needs to be >= 1 */
22 #define SCSI_DEBUG_MAX_CMD_LEN 16