ide: add ide_read_error() inline helper
[sfrench/cifs-2.6.git] / include / linux / ide.h
index d2124920ff10b5c58d6d6150fa9f35acc32eb2fb..acec99da832dc475a44aa1e18696f84e1dae1f53 100644 (file)
@@ -1323,4 +1323,11 @@ static inline u8 ide_read_altstatus(ide_drive_t *drive)
        return hwif->INB(hwif->io_ports[IDE_CONTROL_OFFSET]);
 }
 
+static inline u8 ide_read_error(ide_drive_t *drive)
+{
+       ide_hwif_t *hwif = drive->hwif;
+
+       return hwif->INB(hwif->io_ports[IDE_ERROR_OFFSET]);
+}
+
 #endif /* _IDE_H */