PM5358 S/UNI-4x622 Driver Manual RTOS Interface

Prototype

Inputs

Outputs Returns

void sysSuni4x622MemSet(UINT1 *pdst, UINT1 *psrc, UINT2 sz)

pdst

: (pointer to) the destination memory

psrc

: (pointer to) the source memory

sz

: size

None

 

None

 

Freeing Memory: sysSuni4x622MemFree

This function frees memory allocated using sysSuni4x622MemAlloc.

Format

Prototype

Inputs

Outputs Returns

#define sysSuni4x622MemFree(pfirstByte)

void sysSuni4x622MemFree(UINT1 *pfirstByte)

pfirstByte : (pointer to) first byte of the memory region being de- allocated

None

None

6.2Buffer Management

All operating systems provide some sort of buffer system, particularly for use in sending and receiving messages. The following calls, provided by the USER, allow the driver to Get and Return buffers from the RTOS. It is the USER’s responsibility to create any special resources or pools to handle buffers of these sizes during the sysSuni4x622BufferStart call.

Starting Buffer Management: sysSuni4x622BufferStart

This function alerts the RTOS that the time has come to make sure ISV buffers and DPV buffers are available and sized correctly. This may involve the creation of new buffer pools and it may involve nothing, depending on the RTOS.

Format

#define sysSuni4x622BufferStart()

Prototype

INT4 sysSuni4x622BufferStart(void)

Inputs

None

Outputs

None

Returns

Success = 0

Proprietary and Confidential to PMC-Sierra, Inc.

113

Document ID: PMC-2010419, Issue 1

 

Page 113
Image 113
PMC-Sierra PM5358 S/UNI 4x622 Buffer Management, Freeing Memory sysSuni4x622MemFree, Inputs None Outputs Returns Success =