| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2001-2010, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bmem_debug.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/7 $ |
|---|
| 12 | * $brcm_Date: 2/24/10 4:14p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/basemodules/mem/bmem_debug.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/7 2/24/10 4:14p erickson |
|---|
| 21 | * SW3548-2721: don't print uninitialized file and line in |
|---|
| 22 | * BMEM_Dbg_DumpHeap. make BMEM_Dbg_DumpBlock private because its params |
|---|
| 23 | * are internal. |
|---|
| 24 | * |
|---|
| 25 | * Hydra_Software_Devel/6 1/21/05 4:11p albertl |
|---|
| 26 | * PR13717: Removed BMEM_DBG_ENTER defines. |
|---|
| 27 | * |
|---|
| 28 | * Hydra_Software_Devel/5 12/31/03 12:02p jasonh |
|---|
| 29 | * PR 8940: Changed return type of destroyheap to void. Removed use of |
|---|
| 30 | * DEBUG macro and printf. |
|---|
| 31 | * |
|---|
| 32 | * Hydra_Software_Devel/4 10/2/03 11:52a hongtaoz |
|---|
| 33 | * Removed "//" comment lines for ANSI C compliance. |
|---|
| 34 | * |
|---|
| 35 | * Hydra_Software_Devel/3 9/2/03 1:35p vadim |
|---|
| 36 | * Some magnum updates. |
|---|
| 37 | * |
|---|
| 38 | * Hydra_Software_Devel/2 3/20/03 3:51p erickson |
|---|
| 39 | * renamed all MEM_ to BMEM_ |
|---|
| 40 | * |
|---|
| 41 | * Hydra_Software_Devel/1 3/20/03 3:24p erickson |
|---|
| 42 | * initial bmem work, taken from SetTop/memorylib |
|---|
| 43 | * |
|---|
| 44 | * SanJose_DVTSW_Devel\4 4/18/02 11:28a poz |
|---|
| 45 | * Use BRCM_DBG_OUT for output. |
|---|
| 46 | * |
|---|
| 47 | * SanJose_DVTSW_Devel\3 4/15/02 6:3p poz |
|---|
| 48 | * Fixed multiple typedef declaration. |
|---|
| 49 | * |
|---|
| 50 | * SanJose_DVTSW_Devel\2 4/15/02 1:35p poz |
|---|
| 51 | * Removed unused macros. |
|---|
| 52 | * Removed extra include. |
|---|
| 53 | * Updated copyright and keywords in header. |
|---|
| 54 | * |
|---|
| 55 | ***************************************************************************/ |
|---|
| 56 | #ifndef BMEM_DEBUG_H__ |
|---|
| 57 | #define BMEM_DEBUG_H__ |
|---|
| 58 | |
|---|
| 59 | #include "bmem.h" |
|---|
| 60 | |
|---|
| 61 | #ifdef __cplusplus |
|---|
| 62 | extern "C" { |
|---|
| 63 | #endif |
|---|
| 64 | |
|---|
| 65 | /* |
|---|
| 66 | * These functions print out various info from the heap for debugging |
|---|
| 67 | * purposes. |
|---|
| 68 | */ |
|---|
| 69 | void BMEM_Dbg_Map(BMEM_Handle pheap); |
|---|
| 70 | void BMEM_Dbg_DumpHeap(BMEM_Handle pheap); |
|---|
| 71 | |
|---|
| 72 | void BMEM_Dbg_ClearErrorCount(BMEM_Handle pheap); |
|---|
| 73 | uint32_t BMEM_Dbg_GetErrorCount(BMEM_Handle pheap); |
|---|
| 74 | |
|---|
| 75 | #ifdef __cplusplus |
|---|
| 76 | } /* end extern "C" */ |
|---|
| 77 | #endif |
|---|
| 78 | |
|---|
| 79 | #endif /* #ifndef BMEM_DEBUG_H__ */ |
|---|
| 80 | |
|---|
| 81 | /* End of File */ |
|---|
| 82 | |
|---|