blob: 4b97710379ab3671e589f62e2097660de800791f [file] [log] [blame]
Eric Kunzee5e26762020-10-13 16:11:07 -07001
Jerry Gecf305db2023-03-06 13:07:36 -08002// Copyright (c) 2020-2023, ARM Limited.
Eric Kunzee5e26762020-10-13 16:11:07 -07003//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16/*
17 * Filename: src/debug_types.h
18 * Description:
19 * Defines fundamental debugger datatypes for the functional model
20 */
21
Jerry Ge9c9c8da2023-07-19 23:08:16 +000022#include <stdint.h>
Eric Kunzee5e26762020-10-13 16:11:07 -070023#ifndef DEBUG_TYPES_H_
24#define DEBUG_TYPES_H_
25
26#ifdef __cplusplus
27extern "C"
28{
29#endif
30
31 // Debug verbosity mask
32 typedef enum func_debug_verbosity_e
33 {
34 DEBUG_VERB_NONE = 0x00,
35 DEBUG_VERB_INFO = 0x01, // Informational debugging messages
36 DEBUG_VERB_IFACE = 0x02, // Interface debugging support
37 DEBUG_VERB_LOW = 0x04, // Low, medium, and high levels of debug printout
38 DEBUG_VERB_MED = 0x08,
39 DEBUG_VERB_HIGH = 0x10
40 } func_debug_verbosity_e;
41
42 // Generated debug modes enumeration
43 typedef enum func_debug_mode_e
44 {
45 DEBUG_NONE = 0x0,
Jerry Gecf305db2023-03-06 13:07:36 -080046#define DEBUG_MODE(NAME, BIT) DEBUG_##NAME = (UINT64_C(1) << BIT),
Eric Kunzee5e26762020-10-13 16:11:07 -070047#include "debug_modes.def"
48#undef DEBUG_MODE
Jerry Gecf305db2023-03-06 13:07:36 -080049 DEBUG_ALL = UINT64_C(0xffffffffffffffff)
Eric Kunzee5e26762020-10-13 16:11:07 -070050 } func_debug_mode_e;
51
Jerry Gecf305db2023-03-06 13:07:36 -080052#define DEBUG_INST_ALL UINT64_C(0xffffffffffffffff)
Eric Kunzee5e26762020-10-13 16:11:07 -070053
54#ifdef __cplusplus
55}
56#endif
57
58#endif