PcctParser.h 834 B

123456789101112131415161718192021222324252627282930313233
  1. /** @file
  2. Header file for PCCT parser
  3. Copyright (c) 2020, Arm Limited.
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef PCCT_PARSER_H_
  7. #define PCCT_PARSER_H_
  8. /**
  9. Minimum value for the 'length' field in subspaces of types 0, 1 and 2.
  10. */
  11. #define MIN_MEMORY_RANGE_LENGTH 8
  12. /**
  13. Minimum value for the 'length' field in subspaces of types 3 and 4.
  14. */
  15. #define MIN_EXT_PCC_SUBSPACE_MEM_RANGE_LEN 16
  16. /**
  17. Maximum number of PCC subspaces.
  18. */
  19. #define MAX_PCC_SUBSPACES 256
  20. /**
  21. Parser for the header of any type of PCC subspace.
  22. */
  23. #define PCC_SUBSPACE_HEADER() \
  24. {L"Type", 1, 0, L"0x%x", NULL, (VOID**)&PccSubspaceType, NULL, NULL}, \
  25. {L"Length", 1, 1, L"%u", NULL, (VOID**)&PccSubspaceLength, NULL, NULL}
  26. #endif // PCCT_PARSER_H_