aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:32 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:32 -0500
commit062f9f024dcdb927cfd35c9ee8a68f59cbb1136f (patch)
treeef592f702eea3e4333b1e0e2e3db7ce945408261 /include/linux/ide.h
parent5c05ff68b9a9b40a9be949497e0aa980185565cf (diff)
ide: use ide_build_sglist() and ide_destroy_dmatable() in non-PCI host drivers
* Make ide_build_sglist() and ide_destroy_dmatable() available also when CONFIG_BLK_DEV_IDEDMA_PCI=n. * Use ide_build_sglist() and ide_destroy_dmatable() in {ics,au1xxx-}ide.c and remove no longer needed {ics,au}ide_build_sglist(). There should be no functionality changes caused by this patch. Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index ae965a3de9e4..ae83c4a82c69 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1155,10 +1155,11 @@ void ide_dma_on(ide_drive_t *);
1155int ide_set_dma(ide_drive_t *); 1155int ide_set_dma(ide_drive_t *);
1156ide_startstop_t ide_dma_intr(ide_drive_t *); 1156ide_startstop_t ide_dma_intr(ide_drive_t *);
1157 1157
1158int ide_build_sglist(ide_drive_t *, struct request *);
1159void ide_destroy_dmatable(ide_drive_t *);
1160
1158#ifdef CONFIG_BLK_DEV_IDEDMA_PCI 1161#ifdef CONFIG_BLK_DEV_IDEDMA_PCI
1159extern int ide_build_sglist(ide_drive_t *, struct request *);
1160extern int ide_build_dmatable(ide_drive_t *, struct request *); 1162extern int ide_build_dmatable(ide_drive_t *, struct request *);
1161extern void ide_destroy_dmatable(ide_drive_t *);
1162extern int ide_release_dma(ide_hwif_t *); 1163extern int ide_release_dma(ide_hwif_t *);
1163extern void ide_setup_dma(ide_hwif_t *, unsigned long); 1164extern void ide_setup_dma(ide_hwif_t *, unsigned long);
1164 1165