diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:20 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:20 -0400 |
commit | 5ae5412d9a23b05ab08461b202bad21ad8f6b66d (patch) | |
tree | 25d86e7cf0b57e15efa74e5150c2a654fc9339c9 /include/linux/ide.h | |
parent | 4453011f959a5f5c6c7a33aea54fe17f5e43a867 (diff) |
ide: add ide_dma_prepare() helper
* Add ide_dma_prepare() helper.
* Convert ide_issue_pc() and do_rw_taskfile() to use it.
* Make ide_build_sglist() static.
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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index b6c4942fde11..78892e2a432c 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1443,7 +1443,8 @@ ide_startstop_t ide_dma_intr(ide_drive_t *); | |||
1443 | int ide_allocate_dma_engine(ide_hwif_t *); | 1443 | int ide_allocate_dma_engine(ide_hwif_t *); |
1444 | void ide_release_dma_engine(ide_hwif_t *); | 1444 | void ide_release_dma_engine(ide_hwif_t *); |
1445 | 1445 | ||
1446 | int ide_build_sglist(ide_drive_t *, struct ide_cmd *); | 1446 | int ide_dma_prepare(ide_drive_t *, struct ide_cmd *); |
1447 | |||
1447 | void ide_destroy_dmatable(ide_drive_t *); | 1448 | void ide_destroy_dmatable(ide_drive_t *); |
1448 | 1449 | ||
1449 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF | 1450 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF |
@@ -1477,8 +1478,8 @@ static inline void ide_check_dma_crc(ide_drive_t *drive) { ; } | |||
1477 | static inline ide_startstop_t ide_dma_intr(ide_drive_t *drive) { return ide_stopped; } | 1478 | static inline ide_startstop_t ide_dma_intr(ide_drive_t *drive) { return ide_stopped; } |
1478 | static inline ide_startstop_t ide_dma_timeout_retry(ide_drive_t *drive, int error) { return ide_stopped; } | 1479 | static inline ide_startstop_t ide_dma_timeout_retry(ide_drive_t *drive, int error) { return ide_stopped; } |
1479 | static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } | 1480 | static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } |
1480 | static inline int ide_build_sglist(ide_drive_t *drive, | 1481 | static inline int ide_dma_prepare(ide_drive_t *drive, |
1481 | struct ide_cmd *cmd) { return 0; } | 1482 | struct ide_cmd *cmd) { return 1; } |
1482 | static inline void ide_destroy_dmatable(ide_drive_t *drive) { ; } | 1483 | static inline void ide_destroy_dmatable(ide_drive_t *drive) { ; } |
1483 | #endif /* CONFIG_BLK_DEV_IDEDMA */ | 1484 | #endif /* CONFIG_BLK_DEV_IDEDMA */ |
1484 | 1485 | ||