summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pas16.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/pas16.h')
-rw-r--r--drivers/scsi/pas16.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/scsi/pas16.h b/drivers/scsi/pas16.h
index c6109c80050b..1fc7c049d0a1 100644
--- a/drivers/scsi/pas16.h
+++ b/drivers/scsi/pas16.h
@@ -24,9 +24,6 @@
24#ifndef PAS16_H 24#ifndef PAS16_H
25#define PAS16_H 25#define PAS16_H
26 26
27#define PDEBUG_INIT 0x1
28#define PDEBUG_TRANSFER 0x2
29
30#define PAS16_DEFAULT_BASE_1 0x388 27#define PAS16_DEFAULT_BASE_1 0x388
31#define PAS16_DEFAULT_BASE_2 0x384 28#define PAS16_DEFAULT_BASE_2 0x384
32#define PAS16_DEFAULT_BASE_3 0x38c 29#define PAS16_DEFAULT_BASE_3 0x38c
@@ -120,21 +117,8 @@
120 117
121#define PAS16_io_port(reg) ( io_port + pas16_offset[(reg)] ) 118#define PAS16_io_port(reg) ( io_port + pas16_offset[(reg)] )
122 119
123#if !(PDEBUG & PDEBUG_TRANSFER)
124#define NCR5380_read(reg) ( inb(PAS16_io_port(reg)) ) 120#define NCR5380_read(reg) ( inb(PAS16_io_port(reg)) )
125#define NCR5380_write(reg, value) ( outb((value),PAS16_io_port(reg)) ) 121#define NCR5380_write(reg, value) ( outb((value),PAS16_io_port(reg)) )
126#else
127#define NCR5380_read(reg) \
128 (((unsigned char) printk("scsi%d : read register %d at io_port %04x\n"\
129 , instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) )
130
131#define NCR5380_write(reg, value) \
132 (printk("scsi%d : write %02x to register %d at io_port %04x\n", \
133 instance->hostno, (value), (reg), PAS16_io_port(reg)), \
134 outb( (value),PAS16_io_port(reg) ) )
135
136#endif
137
138 122
139#define NCR5380_intr pas16_intr 123#define NCR5380_intr pas16_intr
140#define do_NCR5380_intr do_pas16_intr 124#define do_NCR5380_intr do_pas16_intr