aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/sbp2.h
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2006-05-15 16:04:59 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-05-18 00:32:21 -0400
commit24d3bf884e093f9de52d31c97187f4b9b4ad7dcb (patch)
tree3580e6023f813b1167df65be37298c278434b2d7 /drivers/ieee1394/sbp2.h
parentcb46c3701fb7b738de1e22ac4f2d06d18f547a74 (diff)
[PATCH] sbp2: consolidate workarounds
Grand unification of the three types of workarounds we have so far. The "skip mode page 8" workaround is now limited to devices which pretend to be of TYPE_DISK instead of TYPE_RBC. This workaround is no longer enabled for Initio bridges. Patch update in anticipation of more workarounds: - Add module parameter "workarounds". - Deprecate parameter "force_inquiry_hack". - Compose the blacklist of a compound type for better readability and extensibility. - Remove a now unused #define. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ieee1394/sbp2.h')
-rw-r--r--drivers/ieee1394/sbp2.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/ieee1394/sbp2.h b/drivers/ieee1394/sbp2.h
index e2d357a9ea3a..e40caf5d61ac 100644
--- a/drivers/ieee1394/sbp2.h
+++ b/drivers/ieee1394/sbp2.h
@@ -227,11 +227,6 @@ struct sbp2_status_block {
227#define SBP2_SW_VERSION_ENTRY 0x00010483 227#define SBP2_SW_VERSION_ENTRY 0x00010483
228 228
229/* 229/*
230 * Other misc defines
231 */
232#define SBP2_128KB_BROKEN_FIRMWARE 0xa0b800
233
234/*
235 * SCSI specific stuff 230 * SCSI specific stuff
236 */ 231 */
237 232
@@ -239,6 +234,11 @@ struct sbp2_status_block {
239#define SBP2_MAX_SECTORS 255 /* Max sectors supported */ 234#define SBP2_MAX_SECTORS 255 /* Max sectors supported */
240#define SBP2_MAX_CMDS 8 /* This should be safe */ 235#define SBP2_MAX_CMDS 8 /* This should be safe */
241 236
237/* Flags for detected oddities and brokeness */
238#define SBP2_WORKAROUND_128K_MAX_TRANS 0x1
239#define SBP2_WORKAROUND_INQUIRY_36 0x2
240#define SBP2_WORKAROUND_MODE_SENSE_8 0x4
241
242/* This is the two dma types we use for cmd_dma below */ 242/* This is the two dma types we use for cmd_dma below */
243enum cmd_dma_types { 243enum cmd_dma_types {
244 CMD_DMA_NONE, 244 CMD_DMA_NONE,
@@ -268,10 +268,6 @@ struct sbp2_command_info {
268 268
269}; 269};
270 270
271/* A list of flags for detected oddities and brokeness. */
272#define SBP2_BREAKAGE_128K_MAX_TRANSFER 0x1
273#define SBP2_BREAKAGE_INQUIRY_HACK 0x2
274
275struct sbp2scsi_host_info; 271struct sbp2scsi_host_info;
276 272
277/* 273/*
@@ -345,7 +341,7 @@ struct scsi_id_instance_data {
345 struct Scsi_Host *scsi_host; 341 struct Scsi_Host *scsi_host;
346 342
347 /* Device specific workarounds/brokeness */ 343 /* Device specific workarounds/brokeness */
348 u32 workarounds; 344 unsigned workarounds;
349}; 345};
350 346
351/* Sbp2 host data structure (one per IEEE1394 host) */ 347/* Sbp2 host data structure (one per IEEE1394 host) */