aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2014-03-17 20:42:18 -0400
committerChristoph Hellwig <hch@lst.de>2014-05-28 06:05:37 -0400
commit52a6a1cbd9615d2df59bdf8e77da90371e6a9a84 (patch)
tree0b555b15394c82b396955a961dec1851e6d5b5c4
parent4dde8f7d7759c5fa9c5b64ff6af3eff7b4d3b315 (diff)
scsi/NCR5380: fix dprintk macro usage and definition
There are three implementations of the core NCR5380 driver and three sets of debugging macro definitions. And all three implementations use the NCR5380.h header as well. Two of the definitions of the dprintk macro accept a variable argument list whereas the third does not. Standardize on the variable argument list. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Acked-by: Sam Creasey <sammy@sammy.net> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/scsi/NCR5380.c126
-rw-r--r--drivers/scsi/NCR5380.h6
2 files changed, 66 insertions, 66 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
index 2e87143091c5..d8c2f40c4f33 100644
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -1003,7 +1003,7 @@ static int NCR5380_queue_command_lck(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)
1003 LIST(cmd, tmp); 1003 LIST(cmd, tmp);
1004 tmp->host_scribble = (unsigned char *) cmd; 1004 tmp->host_scribble = (unsigned char *) cmd;
1005 } 1005 }
1006 dprintk(NDEBUG_QUEUES, ("scsi%d : command added to %s of queue\n", instance->host_no, (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail")); 1006 dprintk(NDEBUG_QUEUES, "scsi%d : command added to %s of queue\n", instance->host_no, (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail");
1007 1007
1008 /* Run the coroutine if it isn't already running. */ 1008 /* Run the coroutine if it isn't already running. */
1009 /* Kick off command processing */ 1009 /* Kick off command processing */
@@ -1038,7 +1038,7 @@ static void NCR5380_main(struct work_struct *work)
1038 /* Lock held here */ 1038 /* Lock held here */
1039 done = 1; 1039 done = 1;
1040 if (!hostdata->connected && !hostdata->selecting) { 1040 if (!hostdata->connected && !hostdata->selecting) {
1041 dprintk(NDEBUG_MAIN, ("scsi%d : not connected\n", instance->host_no)); 1041 dprintk(NDEBUG_MAIN, "scsi%d : not connected\n", instance->host_no);
1042 /* 1042 /*
1043 * Search through the issue_queue for a command destined 1043 * Search through the issue_queue for a command destined
1044 * for a target that's not busy. 1044 * for a target that's not busy.
@@ -1046,7 +1046,7 @@ static void NCR5380_main(struct work_struct *work)
1046 for (tmp = (Scsi_Cmnd *) hostdata->issue_queue, prev = NULL; tmp; prev = tmp, tmp = (Scsi_Cmnd *) tmp->host_scribble) 1046 for (tmp = (Scsi_Cmnd *) hostdata->issue_queue, prev = NULL; tmp; prev = tmp, tmp = (Scsi_Cmnd *) tmp->host_scribble)
1047 { 1047 {
1048 if (prev != tmp) 1048 if (prev != tmp)
1049 dprintk(NDEBUG_LISTS, ("MAIN tmp=%p target=%d busy=%d lun=%d\n", tmp, tmp->device->id, hostdata->busy[tmp->device->id], tmp->device->lun)); 1049 dprintk(NDEBUG_LISTS, "MAIN tmp=%p target=%d busy=%d lun=%d\n", tmp, tmp->device->id, hostdata->busy[tmp->device->id], tmp->device->lun);
1050 /* When we find one, remove it from the issue queue. */ 1050 /* When we find one, remove it from the issue queue. */
1051 if (!(hostdata->busy[tmp->device->id] & (1 << tmp->device->lun))) { 1051 if (!(hostdata->busy[tmp->device->id] & (1 << tmp->device->lun))) {
1052 if (prev) { 1052 if (prev) {
@@ -1064,7 +1064,7 @@ static void NCR5380_main(struct work_struct *work)
1064 * On failure, we must add the command back to the 1064 * On failure, we must add the command back to the
1065 * issue queue so we can keep trying. 1065 * issue queue so we can keep trying.
1066 */ 1066 */
1067 dprintk(NDEBUG_MAIN|NDEBUG_QUEUES, ("scsi%d : main() : command for target %d lun %d removed from issue_queue\n", instance->host_no, tmp->device->id, tmp->device->lun)); 1067 dprintk(NDEBUG_MAIN|NDEBUG_QUEUES, "scsi%d : main() : command for target %d lun %d removed from issue_queue\n", instance->host_no, tmp->device->id, tmp->device->lun);
1068 1068
1069 /* 1069 /*
1070 * A successful selection is defined as one that 1070 * A successful selection is defined as one that
@@ -1093,7 +1093,7 @@ static void NCR5380_main(struct work_struct *work)
1093 tmp->host_scribble = (unsigned char *) hostdata->issue_queue; 1093 tmp->host_scribble = (unsigned char *) hostdata->issue_queue;
1094 hostdata->issue_queue = tmp; 1094 hostdata->issue_queue = tmp;
1095 done = 0; 1095 done = 0;
1096 dprintk(NDEBUG_MAIN|NDEBUG_QUEUES, ("scsi%d : main(): select() failed, returned to issue_queue\n", instance->host_no)); 1096 dprintk(NDEBUG_MAIN|NDEBUG_QUEUES, "scsi%d : main(): select() failed, returned to issue_queue\n", instance->host_no);
1097 } 1097 }
1098 /* lock held here still */ 1098 /* lock held here still */
1099 } /* if target/lun is not busy */ 1099 } /* if target/lun is not busy */
@@ -1123,9 +1123,9 @@ static void NCR5380_main(struct work_struct *work)
1123#endif 1123#endif
1124 && (!hostdata->time_expires || time_before_eq(hostdata->time_expires, jiffies)) 1124 && (!hostdata->time_expires || time_before_eq(hostdata->time_expires, jiffies))
1125 ) { 1125 ) {
1126 dprintk(NDEBUG_MAIN, ("scsi%d : main() : performing information transfer\n", instance->host_no)); 1126 dprintk(NDEBUG_MAIN, "scsi%d : main() : performing information transfer\n", instance->host_no);
1127 NCR5380_information_transfer(instance); 1127 NCR5380_information_transfer(instance);
1128 dprintk(NDEBUG_MAIN, ("scsi%d : main() : done set false\n", instance->host_no)); 1128 dprintk(NDEBUG_MAIN, "scsi%d : main() : done set false\n", instance->host_no);
1129 done = 0; 1129 done = 0;
1130 } else 1130 } else
1131 break; 1131 break;
@@ -1157,8 +1157,8 @@ static irqreturn_t NCR5380_intr(int dummy, void *dev_id)
1157 unsigned char basr; 1157 unsigned char basr;
1158 unsigned long flags; 1158 unsigned long flags;
1159 1159
1160 dprintk(NDEBUG_INTR, ("scsi : NCR5380 irq %d triggered\n", 1160 dprintk(NDEBUG_INTR, "scsi : NCR5380 irq %d triggered\n",
1161 instance->irq)); 1161 instance->irq);
1162 1162
1163 do { 1163 do {
1164 done = 1; 1164 done = 1;
@@ -1171,14 +1171,14 @@ static irqreturn_t NCR5380_intr(int dummy, void *dev_id)
1171 NCR5380_dprint(NDEBUG_INTR, instance); 1171 NCR5380_dprint(NDEBUG_INTR, instance);
1172 if ((NCR5380_read(STATUS_REG) & (SR_SEL | SR_IO)) == (SR_SEL | SR_IO)) { 1172 if ((NCR5380_read(STATUS_REG) & (SR_SEL | SR_IO)) == (SR_SEL | SR_IO)) {
1173 done = 0; 1173 done = 0;
1174 dprintk(NDEBUG_INTR, ("scsi%d : SEL interrupt\n", instance->host_no)); 1174 dprintk(NDEBUG_INTR, "scsi%d : SEL interrupt\n", instance->host_no);
1175 NCR5380_reselect(instance); 1175 NCR5380_reselect(instance);
1176 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG); 1176 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG);
1177 } else if (basr & BASR_PARITY_ERROR) { 1177 } else if (basr & BASR_PARITY_ERROR) {
1178 dprintk(NDEBUG_INTR, ("scsi%d : PARITY interrupt\n", instance->host_no)); 1178 dprintk(NDEBUG_INTR, "scsi%d : PARITY interrupt\n", instance->host_no);
1179 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG); 1179 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG);
1180 } else if ((NCR5380_read(STATUS_REG) & SR_RST) == SR_RST) { 1180 } else if ((NCR5380_read(STATUS_REG) & SR_RST) == SR_RST) {
1181 dprintk(NDEBUG_INTR, ("scsi%d : RESET interrupt\n", instance->host_no)); 1181 dprintk(NDEBUG_INTR, "scsi%d : RESET interrupt\n", instance->host_no);
1182 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG); 1182 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG);
1183 } else { 1183 } else {
1184#if defined(REAL_DMA) 1184#if defined(REAL_DMA)
@@ -1208,7 +1208,7 @@ static irqreturn_t NCR5380_intr(int dummy, void *dev_id)
1208 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); 1208 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
1209 } 1209 }
1210#else 1210#else
1211 dprintk(NDEBUG_INTR, ("scsi : unknown interrupt, BASR 0x%X, MR 0x%X, SR 0x%x\n", basr, NCR5380_read(MODE_REG), NCR5380_read(STATUS_REG))); 1211 dprintk(NDEBUG_INTR, "scsi : unknown interrupt, BASR 0x%X, MR 0x%X, SR 0x%x\n", basr, NCR5380_read(MODE_REG), NCR5380_read(STATUS_REG));
1212 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG); 1212 (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG);
1213#endif 1213#endif
1214 } 1214 }
@@ -1302,7 +1302,7 @@ static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag)
1302 hostdata->restart_select = 0; 1302 hostdata->restart_select = 0;
1303 1303
1304 NCR5380_dprint(NDEBUG_ARBITRATION, instance); 1304 NCR5380_dprint(NDEBUG_ARBITRATION, instance);
1305 dprintk(NDEBUG_ARBITRATION, ("scsi%d : starting arbitration, id = %d\n", instance->host_no, instance->this_id)); 1305 dprintk(NDEBUG_ARBITRATION, "scsi%d : starting arbitration, id = %d\n", instance->host_no, instance->this_id);
1306 1306
1307 /* 1307 /*
1308 * Set the phase bits to 0, otherwise the NCR5380 won't drive the 1308 * Set the phase bits to 0, otherwise the NCR5380 won't drive the
@@ -1331,7 +1331,7 @@ static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag)
1331 goto failed; 1331 goto failed;
1332 } 1332 }
1333 1333
1334 dprintk(NDEBUG_ARBITRATION, ("scsi%d : arbitration complete\n", instance->host_no)); 1334 dprintk(NDEBUG_ARBITRATION, "scsi%d : arbitration complete\n", instance->host_no);
1335 1335
1336 /* 1336 /*
1337 * The arbitration delay is 2.2us, but this is a minimum and there is 1337 * The arbitration delay is 2.2us, but this is a minimum and there is
@@ -1345,7 +1345,7 @@ static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag)
1345 /* Check for lost arbitration */ 1345 /* Check for lost arbitration */
1346 if ((NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST) || (NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_higher_mask) || (NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST)) { 1346 if ((NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST) || (NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_higher_mask) || (NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST)) {
1347 NCR5380_write(MODE_REG, MR_BASE); 1347 NCR5380_write(MODE_REG, MR_BASE);
1348 dprintk(NDEBUG_ARBITRATION, ("scsi%d : lost arbitration, deasserting MR_ARBITRATE\n", instance->host_no)); 1348 dprintk(NDEBUG_ARBITRATION, "scsi%d : lost arbitration, deasserting MR_ARBITRATE\n", instance->host_no);
1349 goto failed; 1349 goto failed;
1350 } 1350 }
1351 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE | ICR_ASSERT_SEL); 1351 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE | ICR_ASSERT_SEL);
@@ -1358,7 +1358,7 @@ static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag)
1358 (NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST)) { 1358 (NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST)) {
1359 NCR5380_write(MODE_REG, MR_BASE); 1359 NCR5380_write(MODE_REG, MR_BASE);
1360 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); 1360 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
1361 dprintk(NDEBUG_ARBITRATION, ("scsi%d : lost arbitration, deasserting ICR_ASSERT_SEL\n", instance->host_no)); 1361 dprintk(NDEBUG_ARBITRATION, "scsi%d : lost arbitration, deasserting ICR_ASSERT_SEL\n", instance->host_no);
1362 goto failed; 1362 goto failed;
1363 } 1363 }
1364 /* 1364 /*
@@ -1368,7 +1368,7 @@ static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag)
1368 1368
1369 udelay(2); 1369 udelay(2);
1370 1370
1371 dprintk(NDEBUG_ARBITRATION, ("scsi%d : won arbitration\n", instance->host_no)); 1371 dprintk(NDEBUG_ARBITRATION, "scsi%d : won arbitration\n", instance->host_no);
1372 1372
1373 /* 1373 /*
1374 * Now that we have won arbitration, start Selection process, asserting 1374 * Now that we have won arbitration, start Selection process, asserting
@@ -1420,7 +1420,7 @@ static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag)
1420 1420
1421 udelay(1); 1421 udelay(1);
1422 1422
1423 dprintk(NDEBUG_SELECTION, ("scsi%d : selecting target %d\n", instance->host_no, scmd_id(cmd))); 1423 dprintk(NDEBUG_SELECTION, "scsi%d : selecting target %d\n", instance->host_no, scmd_id(cmd));
1424 1424
1425 /* 1425 /*
1426 * The SCSI specification calls for a 250 ms timeout for the actual 1426 * The SCSI specification calls for a 250 ms timeout for the actual
@@ -1485,7 +1485,7 @@ part2:
1485 collect_stats(hostdata, cmd); 1485 collect_stats(hostdata, cmd);
1486 cmd->scsi_done(cmd); 1486 cmd->scsi_done(cmd);
1487 NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); 1487 NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask);
1488 dprintk(NDEBUG_SELECTION, ("scsi%d : target did not respond within 250ms\n", instance->host_no)); 1488 dprintk(NDEBUG_SELECTION, "scsi%d : target did not respond within 250ms\n", instance->host_no);
1489 NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask); 1489 NCR5380_write(SELECT_ENABLE_REG, hostdata->id_mask);
1490 return 0; 1490 return 0;
1491 } 1491 }
@@ -1518,7 +1518,7 @@ part2:
1518 goto failed; 1518 goto failed;
1519 } 1519 }
1520 1520
1521 dprintk(NDEBUG_SELECTION, ("scsi%d : target %d selected, going into MESSAGE OUT phase.\n", instance->host_no, cmd->device->id)); 1521 dprintk(NDEBUG_SELECTION, "scsi%d : target %d selected, going into MESSAGE OUT phase.\n", instance->host_no, cmd->device->id);
1522 tmp[0] = IDENTIFY(((instance->irq == SCSI_IRQ_NONE) ? 0 : 1), cmd->device->lun); 1522 tmp[0] = IDENTIFY(((instance->irq == SCSI_IRQ_NONE) ? 0 : 1), cmd->device->lun);
1523 1523
1524 len = 1; 1524 len = 1;
@@ -1528,7 +1528,7 @@ part2:
1528 data = tmp; 1528 data = tmp;
1529 phase = PHASE_MSGOUT; 1529 phase = PHASE_MSGOUT;
1530 NCR5380_transfer_pio(instance, &phase, &len, &data); 1530 NCR5380_transfer_pio(instance, &phase, &len, &data);
1531 dprintk(NDEBUG_SELECTION, ("scsi%d : nexus established.\n", instance->host_no)); 1531 dprintk(NDEBUG_SELECTION, "scsi%d : nexus established.\n", instance->host_no);
1532 /* XXX need to handle errors here */ 1532 /* XXX need to handle errors here */
1533 hostdata->connected = cmd; 1533 hostdata->connected = cmd;
1534 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun); 1534 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun);
@@ -1581,9 +1581,9 @@ static int NCR5380_transfer_pio(struct Scsi_Host *instance, unsigned char *phase
1581 NCR5380_setup(instance); 1581 NCR5380_setup(instance);
1582 1582
1583 if (!(p & SR_IO)) 1583 if (!(p & SR_IO))
1584 dprintk(NDEBUG_PIO, ("scsi%d : pio write %d bytes\n", instance->host_no, c)); 1584 dprintk(NDEBUG_PIO, "scsi%d : pio write %d bytes\n", instance->host_no, c);
1585 else 1585 else
1586 dprintk(NDEBUG_PIO, ("scsi%d : pio read %d bytes\n", instance->host_no, c)); 1586 dprintk(NDEBUG_PIO, "scsi%d : pio read %d bytes\n", instance->host_no, c);
1587 1587
1588 /* 1588 /*
1589 * The NCR5380 chip will only drive the SCSI bus when the 1589 * The NCR5380 chip will only drive the SCSI bus when the
@@ -1618,11 +1618,11 @@ static int NCR5380_transfer_pio(struct Scsi_Host *instance, unsigned char *phase
1618 break; 1618 break;
1619 } 1619 }
1620 1620
1621 dprintk(NDEBUG_HANDSHAKE, ("scsi%d : REQ detected\n", instance->host_no)); 1621 dprintk(NDEBUG_HANDSHAKE, "scsi%d : REQ detected\n", instance->host_no);
1622 1622
1623 /* Check for phase mismatch */ 1623 /* Check for phase mismatch */
1624 if ((tmp & PHASE_MASK) != p) { 1624 if ((tmp & PHASE_MASK) != p) {
1625 dprintk(NDEBUG_HANDSHAKE, ("scsi%d : phase mismatch\n", instance->host_no)); 1625 dprintk(NDEBUG_HANDSHAKE, "scsi%d : phase mismatch\n", instance->host_no);
1626 NCR5380_dprint_phase(NDEBUG_HANDSHAKE, instance); 1626 NCR5380_dprint_phase(NDEBUG_HANDSHAKE, instance);
1627 break; 1627 break;
1628 } 1628 }
@@ -1658,7 +1658,7 @@ static int NCR5380_transfer_pio(struct Scsi_Host *instance, unsigned char *phase
1658 1658
1659 /* FIXME - if this fails bus reset ?? */ 1659 /* FIXME - if this fails bus reset ?? */
1660 NCR5380_poll_politely(instance, STATUS_REG, SR_REQ, 0, 5*HZ); 1660 NCR5380_poll_politely(instance, STATUS_REG, SR_REQ, 0, 5*HZ);
1661 dprintk(NDEBUG_HANDSHAKE, ("scsi%d : req false, handshake complete\n", instance->host_no)); 1661 dprintk(NDEBUG_HANDSHAKE, "scsi%d : req false, handshake complete\n", instance->host_no);
1662 1662
1663/* 1663/*
1664 * We have several special cases to consider during REQ/ACK handshaking : 1664 * We have several special cases to consider during REQ/ACK handshaking :
@@ -1679,7 +1679,7 @@ static int NCR5380_transfer_pio(struct Scsi_Host *instance, unsigned char *phase
1679 } 1679 }
1680 } while (--c); 1680 } while (--c);
1681 1681
1682 dprintk(NDEBUG_PIO, ("scsi%d : residual %d\n", instance->host_no, c)); 1682 dprintk(NDEBUG_PIO, "scsi%d : residual %d\n", instance->host_no, c);
1683 1683
1684 *count = c; 1684 *count = c;
1685 *data = d; 1685 *data = d;
@@ -1826,7 +1826,7 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
1826 c -= 2; 1826 c -= 2;
1827 } 1827 }
1828#endif 1828#endif
1829 dprintk(NDEBUG_DMA, ("scsi%d : initializing DMA channel %d for %s, %d bytes %s %0x\n", instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d)); 1829 dprintk(NDEBUG_DMA, "scsi%d : initializing DMA channel %d for %s, %d bytes %s %0x\n", instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : "writing", c, (p & SR_IO) ? "to" : "from", (unsigned) d);
1830 hostdata->dma_len = (p & SR_IO) ? NCR5380_dma_read_setup(instance, d, c) : NCR5380_dma_write_setup(instance, d, c); 1830 hostdata->dma_len = (p & SR_IO) ? NCR5380_dma_read_setup(instance, d, c) : NCR5380_dma_write_setup(instance, d, c);
1831#endif 1831#endif
1832 1832
@@ -1855,7 +1855,7 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
1855 NCR5380_write(MODE_REG, MR_BASE | MR_DMA_MODE); 1855 NCR5380_write(MODE_REG, MR_BASE | MR_DMA_MODE);
1856#endif /* def REAL_DMA */ 1856#endif /* def REAL_DMA */
1857 1857
1858 dprintk(NDEBUG_DMA, ("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG))); 1858 dprintk(NDEBUG_DMA, "scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG));
1859 1859
1860 /* 1860 /*
1861 * On the PAS16 at least I/O recovery delays are not needed here. 1861 * On the PAS16 at least I/O recovery delays are not needed here.
@@ -1932,7 +1932,7 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
1932 } 1932 }
1933 } 1933 }
1934 1934
1935 dprintk(NDEBUG_DMA, ("scsi%d : polled DMA transfer complete, basr 0x%X, sr 0x%X\n", instance->host_no, tmp, NCR5380_read(STATUS_REG))); 1935 dprintk(NDEBUG_DMA, "scsi%d : polled DMA transfer complete, basr 0x%X, sr 0x%X\n", instance->host_no, tmp, NCR5380_read(STATUS_REG));
1936 1936
1937 NCR5380_write(MODE_REG, MR_BASE); 1937 NCR5380_write(MODE_REG, MR_BASE);
1938 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); 1938 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
@@ -1946,7 +1946,7 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
1946#ifdef READ_OVERRUNS 1946#ifdef READ_OVERRUNS
1947 if (*phase == p && (p & SR_IO) && residue == 0) { 1947 if (*phase == p && (p & SR_IO) && residue == 0) {
1948 if (overrun) { 1948 if (overrun) {
1949 dprintk(NDEBUG_DMA, ("Got an input overrun, using saved byte\n")); 1949 dprintk(NDEBUG_DMA, "Got an input overrun, using saved byte\n");
1950 **data = saved_data; 1950 **data = saved_data;
1951 *data += 1; 1951 *data += 1;
1952 *count -= 1; 1952 *count -= 1;
@@ -1955,13 +1955,13 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
1955 printk("No overrun??\n"); 1955 printk("No overrun??\n");
1956 cnt = toPIO = 2; 1956 cnt = toPIO = 2;
1957 } 1957 }
1958 dprintk(NDEBUG_DMA, ("Doing %d-byte PIO to 0x%X\n", cnt, *data)); 1958 dprintk(NDEBUG_DMA, "Doing %d-byte PIO to 0x%X\n", cnt, *data);
1959 NCR5380_transfer_pio(instance, phase, &cnt, data); 1959 NCR5380_transfer_pio(instance, phase, &cnt, data);
1960 *count -= toPIO - cnt; 1960 *count -= toPIO - cnt;
1961 } 1961 }
1962#endif 1962#endif
1963 1963
1964 dprintk(NDEBUG_DMA, ("Return with data ptr = 0x%X, count %d, last 0x%X, next 0x%X\n", *data, *count, *(*data + *count - 1), *(*data + *count))); 1964 dprintk(NDEBUG_DMA, "Return with data ptr = 0x%X, count %d, last 0x%X, next 0x%X\n", *data, *count, *(*data + *count - 1), *(*data + *count));
1965 return 0; 1965 return 0;
1966 1966
1967#elif defined(REAL_DMA) 1967#elif defined(REAL_DMA)
@@ -2011,7 +2011,7 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
2011 foo = NCR5380_pwrite(instance, d, c); 2011 foo = NCR5380_pwrite(instance, d, c);
2012#else 2012#else
2013 int timeout; 2013 int timeout;
2014 dprintk(NDEBUG_C400_PWRITE, ("About to pwrite %d bytes\n", c)); 2014 dprintk(NDEBUG_C400_PWRITE, "About to pwrite %d bytes\n", c);
2015 if (!(foo = NCR5380_pwrite(instance, d, c))) { 2015 if (!(foo = NCR5380_pwrite(instance, d, c))) {
2016 /* 2016 /*
2017 * Wait for the last byte to be sent. If REQ is being asserted for 2017 * Wait for the last byte to be sent. If REQ is being asserted for
@@ -2022,19 +2022,19 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
2022 while (!(NCR5380_read(BUS_AND_STATUS_REG) & BASR_DRQ) && (NCR5380_read(BUS_AND_STATUS_REG) & BASR_PHASE_MATCH)); 2022 while (!(NCR5380_read(BUS_AND_STATUS_REG) & BASR_DRQ) && (NCR5380_read(BUS_AND_STATUS_REG) & BASR_PHASE_MATCH));
2023 2023
2024 if (!timeout) 2024 if (!timeout)
2025 dprintk(NDEBUG_LAST_BYTE_SENT, ("scsi%d : timed out on last byte\n", instance->host_no)); 2025 dprintk(NDEBUG_LAST_BYTE_SENT, "scsi%d : timed out on last byte\n", instance->host_no);
2026 2026
2027 if (hostdata->flags & FLAG_CHECK_LAST_BYTE_SENT) { 2027 if (hostdata->flags & FLAG_CHECK_LAST_BYTE_SENT) {
2028 hostdata->flags &= ~FLAG_CHECK_LAST_BYTE_SENT; 2028 hostdata->flags &= ~FLAG_CHECK_LAST_BYTE_SENT;
2029 if (NCR5380_read(TARGET_COMMAND_REG) & TCR_LAST_BYTE_SENT) { 2029 if (NCR5380_read(TARGET_COMMAND_REG) & TCR_LAST_BYTE_SENT) {
2030 hostdata->flags |= FLAG_HAS_LAST_BYTE_SENT; 2030 hostdata->flags |= FLAG_HAS_LAST_BYTE_SENT;
2031 dprintk(NDEBUG_LAST_BYTE_SENT, ("scsi%d : last byte sent works\n", instance->host_no)); 2031 dprintk(NDEBUG_LAST_BYTE_SENT, "scsi%d : last byte sent works\n", instance->host_no);
2032 } 2032 }
2033 } 2033 }
2034 } else { 2034 } else {
2035 dprintk(NDEBUG_C400_PWRITE, ("Waiting for LASTBYTE\n")); 2035 dprintk(NDEBUG_C400_PWRITE, "Waiting for LASTBYTE\n");
2036 while (!(NCR5380_read(TARGET_COMMAND_REG) & TCR_LAST_BYTE_SENT)); 2036 while (!(NCR5380_read(TARGET_COMMAND_REG) & TCR_LAST_BYTE_SENT));
2037 dprintk(NDEBUG_C400_PWRITE, ("Got LASTBYTE\n")); 2037 dprintk(NDEBUG_C400_PWRITE, "Got LASTBYTE\n");
2038 } 2038 }
2039 } 2039 }
2040#endif 2040#endif
@@ -2043,9 +2043,9 @@ static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase
2043 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); 2043 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
2044 2044
2045 if ((!(p & SR_IO)) && (hostdata->flags & FLAG_NCR53C400)) { 2045 if ((!(p & SR_IO)) && (hostdata->flags & FLAG_NCR53C400)) {
2046 dprintk(NDEBUG_C400_PWRITE, ("53C400w: Checking for IRQ\n")); 2046 dprintk(NDEBUG_C400_PWRITE, "53C400w: Checking for IRQ\n");
2047 if (NCR5380_read(BUS_AND_STATUS_REG) & BASR_IRQ) { 2047 if (NCR5380_read(BUS_AND_STATUS_REG) & BASR_IRQ) {
2048 dprintk(NDEBUG_C400_PWRITE, ("53C400w: got it, reading reset interrupt reg\n")); 2048 dprintk(NDEBUG_C400_PWRITE, "53C400w: got it, reading reset interrupt reg\n");
2049 NCR5380_read(RESET_PARITY_INTERRUPT_REG); 2049 NCR5380_read(RESET_PARITY_INTERRUPT_REG);
2050 } else { 2050 } else {
2051 printk("53C400w: IRQ NOT THERE!\n"); 2051 printk("53C400w: IRQ NOT THERE!\n");
@@ -2137,7 +2137,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2137 --cmd->SCp.buffers_residual; 2137 --cmd->SCp.buffers_residual;
2138 cmd->SCp.this_residual = cmd->SCp.buffer->length; 2138 cmd->SCp.this_residual = cmd->SCp.buffer->length;
2139 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer); 2139 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer);
2140 dprintk(NDEBUG_INFORMATION, ("scsi%d : %d bytes and %d buffers left\n", instance->host_no, cmd->SCp.this_residual, cmd->SCp.buffers_residual)); 2140 dprintk(NDEBUG_INFORMATION, "scsi%d : %d bytes and %d buffers left\n", instance->host_no, cmd->SCp.this_residual, cmd->SCp.buffers_residual);
2141 } 2141 }
2142 /* 2142 /*
2143 * The preferred transfer method is going to be 2143 * The preferred transfer method is going to be
@@ -2217,7 +2217,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2217 case LINKED_FLG_CMD_COMPLETE: 2217 case LINKED_FLG_CMD_COMPLETE:
2218 /* Accept message by clearing ACK */ 2218 /* Accept message by clearing ACK */
2219 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); 2219 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
2220 dprintk(NDEBUG_LINKED, ("scsi%d : target %d lun %d linked command complete.\n", instance->host_no, cmd->device->id, cmd->device->lun)); 2220 dprintk(NDEBUG_LINKED, "scsi%d : target %d lun %d linked command complete.\n", instance->host_no, cmd->device->id, cmd->device->lun);
2221 /* 2221 /*
2222 * Sanity check : A linked command should only terminate with 2222 * Sanity check : A linked command should only terminate with
2223 * one of these messages if there are more linked commands 2223 * one of these messages if there are more linked commands
@@ -2233,7 +2233,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2233 /* The next command is still part of this process */ 2233 /* The next command is still part of this process */
2234 cmd->next_link->tag = cmd->tag; 2234 cmd->next_link->tag = cmd->tag;
2235 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8); 2235 cmd->result = cmd->SCp.Status | (cmd->SCp.Message << 8);
2236 dprintk(NDEBUG_LINKED, ("scsi%d : target %d lun %d linked request done, calling scsi_done().\n", instance->host_no, cmd->device->id, cmd->device->lun)); 2236 dprintk(NDEBUG_LINKED, "scsi%d : target %d lun %d linked request done, calling scsi_done().\n", instance->host_no, cmd->device->id, cmd->device->lun);
2237 collect_stats(hostdata, cmd); 2237 collect_stats(hostdata, cmd);
2238 cmd->scsi_done(cmd); 2238 cmd->scsi_done(cmd);
2239 cmd = hostdata->connected; 2239 cmd = hostdata->connected;
@@ -2245,7 +2245,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2245 sink = 1; 2245 sink = 1;
2246 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); 2246 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
2247 hostdata->connected = NULL; 2247 hostdata->connected = NULL;
2248 dprintk(NDEBUG_QUEUES, ("scsi%d : command for target %d, lun %d completed\n", instance->host_no, cmd->device->id, cmd->device->lun)); 2248 dprintk(NDEBUG_QUEUES, "scsi%d : command for target %d, lun %d completed\n", instance->host_no, cmd->device->id, cmd->device->lun);
2249 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); 2249 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun);
2250 2250
2251 /* 2251 /*
@@ -2279,13 +2279,13 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2279 if ((cmd->cmnd[0] != REQUEST_SENSE) && (status_byte(cmd->SCp.Status) == CHECK_CONDITION)) { 2279 if ((cmd->cmnd[0] != REQUEST_SENSE) && (status_byte(cmd->SCp.Status) == CHECK_CONDITION)) {
2280 scsi_eh_prep_cmnd(cmd, &hostdata->ses, NULL, 0, ~0); 2280 scsi_eh_prep_cmnd(cmd, &hostdata->ses, NULL, 0, ~0);
2281 2281
2282 dprintk(NDEBUG_AUTOSENSE, ("scsi%d : performing request sense\n", instance->host_no)); 2282 dprintk(NDEBUG_AUTOSENSE, "scsi%d : performing request sense\n", instance->host_no);
2283 2283
2284 LIST(cmd, hostdata->issue_queue); 2284 LIST(cmd, hostdata->issue_queue);
2285 cmd->host_scribble = (unsigned char *) 2285 cmd->host_scribble = (unsigned char *)
2286 hostdata->issue_queue; 2286 hostdata->issue_queue;
2287 hostdata->issue_queue = (Scsi_Cmnd *) cmd; 2287 hostdata->issue_queue = (Scsi_Cmnd *) cmd;
2288 dprintk(NDEBUG_QUEUES, ("scsi%d : REQUEST SENSE added to head of issue queue\n", instance->host_no)); 2288 dprintk(NDEBUG_QUEUES, "scsi%d : REQUEST SENSE added to head of issue queue\n", instance->host_no);
2289 } else 2289 } else
2290#endif /* def AUTOSENSE */ 2290#endif /* def AUTOSENSE */
2291 { 2291 {
@@ -2325,7 +2325,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2325 hostdata->disconnected_queue; 2325 hostdata->disconnected_queue;
2326 hostdata->connected = NULL; 2326 hostdata->connected = NULL;
2327 hostdata->disconnected_queue = cmd; 2327 hostdata->disconnected_queue = cmd;
2328 dprintk(NDEBUG_QUEUES, ("scsi%d : command for target %d lun %d was moved from connected to" " the disconnected_queue\n", instance->host_no, cmd->device->id, cmd->device->lun)); 2328 dprintk(NDEBUG_QUEUES, "scsi%d : command for target %d lun %d was moved from connected to" " the disconnected_queue\n", instance->host_no, cmd->device->id, cmd->device->lun);
2329 /* 2329 /*
2330 * Restore phase bits to 0 so an interrupted selection, 2330 * Restore phase bits to 0 so an interrupted selection,
2331 * arbitration can resume. 2331 * arbitration can resume.
@@ -2371,14 +2371,14 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2371 extended_msg[0] = EXTENDED_MESSAGE; 2371 extended_msg[0] = EXTENDED_MESSAGE;
2372 /* Accept first byte by clearing ACK */ 2372 /* Accept first byte by clearing ACK */
2373 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE); 2373 NCR5380_write(INITIATOR_COMMAND_REG, ICR_BASE);
2374 dprintk(NDEBUG_EXTENDED, ("scsi%d : receiving extended message\n", instance->host_no)); 2374 dprintk(NDEBUG_EXTENDED, "scsi%d : receiving extended message\n", instance->host_no);
2375 2375
2376 len = 2; 2376 len = 2;
2377 data = extended_msg + 1; 2377 data = extended_msg + 1;
2378 phase = PHASE_MSGIN; 2378 phase = PHASE_MSGIN;
2379 NCR5380_transfer_pio(instance, &phase, &len, &data); 2379 NCR5380_transfer_pio(instance, &phase, &len, &data);
2380 2380
2381 dprintk(NDEBUG_EXTENDED, ("scsi%d : length=%d, code=0x%02x\n", instance->host_no, (int) extended_msg[1], (int) extended_msg[2])); 2381 dprintk(NDEBUG_EXTENDED, "scsi%d : length=%d, code=0x%02x\n", instance->host_no, (int) extended_msg[1], (int) extended_msg[2]);
2382 2382
2383 if (!len && extended_msg[1] <= (sizeof(extended_msg) - 1)) { 2383 if (!len && extended_msg[1] <= (sizeof(extended_msg) - 1)) {
2384 /* Accept third byte by clearing ACK */ 2384 /* Accept third byte by clearing ACK */
@@ -2388,7 +2388,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2388 phase = PHASE_MSGIN; 2388 phase = PHASE_MSGIN;
2389 2389
2390 NCR5380_transfer_pio(instance, &phase, &len, &data); 2390 NCR5380_transfer_pio(instance, &phase, &len, &data);
2391 dprintk(NDEBUG_EXTENDED, ("scsi%d : message received, residual %d\n", instance->host_no, len)); 2391 dprintk(NDEBUG_EXTENDED, "scsi%d : message received, residual %d\n", instance->host_no, len);
2392 2392
2393 switch (extended_msg[2]) { 2393 switch (extended_msg[2]) {
2394 case EXTENDED_SDTR: 2394 case EXTENDED_SDTR:
@@ -2454,7 +2454,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2454 NCR5380_transfer_pio(instance, &phase, &len, &data); 2454 NCR5380_transfer_pio(instance, &phase, &len, &data);
2455 if (!cmd->device->disconnect && should_disconnect(cmd->cmnd[0])) { 2455 if (!cmd->device->disconnect && should_disconnect(cmd->cmnd[0])) {
2456 NCR5380_set_timer(hostdata, USLEEP_SLEEP); 2456 NCR5380_set_timer(hostdata, USLEEP_SLEEP);
2457 dprintk(NDEBUG_USLEEP, ("scsi%d : issued command, sleeping until %lu\n", instance->host_no, hostdata->time_expires)); 2457 dprintk(NDEBUG_USLEEP, "scsi%d : issued command, sleeping until %lu\n", instance->host_no, hostdata->time_expires);
2458 return; 2458 return;
2459 } 2459 }
2460 break; 2460 break;
@@ -2474,7 +2474,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
2474 */ 2474 */
2475 if (!cmd->device->disconnect && time_after_eq(jiffies, poll_time)) { 2475 if (!cmd->device->disconnect && time_after_eq(jiffies, poll_time)) {
2476 NCR5380_set_timer(hostdata, USLEEP_SLEEP); 2476 NCR5380_set_timer(hostdata, USLEEP_SLEEP);
2477 dprintk(NDEBUG_USLEEP, ("scsi%d : poll timed out, sleeping until %lu\n", instance->host_no, hostdata->time_expires)); 2477 dprintk(NDEBUG_USLEEP, "scsi%d : poll timed out, sleeping until %lu\n", instance->host_no, hostdata->time_expires);
2478 return; 2478 return;
2479 } 2479 }
2480 } 2480 }
@@ -2515,7 +2515,7 @@ static void NCR5380_reselect(struct Scsi_Host *instance) {
2515 hostdata->restart_select = 1; 2515 hostdata->restart_select = 1;
2516 2516
2517 target_mask = NCR5380_read(CURRENT_SCSI_DATA_REG) & ~(hostdata->id_mask); 2517 target_mask = NCR5380_read(CURRENT_SCSI_DATA_REG) & ~(hostdata->id_mask);
2518 dprintk(NDEBUG_SELECTION, ("scsi%d : reselect\n", instance->host_no)); 2518 dprintk(NDEBUG_SELECTION, "scsi%d : reselect\n", instance->host_no);
2519 2519
2520 /* 2520 /*
2521 * At this point, we have detected that our SCSI ID is on the bus, 2521 * At this point, we have detected that our SCSI ID is on the bus,
@@ -2595,7 +2595,7 @@ static void NCR5380_reselect(struct Scsi_Host *instance) {
2595 do_abort(instance); 2595 do_abort(instance);
2596 } else { 2596 } else {
2597 hostdata->connected = tmp; 2597 hostdata->connected = tmp;
2598 dprintk(NDEBUG_RESELECTION, ("scsi%d : nexus established, target = %d, lun = %d, tag = %d\n", instance->host_no, tmp->device->id, tmp->device->lun, tmp->tag)); 2598 dprintk(NDEBUG_RESELECTION, "scsi%d : nexus established, target = %d, lun = %d, tag = %d\n", instance->host_no, tmp->device->id, tmp->device->lun, tmp->tag);
2599 } 2599 }
2600} 2600}
2601 2601
@@ -2680,8 +2680,8 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) {
2680 2680
2681 NCR5380_setup(instance); 2681 NCR5380_setup(instance);
2682 2682
2683 dprintk(NDEBUG_ABORT, ("scsi%d : abort called\n", instance->host_no)); 2683 dprintk(NDEBUG_ABORT, "scsi%d : abort called\n", instance->host_no);
2684 dprintk(NDEBUG_ABORT, (" basr 0x%X, sr 0x%X\n", NCR5380_read(BUS_AND_STATUS_REG), NCR5380_read(STATUS_REG))); 2684 dprintk(NDEBUG_ABORT, " basr 0x%X, sr 0x%X\n", NCR5380_read(BUS_AND_STATUS_REG), NCR5380_read(STATUS_REG));
2685 2685
2686#if 0 2686#if 0
2687/* 2687/*
@@ -2691,7 +2691,7 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) {
2691 */ 2691 */
2692 2692
2693 if (hostdata->connected == cmd) { 2693 if (hostdata->connected == cmd) {
2694 dprintk(NDEBUG_ABORT, ("scsi%d : aborting connected command\n", instance->host_no)); 2694 dprintk(NDEBUG_ABORT, "scsi%d : aborting connected command\n", instance->host_no);
2695 hostdata->aborted = 1; 2695 hostdata->aborted = 1;
2696/* 2696/*
2697 * We should perform BSY checking, and make sure we haven't slipped 2697 * We should perform BSY checking, and make sure we haven't slipped
@@ -2719,14 +2719,14 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) {
2719 * from the issue queue. 2719 * from the issue queue.
2720 */ 2720 */
2721 2721
2722 dprintk(NDEBUG_ABORT, ("scsi%d : abort going into loop.\n", instance->host_no)); 2722 dprintk(NDEBUG_ABORT, "scsi%d : abort going into loop.\n", instance->host_no);
2723 for (prev = (Scsi_Cmnd **) & (hostdata->issue_queue), tmp = (Scsi_Cmnd *) hostdata->issue_queue; tmp; prev = (Scsi_Cmnd **) & (tmp->host_scribble), tmp = (Scsi_Cmnd *) tmp->host_scribble) 2723 for (prev = (Scsi_Cmnd **) & (hostdata->issue_queue), tmp = (Scsi_Cmnd *) hostdata->issue_queue; tmp; prev = (Scsi_Cmnd **) & (tmp->host_scribble), tmp = (Scsi_Cmnd *) tmp->host_scribble)
2724 if (cmd == tmp) { 2724 if (cmd == tmp) {
2725 REMOVE(5, *prev, tmp, tmp->host_scribble); 2725 REMOVE(5, *prev, tmp, tmp->host_scribble);
2726 (*prev) = (Scsi_Cmnd *) tmp->host_scribble; 2726 (*prev) = (Scsi_Cmnd *) tmp->host_scribble;
2727 tmp->host_scribble = NULL; 2727 tmp->host_scribble = NULL;
2728 tmp->result = DID_ABORT << 16; 2728 tmp->result = DID_ABORT << 16;
2729 dprintk(NDEBUG_ABORT, ("scsi%d : abort removed command from issue queue.\n", instance->host_no)); 2729 dprintk(NDEBUG_ABORT, "scsi%d : abort removed command from issue queue.\n", instance->host_no);
2730 tmp->scsi_done(tmp); 2730 tmp->scsi_done(tmp);
2731 return SUCCESS; 2731 return SUCCESS;
2732 } 2732 }
@@ -2748,7 +2748,7 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) {
2748 */ 2748 */
2749 2749
2750 if (hostdata->connected) { 2750 if (hostdata->connected) {
2751 dprintk(NDEBUG_ABORT, ("scsi%d : abort failed, command connected.\n", instance->host_no)); 2751 dprintk(NDEBUG_ABORT, "scsi%d : abort failed, command connected.\n", instance->host_no);
2752 return FAILED; 2752 return FAILED;
2753 } 2753 }
2754/* 2754/*
@@ -2778,11 +2778,11 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) {
2778 2778
2779 for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; tmp; tmp = (Scsi_Cmnd *) tmp->host_scribble) 2779 for (tmp = (Scsi_Cmnd *) hostdata->disconnected_queue; tmp; tmp = (Scsi_Cmnd *) tmp->host_scribble)
2780 if (cmd == tmp) { 2780 if (cmd == tmp) {
2781 dprintk(NDEBUG_ABORT, ("scsi%d : aborting disconnected command.\n", instance->host_no)); 2781 dprintk(NDEBUG_ABORT, "scsi%d : aborting disconnected command.\n", instance->host_no);
2782 2782
2783 if (NCR5380_select(instance, cmd, (int) cmd->tag)) 2783 if (NCR5380_select(instance, cmd, (int) cmd->tag))
2784 return FAILED; 2784 return FAILED;
2785 dprintk(NDEBUG_ABORT, ("scsi%d : nexus reestablished.\n", instance->host_no)); 2785 dprintk(NDEBUG_ABORT, "scsi%d : nexus reestablished.\n", instance->host_no);
2786 2786
2787 do_abort(instance); 2787 do_abort(instance);
2788 2788
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h
index 74994c001ff8..9cb3d316bbce 100644
--- a/drivers/scsi/NCR5380.h
+++ b/drivers/scsi/NCR5380.h
@@ -288,9 +288,9 @@ struct NCR5380_hostdata {
288 288
289#ifdef __KERNEL__ 289#ifdef __KERNEL__
290 290
291#define dprintk(a,b) do {} while(0) 291#define dprintk(flg, fmt, args...) do {} while (0)
292#define NCR5380_dprint(a,b) do {} while(0) 292#define NCR5380_dprint(flg, arg) do {} while (0)
293#define NCR5380_dprint_phase(a,b) do {} while(0) 293#define NCR5380_dprint_phase(flg, arg) do {} while (0)
294 294
295#if defined(AUTOPROBE_IRQ) 295#if defined(AUTOPROBE_IRQ)
296static int NCR5380_probe_irq(struct Scsi_Host *instance, int possible); 296static int NCR5380_probe_irq(struct Scsi_Host *instance, int possible);