diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2006-01-27 02:36:14 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-27 02:36:14 -0500 |
commit | 7dfb869c8e45e5863534f38fdac990829b22964a (patch) | |
tree | f36bbdba46b022356d05ac26d5073e395d2f8abd /include/linux/libata.h | |
parent | 628e386e27674906326455f01d87878a5f0cbce7 (diff) | |
parent | 11a56d2439259892319df81cf1582687d7e7fde5 (diff) |
Merge branch 'tmp'
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index d34963c18656..510aee82113a 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -227,10 +227,15 @@ enum hsm_task_states { | |||
227 | }; | 227 | }; |
228 | 228 | ||
229 | enum ata_completion_errors { | 229 | enum ata_completion_errors { |
230 | AC_ERR_OTHER = (1 << 0), | 230 | AC_ERR_DEV = (1 << 0), /* device reported error */ |
231 | AC_ERR_DEV = (1 << 1), | 231 | AC_ERR_HSM = (1 << 1), /* host state machine violation */ |
232 | AC_ERR_ATA_BUS = (1 << 2), | 232 | AC_ERR_TIMEOUT = (1 << 2), /* timeout */ |
233 | AC_ERR_HOST_BUS = (1 << 3), | 233 | AC_ERR_MEDIA = (1 << 3), /* media error */ |
234 | AC_ERR_ATA_BUS = (1 << 4), /* ATA bus error */ | ||
235 | AC_ERR_HOST_BUS = (1 << 5), /* host bus error */ | ||
236 | AC_ERR_SYSTEM = (1 << 6), /* system error */ | ||
237 | AC_ERR_INVALID = (1 << 7), /* invalid argument */ | ||
238 | AC_ERR_OTHER = (1 << 8), /* unknown */ | ||
234 | }; | 239 | }; |
235 | 240 | ||
236 | /* forward declarations */ | 241 | /* forward declarations */ |
@@ -836,7 +841,7 @@ static inline int ata_try_flush_cache(const struct ata_device *dev) | |||
836 | static inline unsigned int ac_err_mask(u8 status) | 841 | static inline unsigned int ac_err_mask(u8 status) |
837 | { | 842 | { |
838 | if (status & ATA_BUSY) | 843 | if (status & ATA_BUSY) |
839 | return AC_ERR_ATA_BUS; | 844 | return AC_ERR_HSM; |
840 | if (status & (ATA_ERR | ATA_DF)) | 845 | if (status & (ATA_ERR | ATA_DF)) |
841 | return AC_ERR_DEV; | 846 | return AC_ERR_DEV; |
842 | return 0; | 847 | return 0; |