Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 1 | |
Jerry Ge | cf305db | 2023-03-06 13:07:36 -0800 | [diff] [blame] | 2 | // Copyright (c) 2020-2023, ARM Limited. |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 3 | // |
| 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 Ge | 9c9c8da | 2023-07-19 23:08:16 +0000 | [diff] [blame] | 22 | #include <stdint.h> |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 23 | #ifndef DEBUG_TYPES_H_ |
| 24 | #define DEBUG_TYPES_H_ |
| 25 | |
| 26 | #ifdef __cplusplus |
| 27 | extern "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 Ge | cf305db | 2023-03-06 13:07:36 -0800 | [diff] [blame] | 46 | #define DEBUG_MODE(NAME, BIT) DEBUG_##NAME = (UINT64_C(1) << BIT), |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 47 | #include "debug_modes.def" |
| 48 | #undef DEBUG_MODE |
Jerry Ge | cf305db | 2023-03-06 13:07:36 -0800 | [diff] [blame] | 49 | DEBUG_ALL = UINT64_C(0xffffffffffffffff) |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 50 | } func_debug_mode_e; |
| 51 | |
Jerry Ge | cf305db | 2023-03-06 13:07:36 -0800 | [diff] [blame] | 52 | #define DEBUG_INST_ALL UINT64_C(0xffffffffffffffff) |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 53 | |
| 54 | #ifdef __cplusplus |
| 55 | } |
| 56 | #endif |
| 57 | |
| 58 | #endif |