diff options
| author | Martin Dalecki <dalecki@evision-ventures.com> | 2002-05-17 09:49:53 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-05-17 09:49:53 -0700 |
| commit | acff0d9364ccfc427ddfc20d13c53afd7ac3d0fb (patch) | |
| tree | c52163956bbfcaeb4335c522208267f6a3db82a9 /include/linux/ide.h | |
| parent | d7e09f7eac82dcb45fabfe8c1055e6da418c7d6a (diff) | |
[PATCH] 2.5.15 IDE 64
Let's just get over with this before queue handling will be targeted again...
- Implement suggestions by Russell King for improved portability and separation
between PCI and non PCI host code.
- pdc202xxx updates from Thierry Vignaud.
- Tiny PIO fix from Tomita.
Diffstat (limited to 'include/linux/ide.h')
| -rw-r--r-- | include/linux/ide.h | 49 |
1 files changed, 41 insertions, 8 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 34b7b973a815..a66146efd024 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -820,22 +820,55 @@ extern int ide_unregister_subdriver(struct ata_device *drive); void __init ide_scan_pcibus(int scan_direction); #endif + +static inline void udma_enable(struct ata_device *drive, int on, int verbose) +{ + drive->channel->udma_enable(drive, on, verbose); +} + +static inline int udma_start(struct ata_device *drive, struct request *rq) +{ + return drive->channel->udma_start(drive, rq); +} + +static inline int udma_stop(struct ata_device *drive) +{ + return drive->channel->udma_stop(drive); +} + +static inline int udma_read(struct ata_device *drive, struct request *rq) +{ + return drive->channel->udma_read(drive, rq); +} + +static inline int udma_write(struct ata_device *drive, struct request *rq) +{ + return drive->channel->udma_write(drive, rq); +} + +static inline int udma_irq_status(struct ata_device *drive) +{ + return drive->channel->udma_irq_status(drive); +} + +static inline void udma_timeout(struct ata_device *drive) +{ + return drive->channel->udma_timeout(drive); +} + +static inline void udma_irq_lost(struct ata_device *drive) +{ + return drive->channel->udma_irq_lost(drive); +} + #ifdef CONFIG_BLK_DEV_IDEDMA extern int udma_new_table(struct ata_channel *, struct request *); extern void udma_destroy_table(struct ata_channel *); extern void udma_print(struct ata_device *); -extern void udma_enable(struct ata_device *, int, int); extern int udma_black_list(struct ata_device *); extern int udma_white_list(struct ata_device *); -extern void udma_timeout(struct ata_device *); -extern void udma_irq_lost(struct ata_device *); -extern int udma_start(struct ata_device *, struct request *rq); -extern int udma_stop(struct ata_device *); -extern int udma_read(struct ata_device *, struct request *rq); -extern int udma_write(struct ata_device *, struct request *rq); -extern int udma_irq_status(struct ata_device *); extern int ata_do_udma(unsigned int reading, struct ata_device *drive, struct request *rq); |
