diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2005-12-12 23:03:24 -0500 |
---|---|---|
committer | Jody McIntyre <scjody@modernduck.com> | 2005-12-12 23:03:24 -0500 |
commit | 43863eba763e0c91e33e342ce5b7650fea594a53 (patch) | |
tree | a353684ea6e69b906f9fc987f5ff74770867e914 /drivers/ieee1394/sbp2.h | |
parent | 51c1d80e929bace26d2d795bd77fcc14b02ba3bb (diff) |
sbp2: delete sbp2scsi_direction_table
DMA_BIDIRECTIONAL data direction may be handled properly by Linux in the
future. For now, reject it instead to convert it to another direction.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Jody McIntyre <scjody@modernduck.com>
Diffstat (limited to 'drivers/ieee1394/sbp2.h')
-rw-r--r-- | drivers/ieee1394/sbp2.h | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/drivers/ieee1394/sbp2.h b/drivers/ieee1394/sbp2.h index abc647bae5b1..8e227c52b72f 100644 --- a/drivers/ieee1394/sbp2.h +++ b/drivers/ieee1394/sbp2.h | |||
@@ -260,45 +260,7 @@ struct sbp2_status_block { | |||
260 | #define SBP2_MAX_SG_ELEMENT_LENGTH 0xf000 | 260 | #define SBP2_MAX_SG_ELEMENT_LENGTH 0xf000 |
261 | #define SBP2_MAX_UDS_PER_NODE 16 /* Maximum scsi devices per node */ | 261 | #define SBP2_MAX_UDS_PER_NODE 16 /* Maximum scsi devices per node */ |
262 | #define SBP2_MAX_SECTORS 255 /* Max sectors supported */ | 262 | #define SBP2_MAX_SECTORS 255 /* Max sectors supported */ |
263 | 263 | #define SBP2_MAX_CMDS 8 /* This should be safe */ | |
264 | /* | ||
265 | * SCSI direction table... | ||
266 | * (now used as a back-up in case the direction passed down from above is "unknown") | ||
267 | * | ||
268 | * DIN = IN data direction | ||
269 | * DOU = OUT data direction | ||
270 | * DNO = No data transfer | ||
271 | * DUN = Unknown data direction | ||
272 | * | ||
273 | * Opcode 0xec (Teac specific "opc execute") possibly should be DNO, | ||
274 | * but we'll change it when somebody reports a problem with this. | ||
275 | */ | ||
276 | #define DIN ORB_DIRECTION_READ_FROM_MEDIA | ||
277 | #define DOU ORB_DIRECTION_WRITE_TO_MEDIA | ||
278 | #define DNO ORB_DIRECTION_NO_DATA_TRANSFER | ||
279 | #define DUN DIN | ||
280 | |||
281 | static unchar sbp2scsi_direction_table[0x100] = { | ||
282 | DNO,DNO,DIN,DIN,DOU,DIN,DIN,DOU,DIN,DUN,DOU,DOU,DUN,DUN,DUN,DIN, | ||
283 | DNO,DIN,DIN,DOU,DIN,DOU,DNO,DNO,DOU,DNO,DIN,DNO,DIN,DOU,DNO,DUN, | ||
284 | DIN,DUN,DIN,DIN,DOU,DIN,DUN,DUN,DIN,DIN,DOU,DNO,DUN,DIN,DOU,DOU, | ||
285 | DOU,DOU,DOU,DNO,DIN,DNO,DNO,DIN,DOU,DOU,DOU,DOU,DIN,DOU,DIN,DOU, | ||
286 | DOU,DOU,DIN,DIN,DIN,DNO,DIN,DNO,DNO,DNO,DUN,DNO,DOU,DIN,DNO,DUN, | ||
287 | DUN,DIN,DIN,DNO,DNO,DOU,DUN,DUN,DNO,DIN,DIN,DNO,DIN,DOU,DUN,DUN, | ||
288 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN, | ||
289 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN, | ||
290 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN, | ||
291 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN, | ||
292 | DUN,DNO,DOU,DOU,DIN,DNO,DNO,DNO,DIN,DNO,DOU,DUN,DNO,DIN,DOU,DOU, | ||
293 | DOU,DOU,DOU,DNO,DUN,DIN,DOU,DIN,DIN,DIN,DNO,DNO,DNO,DIN,DIN,DUN, | ||
294 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN, | ||
295 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN, | ||
296 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DOU,DUN,DUN,DUN,DUN,DUN, | ||
297 | DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN,DUN | ||
298 | }; | ||
299 | |||
300 | /* This should be safe */ | ||
301 | #define SBP2_MAX_CMDS 8 | ||
302 | 264 | ||
303 | /* This is the two dma types we use for cmd_dma below */ | 265 | /* This is the two dma types we use for cmd_dma below */ |
304 | enum cmd_dma_types { | 266 | enum cmd_dma_types { |