summaryrefslogtreecommitdiff
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@trik.(none)>2004-10-27 02:19:18 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@trik.(none)>2004-10-27 02:19:18 +0200
commitb3f4340259ad77fc1158f53856fb1d1036e29f6a (patch)
tree2d91fee4d1b8ecf80005a886de9436f71b417cb4 /include/linux/ide.h
parentf607de7d889c0ea960dcc8632be889b7336fbaa5 (diff)
[ide] add ide_use_dma()
Should prevent bugs like the recent piix one in the future. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 284e9ab25aa1..04faf345d102 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1491,6 +1491,7 @@ void ide_init_sg_cmd(ide_drive_t *, struct request *);
#ifdef CONFIG_BLK_DEV_IDEDMA
int __ide_dma_bad_drive(ide_drive_t *);
int __ide_dma_good_drive(ide_drive_t *);
+int ide_use_dma(ide_drive_t *);
int __ide_dma_off(ide_drive_t *);
void ide_dma_verbose(ide_drive_t *);
@@ -1516,6 +1517,7 @@ extern int __ide_dma_timeout(ide_drive_t *);
#endif /* CONFIG_BLK_DEV_IDEDMA_PCI */
#else
+static inline int ide_use_dma(ide_drive_t *drive) { return 0; }
static inline int __ide_dma_off(ide_drive_t *drive) { return 0; }
static inline void ide_dma_verbose(ide_drive_t *drive) { ; }
#endif /* CONFIG_BLK_DEV_IDEDMA */