debug.h (927B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 */ 7 8 #ifndef _SOC_DEBUG_H 9 #define _SOC_DEBUG_H 10 11 #include <soc/cmdebug.h> 12 13 extern void soc_reg_watch_set(int unit, int value); 14 extern void soc_mem_watch_set(int unit, int value); 15 16 /**************************************************************** 17 * 18 * SOC specific debugging flags 19 */ 20 21 #if defined(BROADCOM_DEBUG) 22 23 #define _SOC_MSG(string) "%s[%d]%s unit %d: " string "\n", __FILE__, __LINE__, FUNCTION_NAME(), unit 24 25 #define _BSL_SOC_MSG(string) _ERR_MSG_MODULE_NAME, unit, "%s[%d]%s unit %d: " string "\n", __FILE__, __LINE__, FUNCTION_NAME(), unit 26 27 #else 28 29 #define _SOC_MSG(string) string 30 31 #define _BSL_SOC_MSG(string) _ERR_MSG_MODULE_NAME, unit, string 32 33 #endif /* defined(BROADCOM_DEBUG) */ 34 35 #endif /* !_SOC_DEBUG_H */