2017-01-03 11:01:51 +00:00
|
|
|
/*
|
2018-02-12 12:36:17 +00:00
|
|
|
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
|
2017-01-03 11:01:51 +00:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2017-01-03 11:01:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ERRATA_H__
|
|
|
|
#define __ERRATA_H__
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#include <arch.h>
|
|
|
|
#include <arch_helpers.h>
|
|
|
|
#include <spinlock.h>
|
2017-04-10 19:45:52 +01:00
|
|
|
#include <utils_def.h>
|
2017-01-03 11:01:51 +00:00
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
void print_errata_status(void);
|
|
|
|
#else
|
|
|
|
static inline void print_errata_status(void) {}
|
|
|
|
#endif
|
|
|
|
|
2018-02-12 12:36:17 +00:00
|
|
|
void errata_print_msg(unsigned int status, const char *cpu, const char *id);
|
|
|
|
int errata_needs_reporting(spinlock_t *lock, uint32_t *reported);
|
|
|
|
|
2017-01-03 11:01:51 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
/* Errata status */
|
|
|
|
#define ERRATA_NOT_APPLIES 0
|
|
|
|
#define ERRATA_APPLIES 1
|
|
|
|
#define ERRATA_MISSING 2
|
|
|
|
|
|
|
|
#endif /* __ERRATA_H__ */
|
|
|
|
|