blob: c97d4c2473e8b366a7a97d515725a783e6771ef1 [file] [log] [blame]
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +00001/*
Roberto Vargas05712702018-02-12 12:36:17 +00002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +00003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +00005 */
6
Antonio Nino Diaz9fe40fd2018-10-25 17:11:02 +01007#ifndef ERRATA_REPORT_H
8#define ERRATA_REPORT_H
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +00009
10#ifndef __ASSEMBLY__
11
12#include <arch.h>
13#include <arch_helpers.h>
14#include <spinlock.h>
Scott Brandenbf404c02017-04-10 11:45:52 -070015#include <utils_def.h>
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +000016
17#if DEBUG
18void print_errata_status(void);
19#else
20static inline void print_errata_status(void) {}
21#endif
22
Roberto Vargas05712702018-02-12 12:36:17 +000023void errata_print_msg(unsigned int status, const char *cpu, const char *id);
24int errata_needs_reporting(spinlock_t *lock, uint32_t *reported);
25
Jeenu Viswambharand5ec3672017-01-03 11:01:51 +000026#endif /* __ASSEMBLY__ */
27
28/* Errata status */
29#define ERRATA_NOT_APPLIES 0
30#define ERRATA_APPLIES 1
31#define ERRATA_MISSING 2
32
Antonio Nino Diaz9fe40fd2018-10-25 17:11:02 +010033#endif /* ERRATA_REPORT_H */