diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:47 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:47 -0400 |
commit | 2dbe7e919eb696c86790797f8a814bef19a0d50a (patch) | |
tree | 59f9b665d99790226e1fba3d463fae3edab2c95a /include/linux/ide.h | |
parent | db3f99ef7c30d541e4a78931acf2c64abe3e26d1 (diff) |
ide: move SFF DMA code to ide-dma-sff.c
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 8121aa9240c4..5a39dab2cc91 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1412,6 +1412,7 @@ struct drive_list_entry { | |||
1412 | int ide_in_drive_list(u16 *, const struct drive_list_entry *); | 1412 | int ide_in_drive_list(u16 *, const struct drive_list_entry *); |
1413 | 1413 | ||
1414 | #ifdef CONFIG_BLK_DEV_IDEDMA | 1414 | #ifdef CONFIG_BLK_DEV_IDEDMA |
1415 | int ide_dma_good_drive(ide_drive_t *); | ||
1415 | int __ide_dma_bad_drive(ide_drive_t *); | 1416 | int __ide_dma_bad_drive(ide_drive_t *); |
1416 | int ide_id_dma_bug(ide_drive_t *); | 1417 | int ide_id_dma_bug(ide_drive_t *); |
1417 | 1418 | ||
@@ -1436,6 +1437,7 @@ int ide_build_sglist(ide_drive_t *, struct request *); | |||
1436 | void ide_destroy_dmatable(ide_drive_t *); | 1437 | void ide_destroy_dmatable(ide_drive_t *); |
1437 | 1438 | ||
1438 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF | 1439 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF |
1440 | int config_drive_for_dma(ide_drive_t *); | ||
1439 | extern int ide_build_dmatable(ide_drive_t *, struct request *); | 1441 | extern int ide_build_dmatable(ide_drive_t *, struct request *); |
1440 | void ide_dma_host_set(ide_drive_t *, int); | 1442 | void ide_dma_host_set(ide_drive_t *, int); |
1441 | extern int ide_dma_setup(ide_drive_t *); | 1443 | extern int ide_dma_setup(ide_drive_t *); |
@@ -1444,6 +1446,8 @@ extern void ide_dma_start(ide_drive_t *); | |||
1444 | int ide_dma_end(ide_drive_t *); | 1446 | int ide_dma_end(ide_drive_t *); |
1445 | int ide_dma_test_irq(ide_drive_t *); | 1447 | int ide_dma_test_irq(ide_drive_t *); |
1446 | extern const struct ide_dma_ops sff_dma_ops; | 1448 | extern const struct ide_dma_ops sff_dma_ops; |
1449 | #else | ||
1450 | static inline int config_drive_for_dma(ide_drive_t *drive) { return 0; } | ||
1447 | #endif /* CONFIG_BLK_DEV_IDEDMA_SFF */ | 1451 | #endif /* CONFIG_BLK_DEV_IDEDMA_SFF */ |
1448 | 1452 | ||
1449 | void ide_dma_lost_irq(ide_drive_t *); | 1453 | void ide_dma_lost_irq(ide_drive_t *); |