linux/drivers/firmware/efi/cper-x86.c

// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2018, Advanced Micro Devices, Inc.

#include <linux/cper.h>
#include <linux/acpi.h>

/*
 * We don't need a "CPER_IA" prefix since these are all locally defined.
 * This will save us a lot of line space.
 */
#define VALID_LAPIC_ID
#define VALID_CPUID_INFO
#define VALID_PROC_ERR_INFO_NUM(bits)
#define VALID_PROC_CXT_INFO_NUM(bits)

#define INFO_ERR_STRUCT_TYPE_CACHE
#define INFO_ERR_STRUCT_TYPE_TLB
#define INFO_ERR_STRUCT_TYPE_BUS
#define INFO_ERR_STRUCT_TYPE_MS

#define INFO_VALID_CHECK_INFO
#define INFO_VALID_TARGET_ID
#define INFO_VALID_REQUESTOR_ID
#define INFO_VALID_RESPONDER_ID
#define INFO_VALID_IP

#define CHECK_VALID_TRANS_TYPE
#define CHECK_VALID_OPERATION
#define CHECK_VALID_LEVEL
#define CHECK_VALID_PCC
#define CHECK_VALID_UNCORRECTED
#define CHECK_VALID_PRECISE_IP
#define CHECK_VALID_RESTARTABLE_IP
#define CHECK_VALID_OVERFLOW

#define CHECK_VALID_BUS_PART_TYPE
#define CHECK_VALID_BUS_TIME_OUT
#define CHECK_VALID_BUS_ADDR_SPACE

#define CHECK_VALID_BITS(check)
#define CHECK_TRANS_TYPE(check)
#define CHECK_OPERATION(check)
#define CHECK_LEVEL(check)
#define CHECK_PCC
#define CHECK_UNCORRECTED
#define CHECK_PRECISE_IP
#define CHECK_RESTARTABLE_IP
#define CHECK_OVERFLOW

#define CHECK_BUS_PART_TYPE(check)
#define CHECK_BUS_TIME_OUT
#define CHECK_BUS_ADDR_SPACE(check)

#define CHECK_VALID_MS_ERR_TYPE
#define CHECK_VALID_MS_PCC
#define CHECK_VALID_MS_UNCORRECTED
#define CHECK_VALID_MS_PRECISE_IP
#define CHECK_VALID_MS_RESTARTABLE_IP
#define CHECK_VALID_MS_OVERFLOW

#define CHECK_MS_ERR_TYPE(check)
#define CHECK_MS_PCC
#define CHECK_MS_UNCORRECTED
#define CHECK_MS_PRECISE_IP
#define CHECK_MS_RESTARTABLE_IP
#define CHECK_MS_OVERFLOW

#define CTX_TYPE_MSR
#define CTX_TYPE_MMREG

enum err_types {};

static enum err_types cper_get_err_type(const guid_t *err_type)
{}

static const char * const ia_check_trans_type_strs[] =;

static const char * const ia_check_op_strs[] =;

static const char * const ia_check_bus_part_type_strs[] =;

static const char * const ia_check_bus_addr_space_strs[] =;

static const char * const ia_check_ms_error_type_strs[] =;

static const char * const ia_reg_ctx_strs[] =;

static inline void print_bool(char *str, const char *pfx, u64 check, u64 bit)
{}

static void print_err_info_ms(const char *pfx, u16 validation_bits, u64 check)
{}

static void print_err_info(const char *pfx, u8 err_type, u64 check)
{}

void cper_print_proc_ia(const char *pfx, const struct cper_sec_proc_ia *proc)
{}