errata.h 827 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef ERRATA_REPORT_H
  7. #define ERRATA_REPORT_H
  8. #ifndef __ASSEMBLER__
  9. #include <arch.h>
  10. #include <arch_helpers.h>
  11. #include <lib/spinlock.h>
  12. #include <lib/utils_def.h>
  13. #if DEBUG
  14. void print_errata_status(void);
  15. #else
  16. static inline void print_errata_status(void) {}
  17. #endif
  18. void errata_print_msg(unsigned int status, const char *cpu, const char *id);
  19. int errata_needs_reporting(spinlock_t *lock, uint32_t *reported);
  20. #endif /* __ASSEMBLER__ */
  21. /* Errata status */
  22. #define ERRATA_NOT_APPLIES 0
  23. #define ERRATA_APPLIES 1
  24. #define ERRATA_MISSING 2
  25. /* Macro to get CPU revision code for checking errata version compatibility. */
  26. #define CPU_REV(r, p) ((r << 4) | p)
  27. #endif /* ERRATA_REPORT_H */