1 /* 2 * Simulated SCSI driver. 3 * 4 * Copyright (C) 1999, 2002 Hewlett-Packard Co 5 * David Mosberger-Tang <davidm@hpl.hp.com> 6 */ 7 #ifndef SIMSCSI_H 8 #define SIMSCSI_H 9 10 #define SIMSCSI_REQ_QUEUE_LEN 64 11 12 #define DEFAULT_SIMSCSI_ROOT "/var/ski-disks/sd" 13 14 extern int simscsi_detect (Scsi_Host_Template *); 15 extern int simscsi_release (struct Scsi_Host *); 16 extern const char *simscsi_info (struct Scsi_Host *); 17 extern int simscsi_queuecommand (Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); 18 extern int simscsi_abort (Scsi_Cmnd *); 19 extern int simscsi_reset (Scsi_Cmnd *, unsigned int); 20 extern int simscsi_biosparam (Disk *, kdev_t, int[]); 21 22 #define SIMSCSI { \ 23 .detect = simscsi_detect, \ 24 .release = simscsi_release, \ 25 .info = simscsi_info, \ 26 .queuecommand = simscsi_queuecommand, \ 27 .abort = simscsi_abort, \ 28 .reset = simscsi_reset, \ 29 .bios_param = simscsi_biosparam, \ 30 .can_queue = SIMSCSI_REQ_QUEUE_LEN, \ 31 .this_id = -1, \ 32 .sg_tablesize = SG_ALL, \ 33 .cmd_per_lun = SIMSCSI_REQ_QUEUE_LEN, \ 34 .present = 0, \ 35 .unchecked_isa_dma = 0, \ 36 .use_clustering = DISABLE_CLUSTERING \ 37 } 38 39 #endif /* SIMSCSI_H */ 40