24 #ifndef _CLDSMMEMMGRAPI_H_
25 #define _CLDSMMEMMGRAPI_H_
52 MEM_ERR_SEQ_OPEN_LIMIT,
53 MEM_ERR_SEQ_END_OF_DATA,
61 #define MEM_BLOCK_SIZE_DFLT (256)
62 #define MEM_HEAP_SIZE_DFLT (512*1024)
63 #define MEM_SEQ_OPEN_DFLT (256)
66 #if defined(VGR_TRK_MEM) && !defined(USE_DSM_MEMCHK) && !defined(DBG_STORE_LINE)
67 #define DBG_STORE_LINE
89 typedef U32BIT * MemHandle;
105 typedef U8BIT *MemSeqRef;
111 #ifdef DSM_NO_MEM_CONTEXT
112 #define memStop( x ) memStop()
113 #ifdef DBG_STORE_LINE
114 #define memAlloc( x, i, a, b, l ) memAlloc( i, a, b, l )
116 #define memAlloc( x, i, a, b, l ) memAlloc( i, a, b )
118 #define memRelease( x, i, a ) memRelease( i, a )
119 #define memOpen( x, a, b ) memOpen( a, b )
120 #define memClose( x, a ) memClose( a )
121 #define memSeqOpen( x, a, b, c, d, e ) memSeqOpen( a, b, c, d, e )
122 #define memNumOpen( x ) memNumOpen()
123 #define memSeqNumOpen( x ) memSeqNumOpen()
125 #ifndef DBG_STORE_LINE
126 #define memAlloc( x, i, a, b, l ) memAlloc( x, i, a, b )
149 E_DsmMemErr memStart(
150 U16BIT memBlockSizeMin, U32BIT memHeapSizeMin, U16BIT memSeqOpenMin,
162 E_DsmMemErr memStop(
void* context );
169 U32BIT size, MemHandle *memArea,
int line );
174 U32BIT memRelease(
void* context,
pclDsmSetup_t setup, MemHandle memArea );
184 BOOLEAN memValidate(
void* memArea );
208 void memOpen(
void* context, MemHandle memArea,
void* *memPtr );
219 U32BIT memNumOpen(
void* context );
269 E_DsmMemErr memSeqOpen(
void* context,
270 MemHandle memArea, U32BIT offset, U32BIT length, BOOLEAN asyncAccess,
271 MemSeqRef *memAreaRef );
287 E_DsmMemErr memSeqOpenClone(
288 MemSeqRef memAreaRefOrig, MemSeqRef *memAreaRefClone );
297 void memSeqClose( MemSeqRef memAreaRef );
319 void memSeqAccessContig(
320 MemSeqRef memAreaRef, U8BIT* *memPtr, U32BIT *numContigBytes );
322 void memSeqAccessCurrent(
323 MemSeqRef memAreaRef, U8BIT* *memPtr, U32BIT *numContigBytes );
334 U32BIT memSeqNumOpen(
void* context );
344 void memSeqValidate( MemSeqRef memAreaRef, BOOLEAN *valid );
354 void memSeqSize( MemSeqRef memAreaRef, U32BIT *size );
365 E_DsmMemErr memSeqReadByte( MemSeqRef src, U8BIT *byte );
376 E_DsmMemErr memSeqWriteByte( U8BIT byte, MemSeqRef dest );
389 E_DsmMemErr memSeqRead(
390 MemSeqRef src, U8BIT *dest, U32BIT numBytes, U32BIT *numBytesActual );
403 E_DsmMemErr memSeqWrite(
404 U8BIT *src, MemSeqRef dest, U32BIT numBytes, U32BIT *numBytesActual );
417 E_DsmMemErr memSeqCopy(
418 MemSeqRef src, MemSeqRef dest, U32BIT numBytes, U32BIT *numBytesActual );
430 E_DsmMemErr memSeqCompContig(
431 U8BIT* contig, MemSeqRef memAreaRef, U32BIT numBytes, BOOLEAN *equal );
444 E_DsmMemErr memSeqCompMgd(
445 MemSeqRef memAreaRef1, MemSeqRef memAreaRef2, U32BIT numBytes,
457 E_DsmMemErr memSeqSetPosRel( MemSeqRef memAreaRef, S32BIT position );
467 E_DsmMemErr memSeqSetPosAbs( MemSeqRef memAreaRef, U32BIT position );
478 void memSeqReadPos( MemSeqRef memAreaRef, U32BIT *position );
Definition: cldsmcc.h:681
System Wide Global Technical Data Type Definitions.