diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:21 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:21 -0400 |
commit | 8a4a5738ba499083cf4c5668895efe220b1946d3 (patch) | |
tree | 78272b711b31f43526d2c665478cc3bdb0b6e393 /include/linux/ide.h | |
parent | 7526efaafdc835b8d6b22aa1a302e14651373908 (diff) |
ide: add ->dma_check method
* Add (an optional) ->dma_check method for checking if DMA can be
used for a given command and fail DMA setup in ide_dma_prepare()
if necessary.
* Convert alim15x3 and trm290 host drivers to use ->dma_check.
* Rename ali15x3_dma_setup() to ali_dma_check() while at it.
There should be no functional changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 78892e2a432c..b350667b83ad 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -717,6 +717,7 @@ struct ide_dma_ops { | |||
717 | int (*dma_test_irq)(struct ide_drive_s *); | 717 | int (*dma_test_irq)(struct ide_drive_s *); |
718 | void (*dma_lost_irq)(struct ide_drive_s *); | 718 | void (*dma_lost_irq)(struct ide_drive_s *); |
719 | /* below ones are optional */ | 719 | /* below ones are optional */ |
720 | int (*dma_check)(struct ide_drive_s *, struct ide_cmd *); | ||
720 | int (*dma_timer_expiry)(struct ide_drive_s *); | 721 | int (*dma_timer_expiry)(struct ide_drive_s *); |
721 | void (*dma_clear)(struct ide_drive_s *); | 722 | void (*dma_clear)(struct ide_drive_s *); |
722 | /* | 723 | /* |