Skip to content

Commit

Permalink
[POWERPC] PS3: Add new LV1 error codes
Browse files Browse the repository at this point in the history
Add new error codes that may be returned by the LV1 hypervisor

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geert Uytterhoeven authored and Paul Mackerras committed Sep 13, 2007
1 parent 85d0292 commit 06462d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/asm-powerpc/ps3.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ enum lv1_result {
LV1_INVALID_CLASS_ID = -21,
LV1_CONSTRAINT_NOT_SATISFIED = -22,
LV1_ALIGNMENT_ERROR = -23,
LV1_HARDWARE_ERROR = -24,
LV1_INVALID_DATA_FORMAT = -25,
LV1_INVALID_OPERATION = -26,
LV1_INTERNAL_ERROR = -32768,
};

Expand Down Expand Up @@ -284,6 +287,12 @@ static inline const char* ps3_result(int result)
return "LV1_CONSTRAINT_NOT_SATISFIED (-22)";
case LV1_ALIGNMENT_ERROR:
return "LV1_ALIGNMENT_ERROR (-23)";
case LV1_HARDWARE_ERROR:
return "LV1_HARDWARE_ERROR (-24)";
case LV1_INVALID_DATA_FORMAT:
return "LV1_INVALID_DATA_FORMAT (-25)";
case LV1_INVALID_OPERATION:
return "LV1_INVALID_OPERATION (-26)";
case LV1_INTERNAL_ERROR:
return "LV1_INTERNAL_ERROR (-32768)";
default:
Expand Down

0 comments on commit 06462d9

Please sign in to comment.