diff options
| author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-05 20:57:51 -0500 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-05 20:57:51 -0500 |
| commit | c47137a99c597330b69057158b26061a360c0e09 (patch) | |
| tree | aacd4cb968b8d7bdebdcbcce19f110469a977243 /include | |
| parent | 29dd59755a849cc6475faa6a75f3b804e23a6fc2 (diff) | |
ide: add ide_read_[alt]status() inline helpers
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ide.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 2f66aaa1be2f..d2124920ff10 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -1309,4 +1309,18 @@ static inline void ide_set_irq(ide_drive_t *drive, int on) | |||
| 1309 | drive->hwif->OUTB(drive->ctl | (on ? 0 : 2), IDE_CONTROL_REG); | 1309 | drive->hwif->OUTB(drive->ctl | (on ? 0 : 2), IDE_CONTROL_REG); |
| 1310 | } | 1310 | } |
| 1311 | 1311 | ||
| 1312 | static inline u8 ide_read_status(ide_drive_t *drive) | ||
| 1313 | { | ||
| 1314 | ide_hwif_t *hwif = drive->hwif; | ||
| 1315 | |||
| 1316 | return hwif->INB(hwif->io_ports[IDE_STATUS_OFFSET]); | ||
| 1317 | } | ||
| 1318 | |||
| 1319 | static inline u8 ide_read_altstatus(ide_drive_t *drive) | ||
| 1320 | { | ||
| 1321 | ide_hwif_t *hwif = drive->hwif; | ||
| 1322 | |||
| 1323 | return hwif->INB(hwif->io_ports[IDE_CONTROL_OFFSET]); | ||
| 1324 | } | ||
| 1325 | |||
| 1312 | #endif /* _IDE_H */ | 1326 | #endif /* _IDE_H */ |
