cm_mem.h

来自「中国石油二期加油站IC系统后台通讯软件」· C头文件 代码 · 共 85 行

H
85
字号

/********************************************************************20**
 
     Name:     Common Memory Manager 
 
     Type:     C include file
 
     Desc:     Defines that are required by the Common Memory Manager.
 
     File:     cm_mem.h
 
     Sid:      cm_mem.h 1.2  -  08/12/98 13:53:26
 
     Prg:      rm
 
*********************************************************************21*/

#ifndef __CMMEMH_
#define __CMMEMH_

#ifdef __cplusplus
extern "C" {
#endif


#define CMM_MINBUFSIZE   (PTRALIGN(sizeof(CmHEntry)))
#define CMM_DATALIGN(s, msz)  (((Size)(s) % msz) ? ((Size)(s) + ((msz - (Size)(s) % msz))): (Size)(s)) 

#define CMM_BUFSIZE(s, msz)   ((Size)(s) < (Size) msz ? \
                                      (Size) msz : \
                                      (Size) CMM_DATALIGN(s, msz))

/* defines */
#define  CMM_MAX_BKT_ENT    30  
#define  CMM_MAX_MAP_ENT    128

/* Valid Physical Bit */
#define  CMM_REG_PHY_VALID  0x01 
#define  CMM_REG_OUTBOARD   0x02 
#define  DFLT_REG_FLAG       CMM_REG_PHY_VALID

#ifdef __cplusplus
}
#endif

#endif



/********************************************************************30**
 
         End of file: cm_mem.h 1.2  -  08/12/98 13:53:26
 
*********************************************************************31*/


/********************************************************************40**
 
        Notes:
 
*********************************************************************41*/

/********************************************************************50**
 
*********************************************************************51*/


/********************************************************************60**
 
        Revision history:
 
*********************************************************************61*/

/********************************************************************90**
 
    ver       pat    init                  description
------------ -------- ---- -----------------------------------------------
1.1          ---      rm   1. initial release

1.2          ---      kp   1. C++ compilable

*********************************************************************91*/


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?