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 | b73c7ee25da6133f97f47ffd3557288417da7c76 (patch) | |
tree | 0d348c81294d246b8417aff6e24502c93b312505 /include/linux | |
parent | c6dfa867bb45f4bff2e48f3bc89ab1d6a7ab4c21 (diff) |
ide: add ->read_status method
* Remove ide_read_status() inline helper.
* Add ->read_status method for reading ATA Status register
and use it instead of ->INB.
While at it:
* Don't use HWGROUP() macro.
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux')
-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 d77c1994d0e3..a23ae25d7da8 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -490,6 +490,7 @@ typedef struct hwif_s { | |||
490 | const struct ide_dma_ops *dma_ops; | 490 | const struct ide_dma_ops *dma_ops; |
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_sff_dma_status)(struct hwif_s *); | 494 | u8 (*read_sff_dma_status)(struct hwif_s *); |
494 | 495 | ||
495 | void (*tf_load)(ide_drive_t *, struct ide_task_s *); | 496 | void (*tf_load)(ide_drive_t *, struct ide_task_s *); |
@@ -1362,13 +1363,6 @@ static inline void ide_set_irq(ide_drive_t *drive, int on) | |||
1362 | hwif->io_ports.ctl_addr); | 1363 | hwif->io_ports.ctl_addr); |
1363 | } | 1364 | } |
1364 | 1365 | ||
1365 | static inline u8 ide_read_status(ide_drive_t *drive) | ||
1366 | { | ||
1367 | ide_hwif_t *hwif = drive->hwif; | ||
1368 | |||
1369 | return hwif->INB(hwif->io_ports.status_addr); | ||
1370 | } | ||
1371 | |||
1372 | static inline u8 ide_read_altstatus(ide_drive_t *drive) | 1366 | static inline u8 ide_read_altstatus(ide_drive_t *drive) |
1373 | { | 1367 | { |
1374 | ide_hwif_t *hwif = drive->hwif; | 1368 | ide_hwif_t *hwif = drive->hwif; |