222

#define Hi_New_MMZ(size,mmz_hwaddr,align) \

{                 \

HI_CHAR tmpStr[12]; \

snprintf(tmpStr, 11, "%d", __LINE__); \

mmz_hwaddr = (HI_U32 *)HI_MMZ_New((HI_U32)size,align,NULL,tmpStr); \

if(NULL == mmz_hwaddr) \

{ \

DoLog(C_LOG_ERROR,"HI_MMB_New failed."); \

return; \

} \

}

#define HI_MMZ_SafeDelete(phyAddr) \

do{\

HI_S32 Ret;\

Ret = HI_MMZ_Delete(phyAddr);\

if(HI_SUCCESS != Ret)\

{\

HI_MMZ_Unmap(phyAddr);\

Ret = HI_MMZ_Delete(phyAddr);\

if(HI_SUCCESS != Ret)\

{\

DoLog(C_LOG_ERROR,"Can not delete mmz 0x%x", phyAddr);\

}\

}\

}while(0)

你可能感兴趣的:(222)