Commit 86d7520d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley

[PATCH] wd33c93 update

avoid obsolete APIs
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 134240c3
This diff is collapsed.
...@@ -196,9 +196,9 @@ typedef struct { ...@@ -196,9 +196,9 @@ typedef struct {
} wd33c93_regs; } wd33c93_regs;
typedef int (*dma_setup_t) (Scsi_Cmnd *SCpnt, int dir_in); typedef int (*dma_setup_t) (struct scsi_cmnd *SCpnt, int dir_in);
typedef void (*dma_stop_t) (struct Scsi_Host *instance, Scsi_Cmnd *SCpnt, typedef void (*dma_stop_t) (struct Scsi_Host *instance,
int status); struct scsi_cmnd *SCpnt, int status);
#define ILLEGAL_STATUS_BYTE 0xff #define ILLEGAL_STATUS_BYTE 0xff
...@@ -234,10 +234,10 @@ struct WD33C93_hostdata { ...@@ -234,10 +234,10 @@ struct WD33C93_hostdata {
uchar *dma_bounce_buffer; uchar *dma_bounce_buffer;
unsigned int dma_bounce_len; unsigned int dma_bounce_len;
volatile uchar busy[8]; /* index = target, bit = lun */ volatile uchar busy[8]; /* index = target, bit = lun */
volatile Scsi_Cmnd *input_Q; /* commands waiting to be started */ volatile struct scsi_cmnd *input_Q; /* commands waiting to be started */
volatile Scsi_Cmnd *selecting; /* trying to select this command */ volatile struct scsi_cmnd *selecting; /* trying to select this command */
volatile Scsi_Cmnd *connected; /* currently connected command */ volatile struct scsi_cmnd *connected; /* currently connected command */
volatile Scsi_Cmnd *disconnected_Q;/* commands waiting for reconnect */ volatile struct scsi_cmnd *disconnected_Q;/* commands waiting for reconnect */
uchar state; /* what we are currently doing */ uchar state; /* what we are currently doing */
uchar dma; /* current state of DMA (on/off) */ uchar dma; /* current state of DMA (on/off) */
uchar level2; /* extent to which Level-2 commands are used */ uchar level2; /* extent to which Level-2 commands are used */
...@@ -335,11 +335,12 @@ struct WD33C93_hostdata { ...@@ -335,11 +335,12 @@ struct WD33C93_hostdata {
void wd33c93_init (struct Scsi_Host *instance, const wd33c93_regs regs, void wd33c93_init (struct Scsi_Host *instance, const wd33c93_regs regs,
dma_setup_t setup, dma_stop_t stop, int clock_freq); dma_setup_t setup, dma_stop_t stop, int clock_freq);
int wd33c93_abort (Scsi_Cmnd *cmd); int wd33c93_abort (struct scsi_cmnd *cmd);
int wd33c93_queuecommand (Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *)); int wd33c93_queuecommand (struct scsi_cmnd *cmd,
void (*done)(struct scsi_cmnd *));
void wd33c93_intr (struct Scsi_Host *instance); void wd33c93_intr (struct Scsi_Host *instance);
int wd33c93_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int); int wd33c93_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int);
int wd33c93_host_reset (Scsi_Cmnd *); int wd33c93_host_reset (struct scsi_cmnd *);
void wd33c93_release(void); void wd33c93_release(void);
#endif /* WD33C93_H */ #endif /* WD33C93_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment