.. | .. |
---|
474 | 474 | }; |
---|
475 | 475 | |
---|
476 | 476 | enum exec_status { |
---|
477 | | - /* The SAM_STAT_.. codes fit in the lower 6 bits, alias some of |
---|
478 | | - * them here to silence 'case value not in enumerated type' warnings |
---|
| 477 | + /* |
---|
| 478 | + * Values 0..0x7f are used to return the SAM_STAT_* codes. To avoid |
---|
| 479 | + * 'case value not in enumerated type' compiler warnings every value |
---|
| 480 | + * returned through the exec_status enum needs an alias with the SAS_ |
---|
| 481 | + * prefix here. |
---|
479 | 482 | */ |
---|
480 | | - __SAM_STAT_CHECK_CONDITION = SAM_STAT_CHECK_CONDITION, |
---|
| 483 | + SAS_SAM_STAT_GOOD = SAM_STAT_GOOD, |
---|
| 484 | + SAS_SAM_STAT_BUSY = SAM_STAT_BUSY, |
---|
| 485 | + SAS_SAM_STAT_TASK_ABORTED = SAM_STAT_TASK_ABORTED, |
---|
| 486 | + SAS_SAM_STAT_CHECK_CONDITION = SAM_STAT_CHECK_CONDITION, |
---|
481 | 487 | |
---|
482 | 488 | SAS_DEV_NO_RESPONSE = 0x80, |
---|
483 | 489 | SAS_DATA_UNDERRUN, |
---|