diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2017-01-15 18:50:57 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-01-31 21:37:19 -0500 |
commit | 090284610632bb32a5d2eea41420ee7c2b6975ca (patch) | |
tree | 81e0cafcb3081f115791084be219d61e626ff33c /drivers/scsi/NCR5380.h | |
parent | 13c599069130e5a1f04a9409d65566e149b12708 (diff) |
scsi: ncr5380: Shorten host info string by removing unused option macros
The DIFFERENTIAL and PARITY option macros are unused: no supported
hardware uses differential signalling and the core driver never
implemented parity checking. These options just waste space in the host
info string.
While we are here, fix a typo in the NCR5380_info() kernel-doc comment.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/NCR5380.h')
-rw-r--r-- | drivers/scsi/NCR5380.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index 51a3567a6fb2..e61d9f9987fa 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h | |||
@@ -81,11 +81,7 @@ | |||
81 | #define ICR_ASSERT_ATN 0x02 /* rw Set to assert ATN */ | 81 | #define ICR_ASSERT_ATN 0x02 /* rw Set to assert ATN */ |
82 | #define ICR_ASSERT_DATA 0x01 /* rw SCSI_DATA_REG is asserted */ | 82 | #define ICR_ASSERT_DATA 0x01 /* rw SCSI_DATA_REG is asserted */ |
83 | 83 | ||
84 | #ifdef DIFFERENTIAL | ||
85 | #define ICR_BASE ICR_DIFF_ENABLE | ||
86 | #else | ||
87 | #define ICR_BASE 0 | 84 | #define ICR_BASE 0 |
88 | #endif | ||
89 | 85 | ||
90 | #define MODE_REG 2 | 86 | #define MODE_REG 2 |
91 | /* | 87 | /* |
@@ -102,11 +98,7 @@ | |||
102 | #define MR_DMA_MODE 0x02 /* rw DMA / pseudo DMA mode */ | 98 | #define MR_DMA_MODE 0x02 /* rw DMA / pseudo DMA mode */ |
103 | #define MR_ARBITRATE 0x01 /* rw start arbitration */ | 99 | #define MR_ARBITRATE 0x01 /* rw start arbitration */ |
104 | 100 | ||
105 | #ifdef PARITY | ||
106 | #define MR_BASE MR_ENABLE_PAR_CHECK | ||
107 | #else | ||
108 | #define MR_BASE 0 | 101 | #define MR_BASE 0 |
109 | #endif | ||
110 | 102 | ||
111 | #define TARGET_COMMAND_REG 3 | 103 | #define TARGET_COMMAND_REG 3 |
112 | #define TCR_LAST_BYTE_SENT 0x80 /* ro DMA done */ | 104 | #define TCR_LAST_BYTE_SENT 0x80 /* ro DMA done */ |
@@ -234,7 +226,7 @@ struct NCR5380_hostdata { | |||
234 | unsigned char id_higher_mask; /* All bits above id_mask */ | 226 | unsigned char id_higher_mask; /* All bits above id_mask */ |
235 | unsigned char last_message; /* Last Message Out */ | 227 | unsigned char last_message; /* Last Message Out */ |
236 | unsigned long region_size; /* Size of address/port range */ | 228 | unsigned long region_size; /* Size of address/port range */ |
237 | char info[256]; | 229 | char info[168]; /* Host banner message */ |
238 | }; | 230 | }; |
239 | 231 | ||
240 | #ifdef __KERNEL__ | 232 | #ifdef __KERNEL__ |