1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: dbg_Enum.h 4 5 Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 46347 $ 14 *---------------------------------------------------------------------------*/ 15 16 /* Please see man pages for details 17 18 19 20 */ 21 22 #ifndef NN_DBG_DBG_ENUM_H_ 23 #define NN_DBG_DBG_ENUM_H_ 24 25 26 typedef enum nndbgBreakReason 27 { 28 NN_DBG_BREAK_REASON_PANIC, 29 NN_DBG_BREAK_REASON_ASSERT, 30 NN_DBG_BREAK_REASON_USER, 31 32 NN_DBG_BREAK_REASON_MAX_BIT = (1u << 30) 33 } 34 nndbgBreakReason; 35 36 //------------------------------------------------------------------- 37 // for C / C++ 38 39 #ifdef __cplusplus 40 41 namespace nn { namespace dbg { 42 43 /* Please see man pages for details 44 45 46 47 */ 48 enum BreakReason 49 { 50 BREAK_REASON_PANIC, // 51 BREAK_REASON_ASSERT, // 52 BREAK_REASON_USER, // 53 BREAK_REASON_LOAD_RO, 54 BREAK_REASON_UNLOAD_RO, 55 56 BREAK_REASON_MAX_BIT = (1u << 31) 57 }; 58 59 enum PerformanceCounterOperation 60 { 61 PERFORMANCE_COUNTER_OPERATION_ACQUIRE_CONTROL, 62 PERFORMANCE_COUNTER_OPERATION_RELEASE_CONTROL, 63 PERFORMANCE_COUNTER_OPERATION_GET_VALUE, 64 PERFORMANCE_COUNTER_OPERATION_SET_VALUE, 65 PERFORMANCE_COUNTER_OPERATION_GET_OVERFLOW, 66 PERFORMANCE_COUNTER_OPERATION_RESET, 67 PERFORMANCE_COUNTER_OPERATION_GET_EVENT, 68 PERFORMANCE_COUNTER_OPERATION_SET_EVENT, 69 PERFORMANCE_COUNTER_OPERATION_USE_VIRTUAL_COUNTER, 70 71 PERFORMANCE_COUNTER_OPERATION_MAX_BIT = (1u << 31) 72 }; 73 }} 74 75 #endif // ifdef __cplusplus 76 77 #endif /* NN_DBG_DBG_ENUM_H_ */ 78