source: svn/trunk/newcon3bcm2_21bu/magnum/portinginterface/vdc/7552/bvdc_heap.c

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2007, 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: bvdc_heap.c $
11 * $brcm_Revision: Hydra_Software_Devel/2 $
12 * $brcm_Date: 1/24/07 9:07p $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /magnum/portinginterface/vdc/7440/bvdc_heap.c $
19 *
20 * Hydra_Software_Devel/2   1/24/07 9:07p albertl
21 * PR22237:  Updated BMEM calls to use new BMEM_Heap functions.
22 *
23 * Hydra_Software_Devel/Refsw_Devel_3563/1   9/20/06 3:52p jessem
24 * PR 20768: Initial version.
25 *
26 *
27 ***************************************************************************/
28#include "bstd.h"                /* standard types */
29#include "bdbg.h"                /* Dbglib */
30#include "bkni.h"                /* malloc */
31
32#include "bmem.h"
33#include "bvdc.h"                /* Video display */
34#include "bvdc_bufferheap_priv.h"
35
36BDBG_MODULE(BVDC_HEAP);
37
38/***************************************************************************
39 *
40 */
41BERR_Code BVDC_Heap_Create
42        ( BVDC_Handle                       hVdc,
43          BVDC_Heap_Handle                 *phHeap,
44          BMEM_Heap_Handle                  hMem,
45          const BVDC_Heap_Settings         *pSettings )
46{
47        BERR_Code err = BERR_SUCCESS;
48
49        BDBG_ENTER(BVDC_Heap_Create);
50        BDBG_ASSERT(hVdc);
51        BDBG_ASSERT(hMem);
52        BDBG_ASSERT(pSettings);
53
54        err = BVDC_P_BufferHeap_Create(hVdc, phHeap, hMem, pSettings);
55        if (err != BERR_SUCCESS)
56                return err;
57
58        BDBG_LEAVE(BVDC_Heap_Create);
59        return BERR_SUCCESS;
60       
61}
62
63/***************************************************************************
64 *
65 */
66BERR_Code BVDC_Heap_Destroy
67        ( BVDC_Heap_Handle                 hHeap)
68{
69        BERR_Code err = BERR_SUCCESS;
70
71        BDBG_ENTER(BVDC_Heap_Destroy);
72        BDBG_ASSERT(hHeap);
73
74        err = BVDC_P_BufferHeap_Destroy(hHeap);
75        if (err != BERR_SUCCESS)
76                return err;
77
78        BDBG_LEAVE(BVDC_Heap_Destroy);
79        return BERR_SUCCESS;   
80}
81
Note: See TracBrowser for help on using the repository browser.