summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pas16.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/pas16.c')
-rw-r--r--drivers/scsi/pas16.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/drivers/scsi/pas16.c b/drivers/scsi/pas16.c
index 1549bc97777e..62bf1b43b646 100644
--- a/drivers/scsi/pas16.c
+++ b/drivers/scsi/pas16.c
@@ -1,6 +1,5 @@
1#define PSEUDO_DMA 1#define PSEUDO_DMA
2#define UNSAFE /* Not unsafe for PAS16 -- use it */ 2#define UNSAFE /* Not unsafe for PAS16 -- use it */
3#define PDEBUG 0
4 3
5/* 4/*
6 * This driver adapted from Drew Eckhardt's Trantor T128 driver 5 * This driver adapted from Drew Eckhardt's Trantor T128 driver
@@ -377,23 +376,18 @@ static int __init pas16_detect(struct scsi_host_template *tpnt)
377 } 376 }
378 else 377 else
379 for (; !io_port && (current_base < NO_BASES); ++current_base) { 378 for (; !io_port && (current_base < NO_BASES); ++current_base) {
380#if (PDEBUG & PDEBUG_INIT) 379 dprintk(NDEBUG_INIT, "pas16: probing io_port 0x%04x\n",
381 printk("scsi-pas16 : probing io_port %04x\n", (unsigned int) bases[current_base].io_port); 380 (unsigned int)bases[current_base].io_port);
382#endif
383 if ( !bases[current_base].noauto && 381 if ( !bases[current_base].noauto &&
384 pas16_hw_detect( current_base ) ){ 382 pas16_hw_detect( current_base ) ){
385 io_port = bases[current_base].io_port; 383 io_port = bases[current_base].io_port;
386 init_board( io_port, default_irqs[ current_base ], 0 ); 384 init_board( io_port, default_irqs[ current_base ], 0 );
387#if (PDEBUG & PDEBUG_INIT) 385 dprintk(NDEBUG_INIT, "pas16: detected board\n");
388 printk("scsi-pas16 : detected board.\n");
389#endif
390 } 386 }
391 } 387 }
392 388
393 389 dprintk(NDEBUG_INIT, "pas16: io_port = 0x%04x\n",
394#if defined(PDEBUG) && (PDEBUG & PDEBUG_INIT) 390 (unsigned int)io_port);
395 printk("scsi-pas16 : io_port = %04x\n", (unsigned int) io_port);
396#endif
397 391
398 if (!io_port) 392 if (!io_port)
399 break; 393 break;
@@ -431,9 +425,8 @@ static int __init pas16_detect(struct scsi_host_template *tpnt)
431 outb( (inb(io_port + IO_CONFIG_3) & 0x0f), io_port + IO_CONFIG_3 ); 425 outb( (inb(io_port + IO_CONFIG_3) & 0x0f), io_port + IO_CONFIG_3 );
432 } 426 }
433 427
434#if defined(PDEBUG) && (PDEBUG & PDEBUG_INIT) 428 dprintk(NDEBUG_INIT, "scsi%d : irq = %d\n",
435 printk("scsi%d : irq = %d\n", instance->host_no, instance->irq); 429 instance->host_no, instance->irq);
436#endif
437 430
438 ++current_override; 431 ++current_override;
439 ++count; 432 ++count;