DSMCC
15.3.1
|
00001 /******************************************************************************* 00002 * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org) 00003 * Copyright © 2004 Ocean Blue Software Ltd 00004 * Copyright © 2001 Koninklijke Philips Electronics N.V 00005 * 00006 * This file is part of a DTVKit Software Component 00007 * You are permitted to copy, modify or distribute this file subject to the terms 00008 * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org 00009 * 00010 * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 00011 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 00012 * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 00013 * 00014 * If you or your organisation is not a member of DTVKit then you have access 00015 * to this source code outside of the terms of the licence agreement 00016 * and you are expected to delete this and any associated files immediately. 00017 * Further information on DTVKit, membership and terms can be found at www.dtvkit.org 00018 *******************************************************************************/ 00025 #ifndef _CACHEMGR_H_ 00026 #define _CACHEMGR_H_ 00027 00028 00029 /*-------------------------------- Includes --------------------------------*/ 00030 #include "clDsmSystem.h" 00031 #include "clDsmMemMgrAPI.h" /*for DBG_STORE_LINE*/ 00032 00033 00034 #ifdef __cplusplus 00035 extern "C" { 00036 #endif 00037 00038 00039 /*----------------------------- Exported Macros ----------------------------*/ 00040 00041 #ifdef DBG_STORE_LINE 00042 #define cmMemGet(i,s,a) cmMemGetFnc(i,s,a,__LINE__) 00043 #else 00044 #define cmMemGetFnc(i,s,a,l) cmMemGet(i,s,a) 00045 #endif 00046 00047 /*------------------------------ Exported Types ----------------------------*/ 00048 00049 00050 /*------------------------------ Exported Data -----------------------------*/ 00051 00052 00053 /*--------------------------- Exported Prototypes --------------------------*/ 00054 clDsmErr_t cmMemGetFnc( pclDsmInstData_t idp, U32BIT size, 00055 MemHandle *phMemArea, int line ); 00056 00057 void cmMemRelease( pclDsmInstData_t idp, MemHandle *phMemArea ); 00058 00059 clDsmErr_t cmMemPurgeCache( pclDsmInstData_t idp, U32BIT maxMemory ); 00060 00061 /*----------------------------------------------------------------------------*/ 00062 00063 #ifdef __cplusplus 00064 } 00065 #endif 00066 #endif /* _CACHEMGR_H_ */