提交 c543a373 编写于 作者: H Henrik Kretzschmar 提交者: James Bottomley

[SCSI] Scsi_Cmnd conversion in psi240i driver

Changes the obsolete Scsi_Cmnd to struct scsi_cmnd in psi240i-driver.
Signed-off-by: NHenrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 0b3a82d3
...@@ -87,11 +87,11 @@ typedef struct ...@@ -87,11 +87,11 @@ typedef struct
{ {
USHORT ports[13]; USHORT ports[13];
OUR_DEVICE device[8]; OUR_DEVICE device[8];
Scsi_Cmnd *pSCmnd; struct scsi_cmnd *pSCmnd;
IDE_STRUCT ide; IDE_STRUCT ide;
ULONG startSector; ULONG startSector;
USHORT sectorCount; USHORT sectorCount;
Scsi_Cmnd *SCpnt; struct scsi_cmnd *SCpnt;
VOID *buffer; VOID *buffer;
USHORT expectingIRQ; USHORT expectingIRQ;
} ADAPTER240I, *PADAPTER240I; } ADAPTER240I, *PADAPTER240I;
...@@ -256,7 +256,7 @@ static void Irq_Handler (int irq, void *dev_id) ...@@ -256,7 +256,7 @@ static void Irq_Handler (int irq, void *dev_id)
struct Scsi_Host *shost; // Pointer to host data block struct Scsi_Host *shost; // Pointer to host data block
PADAPTER240I padapter; // Pointer to adapter control structure PADAPTER240I padapter; // Pointer to adapter control structure
USHORT *pports; // I/O port array USHORT *pports; // I/O port array
Scsi_Cmnd *SCpnt; struct scsi_cmnd *SCpnt;
UCHAR status; UCHAR status;
int z; int z;
...@@ -389,12 +389,17 @@ static irqreturn_t do_Irq_Handler (int irq, void *dev_id) ...@@ -389,12 +389,17 @@ static irqreturn_t do_Irq_Handler (int irq, void *dev_id)
* Returns: Status code. * Returns: Status code.
* *
****************************************************************/ ****************************************************************/
static int Psi240i_QueueCommand (Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *)) static int Psi240i_QueueCommand(struct scsi_cmnd *SCpnt,
{ void (*done)(struct scsi_cmnd *))
UCHAR *cdb = (UCHAR *)SCpnt->cmnd; // Pointer to SCSI CDB {
PADAPTER240I padapter = HOSTDATA (SCpnt->device->host); // Pointer to adapter control structure UCHAR *cdb = (UCHAR *)SCpnt->cmnd;
POUR_DEVICE pdev = &padapter->device [SCpnt->device->id];// Pointer to device information // Pointer to SCSI CDB
UCHAR rc; // command return code PADAPTER240I padapter = HOSTDATA (SCpnt->device->host);
// Pointer to adapter control structure
POUR_DEVICE pdev = &padapter->device [SCpnt->device->id];
// Pointer to device information
UCHAR rc;
// command return code
SCpnt->scsi_done = done; SCpnt->scsi_done = done;
padapter->ide.ide.ides.spigot = pdev->spigot; padapter->ide.ide.ides.spigot = pdev->spigot;
......
...@@ -309,7 +309,7 @@ typedef struct _IDENTIFY_DATA2 { ...@@ -309,7 +309,7 @@ typedef struct _IDENTIFY_DATA2 {
#endif // PSI_EIDE_SCSIOP #endif // PSI_EIDE_SCSIOP
// function prototypes // function prototypes
int Psi240i_Command (Scsi_Cmnd *SCpnt); int Psi240i_Command(struct scsi_cmnd *SCpnt);
int Psi240i_Abort (Scsi_Cmnd *SCpnt); int Psi240i_Abort(struct scsi_cmnd *SCpnt);
int Psi240i_Reset (Scsi_Cmnd *SCpnt, unsigned int flags); int Psi240i_Reset(struct scsi_cmnd *SCpnt, unsigned int flags);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册