summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@trik.(none)>2004-10-22 23:06:43 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@trik.(none)>2004-10-22 23:06:43 +0200
commitde56da83f3b70cb348ae60c9421e6a7dd91f8ac0 (patch)
treec62730663df2bc0aaa2d076fc73f16970cb06a89 /include/linux
parentae021d4bfcf77d57da773fabae8e738ed4b0321f (diff)
[ide] ide-scsi: simplify+speedup DMA support
* add hwif->sg_mapped flag * add idescsi_map_sg() converting scsi_cmd->sg into hwif->sg_table (this removes need for rq->bio) * remove code (de)allocating rq->bio Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ide.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 2b97d5f6a470..b1e10fea86fc 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -938,6 +938,7 @@ typedef struct hwif_s {
unsigned no_lba48_dma : 1; /* 1 = cannot do LBA48 DMA */
unsigned no_dsc : 1; /* 0 default, 1 dsc_overlap disabled */
unsigned auto_poll : 1; /* supports nop auto-poll */
+ unsigned sg_mapped : 1; /* sg_table and sg_nents are ready */
struct device gendev;
struct semaphore gendev_rel_sem; /* To deal with device release() */