···170170STATIC int NCR_700_queuecommand(struct scsi_cmnd *, void (*done)(struct scsi_cmnd *));171171STATIC int NCR_700_abort(struct scsi_cmnd * SCpnt);172172STATIC int NCR_700_bus_reset(struct scsi_cmnd * SCpnt);173173-STATIC int NCR_700_dev_reset(struct scsi_cmnd * SCpnt);174173STATIC int NCR_700_host_reset(struct scsi_cmnd * SCpnt);175174STATIC void NCR_700_chip_setup(struct Scsi_Host *host);176175STATIC void NCR_700_chip_reset(struct Scsi_Host *host);···329330 /* Fill in the missing routines from the host template */330331 tpnt->queuecommand = NCR_700_queuecommand;331332 tpnt->eh_abort_handler = NCR_700_abort;332332- tpnt->eh_device_reset_handler = NCR_700_dev_reset;333333 tpnt->eh_bus_reset_handler = NCR_700_bus_reset;334334 tpnt->eh_host_reset_handler = NCR_700_host_reset;335335 tpnt->can_queue = NCR_700_COMMAND_SLOTS_PER_HOST;···19751977 if(hostdata->fast)19761978 spi_schedule_dv_device(SCp->device);19771979 return SUCCESS;19781978-}19791979-19801980-STATIC int19811981-NCR_700_dev_reset(struct scsi_cmnd * SCp)19821982-{19831983- printk(KERN_INFO "scsi%d (%d:%d) New error handler wants device reset\n\t",19841984- SCp->device->host->host_no, SCp->device->id, SCp->device->lun);19851985- scsi_print_command(SCp);19861986-19871987- return FAILED;19881980}1989198119901982STATIC int
-28
drivers/scsi/NCR5380.c
···28332833 do_reset(cmd->device->host);28342834 return SUCCESS;28352835}28362836-28372837-/* 28382838- * Function : int NCR5380_device_reset (Scsi_Cmnd *cmd)28392839- * 28402840- * Purpose : reset a SCSI device28412841- *28422842- * Returns : FAILED28432843- *28442844- * Locks: io_request_lock held by caller28452845- */28462846-28472847-static int NCR5380_device_reset(Scsi_Cmnd * cmd) {28482848- return FAILED;28492849-}28502850-28512851-/* 28522852- * Function : int NCR5380_host_reset (Scsi_Cmnd *cmd)28532853- * 28542854- * Purpose : reset a SCSI device28552855- *28562856- * Returns : FAILED28572857- *28582858- * Locks: io_request_lock held by caller28592859- */28602860-28612861-static int NCR5380_host_reset(Scsi_Cmnd * cmd) {28622862- return FAILED;28632863-}
-2
drivers/scsi/NCR5380.h
···306306#endif307307static int NCR5380_abort(Scsi_Cmnd * cmd);308308static int NCR5380_bus_reset(Scsi_Cmnd * cmd);309309-static int NCR5380_host_reset(Scsi_Cmnd * cmd);310310-static int NCR5380_device_reset(Scsi_Cmnd * cmd);311309static int NCR5380_queue_command(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *));312310static int NCR5380_proc_info(struct Scsi_Host *instance, char *buffer, char **start,313311off_t offset, int length, int inout);
···13481348 return 0;13491349}1350135013511351-static int aha1542_abort(Scsi_Cmnd * SCpnt)13521352-{13531353-13541354- /*13551355- * The abort command does not leave the device in a clean state where13561356- * it is available to be used again. Until this gets worked out, we13571357- * will leave it commented out. 13581358- */13591359-13601360- printk(KERN_ERR "aha1542.c: Unable to abort command for target %d\n",13611361- SCpnt->device->id);13621362- return FAILED;13631363-}13641364-13651351/*13661352 * This is a device reset. This is handled by sending a special command13671353 * to the device.···18031817 .detect = aha1542_detect,18041818 .release = aha1542_release,18051819 .queuecommand = aha1542_queuecommand,18061806- .eh_abort_handler = aha1542_abort,18071820 .eh_device_reset_handler= aha1542_dev_reset,18081821 .eh_bus_reset_handler = aha1542_bus_reset,18091822 .eh_host_reset_handler = aha1542_host_reset,
-1
drivers/scsi/aha1542.h
···133133134134static int aha1542_detect(Scsi_Host_Template *);135135static int aha1542_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));136136-static int aha1542_abort(Scsi_Cmnd * SCpnt);137136static int aha1542_bus_reset(Scsi_Cmnd * SCpnt);138137static int aha1542_dev_reset(Scsi_Cmnd * SCpnt);139138static int aha1542_host_reset(Scsi_Cmnd * SCpnt);
···401401static void in2000_setup(char *, int *) in2000__INIT;402402static int in2000_biosparam(struct scsi_device *, struct block_device *,403403 sector_t, int *);404404-static int in2000_host_reset(Scsi_Cmnd *);405404static int in2000_bus_reset(Scsi_Cmnd *);406406-static int in2000_device_reset(Scsi_Cmnd *);407405408406409407#define IN2000_CAN_Q 16
···2626static const char *sym53c416_info(struct Scsi_Host *);2727static int sym53c416_release(struct Scsi_Host *);2828static int sym53c416_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));2929-static int sym53c416_abort(Scsi_Cmnd *);3029static int sym53c416_host_reset(Scsi_Cmnd *);3131-static int sym53c416_bus_reset(Scsi_Cmnd *);3232-static int sym53c416_device_reset(Scsi_Cmnd *);3330static int sym53c416_bios_param(struct scsi_device *, struct block_device *,3431 sector_t, int *);3532static void sym53c416_setup(char *str, int *ints);