Jeenu Viswambharan | d5ec367 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 1 | /* |
Boyan Karatotev | 06236c9 | 2023-01-25 18:50:10 +0000 | [diff] [blame^] | 2 | * Copyright (c) 2017-2023, ARM Limited and Contributors. All rights reserved. |
Jeenu Viswambharan | d5ec367 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Jeenu Viswambharan | d5ec367 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | 9fe40fd | 2018-10-25 17:11:02 +0100 | [diff] [blame] | 7 | #ifndef ERRATA_REPORT_H |
| 8 | #define ERRATA_REPORT_H |
Jeenu Viswambharan | d5ec367 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 9 | |
Julius Werner | 53456fc | 2019-07-09 13:49:11 -0700 | [diff] [blame] | 10 | #ifndef __ASSEMBLER__ |
Jeenu Viswambharan | d5ec367 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 11 | |
Jeenu Viswambharan | d5ec367 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 12 | void print_errata_status(void); |
Roberto Vargas | 0571270 | 2018-02-12 12:36:17 +0000 | [diff] [blame] | 13 | void errata_print_msg(unsigned int status, const char *cpu, const char *id); |
Roberto Vargas | 0571270 | 2018-02-12 12:36:17 +0000 | [diff] [blame] | 14 | |
Julius Werner | 53456fc | 2019-07-09 13:49:11 -0700 | [diff] [blame] | 15 | #endif /* __ASSEMBLER__ */ |
Jeenu Viswambharan | d5ec367 | 2017-01-03 11:01:51 +0000 | [diff] [blame] | 16 | |
| 17 | /* Errata status */ |
| 18 | #define ERRATA_NOT_APPLIES 0 |
| 19 | #define ERRATA_APPLIES 1 |
| 20 | #define ERRATA_MISSING 2 |
| 21 | |
johpow01 | 85ea43d | 2020-10-07 15:08:01 -0500 | [diff] [blame] | 22 | /* Macro to get CPU revision code for checking errata version compatibility. */ |
| 23 | #define CPU_REV(r, p) ((r << 4) | p) |
| 24 | |
Antonio Nino Diaz | 9fe40fd | 2018-10-25 17:11:02 +0100 | [diff] [blame] | 25 | #endif /* ERRATA_REPORT_H */ |