aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/NCR5380.h
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2014-11-12 00:12:21 -0500
committerChristoph Hellwig <hch@lst.de>2014-11-20 03:11:20 -0500
commita53a21e4662fd2ed27863f511715898459312393 (patch)
treeb770b830e1ab4843ae4f0e8139b0a02c69f0606c /drivers/scsi/NCR5380.h
parent61d739a4976424af0d2a62d8e8d0b2159702fb45 (diff)
atari_NCR5380: Move static co-routine variables to host data
Unlike NCR5380.c, the atari_NCR5380.c core driver is limited to a single instance because co-routine state is stored globally. Fix this by removing the static scsi host pointer. For the co-routine, obtain this pointer from the work_struct pointer instead. For the interrupt handler, obtain it from the dev_id argument. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.de> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/NCR5380.h')
-rw-r--r--drivers/scsi/NCR5380.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h
index a6946f2d1dc0..162112dd1bf8 100644
--- a/drivers/scsi/NCR5380.h
+++ b/drivers/scsi/NCR5380.h
@@ -283,6 +283,8 @@ struct NCR5380_hostdata {
283 int read_overruns; /* number of bytes to cut from a 283 int read_overruns; /* number of bytes to cut from a
284 * transfer to handle chip overruns */ 284 * transfer to handle chip overruns */
285 int retain_dma_intr; 285 int retain_dma_intr;
286 struct work_struct main_task;
287 volatile int main_running;
286#ifdef SUPPORT_TAGS 288#ifdef SUPPORT_TAGS
287 struct tag_alloc TagAlloc[8][8]; /* 8 targets and 8 LUNs */ 289 struct tag_alloc TagAlloc[8][8]; /* 8 targets and 8 LUNs */
288#endif 290#endif