errata_report.h 706 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
8
#ifndef ERRATA_REPORT_H
#define ERRATA_REPORT_H
9
10
11
12
13

#ifndef __ASSEMBLY__

#include <arch.h>
#include <arch_helpers.h>
14
15
#include <lib/spinlock.h>
#include <lib/utils_def.h>
16
17
18
19
20
21
22

#if DEBUG
void print_errata_status(void);
#else
static inline void print_errata_status(void) {}
#endif

23
24
25
void errata_print_msg(unsigned int status, const char *cpu, const char *id);
int errata_needs_reporting(spinlock_t *lock, uint32_t *reported);

26
27
28
29
30
31
32
#endif /* __ASSEMBLY__ */

/* Errata status */
#define ERRATA_NOT_APPLIES	0
#define ERRATA_APPLIES		1
#define ERRATA_MISSING		2

33
#endif /* ERRATA_REPORT_H */