diff options
author | Alexey Kardashevskiy | 2013-11-19 05:28:54 +0100 |
---|---|---|
committer | Alexander Graf | 2013-12-20 01:57:59 +0100 |
commit | a64d325df1ce9b554e15d612b80775159cc4d7a6 (patch) | |
tree | 222235a13e61c677f3062f46b7bd6cabed275ae2 /include/hw/ppc/spapr.h | |
parent | target-ppc: move POWER7+ to a separate family (diff) | |
download | qemu-a64d325df1ce9b554e15d612b80775159cc4d7a6.tar.gz qemu-a64d325df1ce9b554e15d612b80775159cc4d7a6.tar.xz qemu-a64d325df1ce9b554e15d612b80775159cc4d7a6.zip |
spapr-rtas: replace return code constants with macros
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw/ppc/spapr.h')
-rw-r--r-- | include/hw/ppc/spapr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index fdaab2de52..085cfa7a4c 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -332,6 +332,13 @@ static inline int spapr_allocate_lsi(int hint) return spapr_allocate_irq(hint, true); } +/* RTAS return codes */ +#define RTAS_OUT_SUCCESS 0 +#define RTAS_OUT_NO_ERRORS_FOUND 1 +#define RTAS_OUT_HW_ERROR -1 +#define RTAS_OUT_BUSY -2 +#define RTAS_OUT_PARAM_ERROR -3 + static inline uint64_t ppc64_phys_to_real(uint64_t addr) { return addr & ~0xF000000000000000ULL; |