diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:55:52 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-23 13:55:52 -0400 |
commit | 1f6d8a0fd8f6cc5ee2219a8cf9b2da16dfd67397 (patch) | |
tree | 4a858f4525ea67cd325ec370f4823adc1f7c0450 /include/linux/ide.h | |
parent | b73c7ee25da6133f97f47ffd3557288417da7c76 (diff) |
ide: add ->read_altstatus method
* Remove ide_read_altstatus() inline helper.
* Add ->read_altstatus method for reading ATA Alternate Status
register and use it instead of ->INB.
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index a23ae25d7da8..e5fa5e868d67 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -491,6 +491,7 @@ typedef struct hwif_s { | |||
491 | 491 | ||
492 | void (*exec_command)(struct hwif_s *, u8); | 492 | void (*exec_command)(struct hwif_s *, u8); |
493 | u8 (*read_status)(struct hwif_s *); | 493 | u8 (*read_status)(struct hwif_s *); |
494 | u8 (*read_altstatus)(struct hwif_s *); | ||
494 | u8 (*read_sff_dma_status)(struct hwif_s *); | 495 | u8 (*read_sff_dma_status)(struct hwif_s *); |
495 | 496 | ||
496 | void (*tf_load)(ide_drive_t *, struct ide_task_s *); | 497 | void (*tf_load)(ide_drive_t *, struct ide_task_s *); |
@@ -1363,13 +1364,6 @@ static inline void ide_set_irq(ide_drive_t *drive, int on) | |||
1363 | hwif->io_ports.ctl_addr); | 1364 | hwif->io_ports.ctl_addr); |
1364 | } | 1365 | } |
1365 | 1366 | ||
1366 | static inline u8 ide_read_altstatus(ide_drive_t *drive) | ||
1367 | { | ||
1368 | ide_hwif_t *hwif = drive->hwif; | ||
1369 | |||
1370 | return hwif->INB(hwif->io_ports.ctl_addr); | ||
1371 | } | ||
1372 | |||
1373 | static inline u8 ide_read_error(ide_drive_t *drive) | 1367 | static inline u8 ide_read_error(ide_drive_t *drive) |
1374 | { | 1368 | { |
1375 | ide_hwif_t *hwif = drive->hwif; | 1369 | ide_hwif_t *hwif = drive->hwif; |