summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.h
blob: 43c11af576e825d48505e5c206db87ad1d6b3156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef _SCSI_DEBUG_H

#include <linux/types.h>
#include <linux/kdev_t.h>

int scsi_debug_detect(Scsi_Host_Template *);
int scsi_debug_command(Scsi_Cmnd *);
int scsi_debug_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int scsi_debug_abort(Scsi_Cmnd *);
int scsi_debug_biosparam(Disk *, kdev_t, int[]);
int scsi_debug_reset(Scsi_Cmnd *, unsigned int);
int scsi_debug_proc_info(char *, char **, off_t, int, int, int);
 
#ifndef NULL
	#define NULL 0
#endif


#define SCSI_DEBUG_MAILBOXES 1

/*
 * Allow the driver to reject commands.  Thus we accept only one, but
 * and the mid-level will queue the remainder.
 */
#define SCSI_DEBUG_CANQUEUE  255

#define SCSI_DEBUG {proc_info:         scsi_debug_proc_info,	\
		    name:              "SCSI DEBUG",		\
		    detect:            scsi_debug_detect,	\
		    command:           scsi_debug_command,	\
		    queuecommand:      scsi_debug_queuecommand, \
		    abort:             scsi_debug_abort,	\
		    reset:             scsi_debug_reset,	\
		    bios_param:        scsi_debug_biosparam,	\
		    can_queue:         SCSI_DEBUG_CANQUEUE,	\
		    this_id:           7,			\
		    sg_tablesize:      SG_ALL,			\
		    cmd_per_lun:       3,			\
		    unchecked_isa_dma: 1,			\
		    use_clustering:    ENABLE_CLUSTERING,	\
		    use_new_eh_code:   1,			\
}
#endif