diff options
author | Borislav Petkov <petkovbb@gmail.com> | 2009-04-26 04:39:07 -0400 |
---|---|---|
committer | Borislav Petkov <petkovbb@gmail.com> | 2009-05-15 00:44:45 -0400 |
commit | 103f7033bd0f7b65ff3e0a5ea72449d08010b031 (patch) | |
tree | bf1e416a235ffde137c94ad1d5da8542b0e5ab4e /include/linux/ide.h | |
parent | 239f7e25346e22c4a94bde004d845e7397947c01 (diff) |
ide: unify interrupt reason checking
Add ide_check_ireason() function that handles all ATAPI devices.
Reorganize all unlikely cases in ireason checking further down in the
code path.
In addition, add PFX for printks originating from ide-atapi. Finally,
remove ide_cd_check_ireason.
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 59aedcd7faee..70a2c94d6680 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1125,6 +1125,8 @@ void SELECT_MASK(ide_drive_t *, int); | |||
1125 | u8 ide_read_error(ide_drive_t *); | 1125 | u8 ide_read_error(ide_drive_t *); |
1126 | void ide_read_bcount_and_ireason(ide_drive_t *, u16 *, u8 *); | 1126 | void ide_read_bcount_and_ireason(ide_drive_t *, u16 *, u8 *); |
1127 | 1127 | ||
1128 | int ide_check_ireason(ide_drive_t *, struct request *, int, int, int); | ||
1129 | |||
1128 | int ide_check_atapi_device(ide_drive_t *, const char *); | 1130 | int ide_check_atapi_device(ide_drive_t *, const char *); |
1129 | 1131 | ||
1130 | void ide_init_pc(struct ide_atapi_pc *); | 1132 | void ide_init_pc(struct ide_atapi_pc *); |