From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/skiboot/include/ras.h | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 roms/skiboot/include/ras.h (limited to 'roms/skiboot/include/ras.h') diff --git a/roms/skiboot/include/ras.h b/roms/skiboot/include/ras.h new file mode 100644 index 000000000..d0faaeefb --- /dev/null +++ b/roms/skiboot/include/ras.h @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: Apache-2.0 +/* Copyright 2020 IBM Corp. */ + +#ifndef __RAS_H +#define __RAS_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include + +#define MCE_NO_ERROR 0x0001 +#define MCE_UNKNOWN 0x0002 +#define MCE_INSNFETCH 0x0004 +#define MCE_LOADSTORE 0x0008 +#define MCE_TABLE_WALK 0x0010 +#define MCE_IMPRECISE 0x0020 +#define MCE_MEMORY_ERROR 0x0040 +#define MCE_SLB_ERROR 0x0080 +#define MCE_ERAT_ERROR 0x0100 +#define MCE_TLB_ERROR 0x0200 +#define MCE_TLBIE_ERROR 0x0400 +#define MCE_INVOLVED_EA 0x0800 +#define MCE_INVOLVED_PA 0x1000 + +void decode_mce(uint64_t srr0, uint64_t srr1, + uint32_t dsisr, uint64_t dar, + uint64_t *type, const char **error_str, + uint64_t *address); + +#endif /* __RAS_H */ -- cgit 1.2.3-korg