Skip to contentSkip to conversation

tcm: Convert to use enum dma_data_direction

PATCH FUJITA Tomonori 1 participant 1 message Sep 16, 2010 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · On Tue, 14 Sep 2010 13:27:11 -0700 "Nicholas A. Bellinger"…

Attached is a series to convert the TCM Core, TCM_Loop, TCM_FC and LIO-Target fabric modules to use the modern values include/linux/dma-mapping.h:
enum dma_data_direction for signaling CDB data direction.

Some drivers don't do DMA so I'm not sure that using enum dma_data_direction as a generic direction type is correct. But we already do everywhere (e.g. sc_data_direction in struct scsi_cmnd), so at least using dma_data_direction looks better than defining the own direction type.