aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-05 20:57:51 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-05 20:57:51 -0500
commit64a57fe4393bae920d03c253173f59d8a7ec8e25 (patch)
treebfbac6fa370401d519a6fd9433a330dd55efe68d /include
parentc47137a99c597330b69057158b26061a360c0e09 (diff)
ide: add ide_read_error() inline helper
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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index d2124920ff10..acec99da832d 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1323,4 +1323,11 @@ static inline u8 ide_read_altstatus(ide_drive_t *drive)
1323 return hwif->INB(hwif->io_ports[IDE_CONTROL_OFFSET]); 1323 return hwif->INB(hwif->io_ports[IDE_CONTROL_OFFSET]);
1324} 1324}
1325 1325
1326static inline u8 ide_read_error(ide_drive_t *drive)
1327{
1328 ide_hwif_t *hwif = drive->hwif;
1329
1330 return hwif->INB(hwif->io_ports[IDE_ERROR_OFFSET]);
1331}
1332
1326#endif /* _IDE_H */ 1333#endif /* _IDE_H */