1 #ifndef _MHM_H\r
2 #define _MHM_H\r
3 /******************************************************************************\r
4 * FILE PURPOSE: Definitions and API's for the multiple heap manager.\r
5 ******************************************************************************\r
6 * FILE NAME: MHM.H\r
7 *\r
8 * DESCRIPTION: Contains definitions and API's for the multiple heap manager.\r
9 *\r
10 * TABS: NONE\r
11 *\r
12 * $Id: mhm.h 1.1 1997/06/25 11:40:55 BOGDANK Exp $\r
13 *\r
14 * REVISION HISTORY:\r
15 *\r
16 * $Log: mhm.h $\r
17 * Revision 1.1 1997/06/25 11:40:55 BOGDANK\r
18 * Initial revision\r
19 *\r
20 * Copyright (c) 2016, Texas Instruments Incorporated
21 * All rights reserved.
22 *
23 * Redistribution and use in source and binary forms, with or without
24 * modification, are permitted provided that the following conditions
25 * are met:
26 *
27 * * Redistributions of source code must retain the above copyright
28 * notice, this list of conditions and the following disclaimer.
29 *
30 * * Redistributions in binary form must reproduce the above copyright
31 * notice, this list of conditions and the following disclaimer in the
32 * documentation and/or other materials provided with the distribution.
33 *
34 * * Neither the name of Texas Instruments Incorporated nor the names of
35 * its contributors may be used to endorse or promote products derived
36 * from this software without specific prior written permission.
37 *
38 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
39 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
40 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
42 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
43 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
44 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
45 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
46 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
47 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
48 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49 *
50 */
51 \r
52 /* System definitions and utilities */\r
53 #include <ti/mas/types/types.h> /* DSP types */\r
54 \r
55 /* API */\r
56 void *mhmCreate (void *base, tuint size, tword initPattern);\r
57 void *mhmAlloc (void *handle, tuint size);\r
58 void *mhmAllocAligned (void *handle, tuint size, tint log2align);\r
59 void mhmFree (void *handle, void *base);\r
60 void mhmReset (void *handle);\r
61 \r
62 #endif /* _MHM_H */\r
63 /* nothing past this point */\r
64 \r