1/******************************************************************************
2
3 � 1995-2003, 2004, 2005-2011 Freescale Semiconductor, Inc.
4 All rights reserved.
5
6 This is proprietary source code of Freescale Semiconductor Inc.,
7 and its use is subject to the NetComm Device Drivers EULA.
8 The copyright notice above does not evidence any actual or intended
9 publication of such source code.
10
11 ALTERNATIVELY, redistribution and use in source and binary forms, with
12 or without modification, are permitted provided that the following
13 conditions are met:
14     * Redistributions of source code must retain the above copyright
15       notice, this list of conditions and the following disclaimer.
16     * Redistributions in binary form must reproduce the above copyright
17       notice, this list of conditions and the following disclaimer in the
18       documentation and/or other materials provided with the distribution.
19     * Neither the name of Freescale Semiconductor nor the
20       names of its contributors may be used to endorse or promote products
21       derived from this software without specific prior written permission.
22
23 THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
24 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34
35 **************************************************************************/
36#ifndef __MEM_H
37#define __MEM_H
38
39#include "error_ext.h"
40#include "std_ext.h"
41#include "list_ext.h"
42
43
44#define __ERR_MODULE__  MODULE_MEM
45
46
47
48
49/**************************************************************************//**
50 @Description   Memory allocation owner.
51*//***************************************************************************/
52typedef enum e_MemAllocOwner
53{
54    e_MEM_ALLOC_OWNER_LOCAL,
55    e_MEM_ALLOC_OWNER_LOCAL_SMART,
56    e_MEM_ALLOC_OWNER_EXTERNAL
57} e_MemAllocOwner;
58
59
60#ifdef DEBUG_MEM_LEAKS
61
62/**************************************************************************//**
63 @Description   MEM block information for leaks detection.
64*//***************************************************************************/
65typedef struct t_MemDbg
66{
67    uintptr_t   ownerAddress;
68
69} t_MemDbg;
70
71#endif /* DEBUG_MEM_LEAKS */
72
73
74#endif /* __MEM_H */
75