diff options
Diffstat (limited to 'drivers/scsi/wd33c93.c')
-rw-r--r-- | drivers/scsi/wd33c93.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/scsi/wd33c93.c b/drivers/scsi/wd33c93.c index b92ff047af38..0e8e642fd3b0 100644 --- a/drivers/scsi/wd33c93.c +++ b/drivers/scsi/wd33c93.c | |||
@@ -381,7 +381,7 @@ wd33c93_queuecommand(struct scsi_cmnd *cmd, | |||
381 | hostdata = (struct WD33C93_hostdata *) cmd->device->host->hostdata; | 381 | hostdata = (struct WD33C93_hostdata *) cmd->device->host->hostdata; |
382 | 382 | ||
383 | DB(DB_QUEUE_COMMAND, | 383 | DB(DB_QUEUE_COMMAND, |
384 | printk("Q-%d-%02x-%ld( ", cmd->device->id, cmd->cmnd[0], cmd->pid)) | 384 | printk("Q-%d-%02x-%ld( ", cmd->device->id, cmd->cmnd[0], cmd->serial_number)) |
385 | 385 | ||
386 | /* Set up a few fields in the scsi_cmnd structure for our own use: | 386 | /* Set up a few fields in the scsi_cmnd structure for our own use: |
387 | * - host_scribble is the pointer to the next cmd in the input queue | 387 | * - host_scribble is the pointer to the next cmd in the input queue |
@@ -463,7 +463,7 @@ wd33c93_queuecommand(struct scsi_cmnd *cmd, | |||
463 | 463 | ||
464 | wd33c93_execute(cmd->device->host); | 464 | wd33c93_execute(cmd->device->host); |
465 | 465 | ||
466 | DB(DB_QUEUE_COMMAND, printk(")Q-%ld ", cmd->pid)) | 466 | DB(DB_QUEUE_COMMAND, printk(")Q-%ld ", cmd->serial_number)) |
467 | 467 | ||
468 | spin_unlock_irq(&hostdata->lock); | 468 | spin_unlock_irq(&hostdata->lock); |
469 | return 0; | 469 | return 0; |
@@ -686,7 +686,7 @@ wd33c93_execute(struct Scsi_Host *instance) | |||
686 | */ | 686 | */ |
687 | 687 | ||
688 | DB(DB_EXECUTE, | 688 | DB(DB_EXECUTE, |
689 | printk("%s%ld)EX-2 ", (cmd->SCp.phase) ? "d:" : "", cmd->pid)) | 689 | printk("%s%ld)EX-2 ", (cmd->SCp.phase) ? "d:" : "", cmd->serial_number)) |
690 | } | 690 | } |
691 | 691 | ||
692 | static void | 692 | static void |
@@ -963,7 +963,7 @@ wd33c93_intr(struct Scsi_Host *instance) | |||
963 | case CSR_XFER_DONE | PHS_COMMAND: | 963 | case CSR_XFER_DONE | PHS_COMMAND: |
964 | case CSR_UNEXP | PHS_COMMAND: | 964 | case CSR_UNEXP | PHS_COMMAND: |
965 | case CSR_SRV_REQ | PHS_COMMAND: | 965 | case CSR_SRV_REQ | PHS_COMMAND: |
966 | DB(DB_INTR, printk("CMND-%02x,%ld", cmd->cmnd[0], cmd->pid)) | 966 | DB(DB_INTR, printk("CMND-%02x,%ld", cmd->cmnd[0], cmd->serial_number)) |
967 | transfer_pio(regs, cmd->cmnd, cmd->cmd_len, DATA_OUT_DIR, | 967 | transfer_pio(regs, cmd->cmnd, cmd->cmd_len, DATA_OUT_DIR, |
968 | hostdata); | 968 | hostdata); |
969 | hostdata->state = S_CONNECTED; | 969 | hostdata->state = S_CONNECTED; |
@@ -1007,7 +1007,7 @@ wd33c93_intr(struct Scsi_Host *instance) | |||
1007 | switch (msg) { | 1007 | switch (msg) { |
1008 | 1008 | ||
1009 | case COMMAND_COMPLETE: | 1009 | case COMMAND_COMPLETE: |
1010 | DB(DB_INTR, printk("CCMP-%ld", cmd->pid)) | 1010 | DB(DB_INTR, printk("CCMP-%ld", cmd->serial_number)) |
1011 | write_wd33c93_cmd(regs, WD_CMD_NEGATE_ACK); | 1011 | write_wd33c93_cmd(regs, WD_CMD_NEGATE_ACK); |
1012 | hostdata->state = S_PRE_CMP_DISC; | 1012 | hostdata->state = S_PRE_CMP_DISC; |
1013 | break; | 1013 | break; |
@@ -1174,7 +1174,7 @@ wd33c93_intr(struct Scsi_Host *instance) | |||
1174 | 1174 | ||
1175 | write_wd33c93(regs, WD_SOURCE_ID, SRCID_ER); | 1175 | write_wd33c93(regs, WD_SOURCE_ID, SRCID_ER); |
1176 | if (phs == 0x60) { | 1176 | if (phs == 0x60) { |
1177 | DB(DB_INTR, printk("SX-DONE-%ld", cmd->pid)) | 1177 | DB(DB_INTR, printk("SX-DONE-%ld", cmd->serial_number)) |
1178 | cmd->SCp.Message = COMMAND_COMPLETE; | 1178 | cmd->SCp.Message = COMMAND_COMPLETE; |
1179 | lun = read_wd33c93(regs, WD_TARGET_LUN); | 1179 | lun = read_wd33c93(regs, WD_TARGET_LUN); |
1180 | DB(DB_INTR, printk(":%d.%d", cmd->SCp.Status, lun)) | 1180 | DB(DB_INTR, printk(":%d.%d", cmd->SCp.Status, lun)) |
@@ -1201,7 +1201,7 @@ wd33c93_intr(struct Scsi_Host *instance) | |||
1201 | } else { | 1201 | } else { |
1202 | printk | 1202 | printk |
1203 | ("%02x:%02x:%02x-%ld: Unknown SEL_XFER_DONE phase!!---", | 1203 | ("%02x:%02x:%02x-%ld: Unknown SEL_XFER_DONE phase!!---", |
1204 | asr, sr, phs, cmd->pid); | 1204 | asr, sr, phs, cmd->serial_number); |
1205 | spin_unlock_irqrestore(&hostdata->lock, flags); | 1205 | spin_unlock_irqrestore(&hostdata->lock, flags); |
1206 | } | 1206 | } |
1207 | break; | 1207 | break; |
@@ -1266,7 +1266,7 @@ wd33c93_intr(struct Scsi_Host *instance) | |||
1266 | spin_unlock_irqrestore(&hostdata->lock, flags); | 1266 | spin_unlock_irqrestore(&hostdata->lock, flags); |
1267 | return; | 1267 | return; |
1268 | } | 1268 | } |
1269 | DB(DB_INTR, printk("UNEXP_DISC-%ld", cmd->pid)) | 1269 | DB(DB_INTR, printk("UNEXP_DISC-%ld", cmd->serial_number)) |
1270 | hostdata->connected = NULL; | 1270 | hostdata->connected = NULL; |
1271 | hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); | 1271 | hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); |
1272 | hostdata->state = S_UNCONNECTED; | 1272 | hostdata->state = S_UNCONNECTED; |
@@ -1292,7 +1292,7 @@ wd33c93_intr(struct Scsi_Host *instance) | |||
1292 | */ | 1292 | */ |
1293 | 1293 | ||
1294 | write_wd33c93(regs, WD_SOURCE_ID, SRCID_ER); | 1294 | write_wd33c93(regs, WD_SOURCE_ID, SRCID_ER); |
1295 | DB(DB_INTR, printk("DISC-%ld", cmd->pid)) | 1295 | DB(DB_INTR, printk("DISC-%ld", cmd->serial_number)) |
1296 | if (cmd == NULL) { | 1296 | if (cmd == NULL) { |
1297 | printk(" - Already disconnected! "); | 1297 | printk(" - Already disconnected! "); |
1298 | hostdata->state = S_UNCONNECTED; | 1298 | hostdata->state = S_UNCONNECTED; |
@@ -1491,7 +1491,7 @@ wd33c93_intr(struct Scsi_Host *instance) | |||
1491 | } else | 1491 | } else |
1492 | hostdata->state = S_CONNECTED; | 1492 | hostdata->state = S_CONNECTED; |
1493 | 1493 | ||
1494 | DB(DB_INTR, printk("-%ld", cmd->pid)) | 1494 | DB(DB_INTR, printk("-%ld", cmd->serial_number)) |
1495 | spin_unlock_irqrestore(&hostdata->lock, flags); | 1495 | spin_unlock_irqrestore(&hostdata->lock, flags); |
1496 | break; | 1496 | break; |
1497 | 1497 | ||
@@ -1638,7 +1638,7 @@ wd33c93_abort(struct scsi_cmnd * cmd) | |||
1638 | cmd->result = DID_ABORT << 16; | 1638 | cmd->result = DID_ABORT << 16; |
1639 | printk | 1639 | printk |
1640 | ("scsi%d: Abort - removing command %ld from input_Q. ", | 1640 | ("scsi%d: Abort - removing command %ld from input_Q. ", |
1641 | instance->host_no, cmd->pid); | 1641 | instance->host_no, cmd->serial_number); |
1642 | enable_irq(cmd->device->host->irq); | 1642 | enable_irq(cmd->device->host->irq); |
1643 | cmd->scsi_done(cmd); | 1643 | cmd->scsi_done(cmd); |
1644 | return SUCCESS; | 1644 | return SUCCESS; |
@@ -1663,7 +1663,7 @@ wd33c93_abort(struct scsi_cmnd * cmd) | |||
1663 | unsigned long timeout; | 1663 | unsigned long timeout; |
1664 | 1664 | ||
1665 | printk("scsi%d: Aborting connected command %ld - ", | 1665 | printk("scsi%d: Aborting connected command %ld - ", |
1666 | instance->host_no, cmd->pid); | 1666 | instance->host_no, cmd->serial_number); |
1667 | 1667 | ||
1668 | printk("stopping DMA - "); | 1668 | printk("stopping DMA - "); |
1669 | if (hostdata->dma == D_DMA_RUNNING) { | 1669 | if (hostdata->dma == D_DMA_RUNNING) { |
@@ -1730,7 +1730,7 @@ wd33c93_abort(struct scsi_cmnd * cmd) | |||
1730 | if (tmp == cmd) { | 1730 | if (tmp == cmd) { |
1731 | printk | 1731 | printk |
1732 | ("scsi%d: Abort - command %ld found on disconnected_Q - ", | 1732 | ("scsi%d: Abort - command %ld found on disconnected_Q - ", |
1733 | instance->host_no, cmd->pid); | 1733 | instance->host_no, cmd->serial_number); |
1734 | printk("Abort SNOOZE. "); | 1734 | printk("Abort SNOOZE. "); |
1735 | enable_irq(cmd->device->host->irq); | 1735 | enable_irq(cmd->device->host->irq); |
1736 | return FAILED; | 1736 | return FAILED; |
@@ -2184,7 +2184,7 @@ wd33c93_proc_info(struct Scsi_Host *instance, char *buf, char **start, off_t off | |||
2184 | if (hd->connected) { | 2184 | if (hd->connected) { |
2185 | cmd = (struct scsi_cmnd *) hd->connected; | 2185 | cmd = (struct scsi_cmnd *) hd->connected; |
2186 | sprintf(tbuf, " %ld-%d:%d(%02x)", | 2186 | sprintf(tbuf, " %ld-%d:%d(%02x)", |
2187 | cmd->pid, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); | 2187 | cmd->serial_number, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); |
2188 | strcat(bp, tbuf); | 2188 | strcat(bp, tbuf); |
2189 | } | 2189 | } |
2190 | } | 2190 | } |
@@ -2193,7 +2193,7 @@ wd33c93_proc_info(struct Scsi_Host *instance, char *buf, char **start, off_t off | |||
2193 | cmd = (struct scsi_cmnd *) hd->input_Q; | 2193 | cmd = (struct scsi_cmnd *) hd->input_Q; |
2194 | while (cmd) { | 2194 | while (cmd) { |
2195 | sprintf(tbuf, " %ld-%d:%d(%02x)", | 2195 | sprintf(tbuf, " %ld-%d:%d(%02x)", |
2196 | cmd->pid, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); | 2196 | cmd->serial_number, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); |
2197 | strcat(bp, tbuf); | 2197 | strcat(bp, tbuf); |
2198 | cmd = (struct scsi_cmnd *) cmd->host_scribble; | 2198 | cmd = (struct scsi_cmnd *) cmd->host_scribble; |
2199 | } | 2199 | } |
@@ -2203,7 +2203,7 @@ wd33c93_proc_info(struct Scsi_Host *instance, char *buf, char **start, off_t off | |||
2203 | cmd = (struct scsi_cmnd *) hd->disconnected_Q; | 2203 | cmd = (struct scsi_cmnd *) hd->disconnected_Q; |
2204 | while (cmd) { | 2204 | while (cmd) { |
2205 | sprintf(tbuf, " %ld-%d:%d(%02x)", | 2205 | sprintf(tbuf, " %ld-%d:%d(%02x)", |
2206 | cmd->pid, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); | 2206 | cmd->serial_number, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); |
2207 | strcat(bp, tbuf); | 2207 | strcat(bp, tbuf); |
2208 | cmd = (struct scsi_cmnd *) cmd->host_scribble; | 2208 | cmd = (struct scsi_cmnd *) cmd->host_scribble; |
2209 | } | 2209 | } |