aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 39aaff8ff457..8121aa9240c4 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -788,6 +788,12 @@ typedef struct hwif_s {
788 unsigned int *dmatable_cpu; 788 unsigned int *dmatable_cpu;
789 /* dma physical region descriptor table (dma view) */ 789 /* dma physical region descriptor table (dma view) */
790 dma_addr_t dmatable_dma; 790 dma_addr_t dmatable_dma;
791
792 /* maximum number of PRD table entries */
793 int prd_max_nents;
794 /* PRD entry size in bytes */
795 int prd_ent_size;
796
791 /* Scatter-gather list used to build the above */ 797 /* Scatter-gather list used to build the above */
792 struct scatterlist *sg_table; 798 struct scatterlist *sg_table;
793 int sg_max_nents; /* Maximum number of entries in it */ 799 int sg_max_nents; /* Maximum number of entries in it */
@@ -1423,14 +1429,14 @@ int ide_set_dma(ide_drive_t *);
1423void ide_check_dma_crc(ide_drive_t *); 1429void ide_check_dma_crc(ide_drive_t *);
1424ide_startstop_t ide_dma_intr(ide_drive_t *); 1430ide_startstop_t ide_dma_intr(ide_drive_t *);
1425 1431
1432int ide_allocate_dma_engine(ide_hwif_t *);
1433void ide_release_dma_engine(ide_hwif_t *);
1434
1426int ide_build_sglist(ide_drive_t *, struct request *); 1435int ide_build_sglist(ide_drive_t *, struct request *);
1427void ide_destroy_dmatable(ide_drive_t *); 1436void ide_destroy_dmatable(ide_drive_t *);
1428 1437
1429#ifdef CONFIG_BLK_DEV_IDEDMA_SFF 1438#ifdef CONFIG_BLK_DEV_IDEDMA_SFF
1430extern int ide_build_dmatable(ide_drive_t *, struct request *); 1439extern int ide_build_dmatable(ide_drive_t *, struct request *);
1431int ide_allocate_dma_engine(ide_hwif_t *);
1432void ide_release_dma_engine(ide_hwif_t *);
1433
1434void ide_dma_host_set(ide_drive_t *, int); 1440void ide_dma_host_set(ide_drive_t *, int);
1435extern int ide_dma_setup(ide_drive_t *); 1441extern int ide_dma_setup(ide_drive_t *);
1436void ide_dma_exec_cmd(ide_drive_t *, u8); 1442void ide_dma_exec_cmd(ide_drive_t *, u8);
@@ -1453,11 +1459,8 @@ static inline void ide_dma_on(ide_drive_t *drive) { ; }
1453static inline void ide_dma_verbose(ide_drive_t *drive) { ; } 1459static inline void ide_dma_verbose(ide_drive_t *drive) { ; }
1454static inline int ide_set_dma(ide_drive_t *drive) { return 1; } 1460static inline int ide_set_dma(ide_drive_t *drive) { return 1; }
1455static inline void ide_check_dma_crc(ide_drive_t *drive) { ; } 1461static inline void ide_check_dma_crc(ide_drive_t *drive) { ; }
1456#endif /* CONFIG_BLK_DEV_IDEDMA */
1457
1458#ifndef CONFIG_BLK_DEV_IDEDMA_SFF
1459static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } 1462static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; }
1460#endif 1463#endif /* CONFIG_BLK_DEV_IDEDMA */
1461 1464
1462#ifdef CONFIG_BLK_DEV_IDEACPI 1465#ifdef CONFIG_BLK_DEV_IDEACPI
1463extern int ide_acpi_exec_tfs(ide_drive_t *drive); 1466extern int ide_acpi_exec_tfs(ide_drive_t *drive);