PM5358 S/UNI-4x622 Driver Manual
RTOS Interface
Proprietary and Confidential to PMC-Sierra, Inc. 113
Document ID: PMC-2010419, Issue 1
Prototype void sysSuni4x622MemSet(UINT1 *pdst, UINT1 *psrc,
UINT2 sz)
Inputs pdst : (pointer to) the destination memory
psrc : (pointer to) the source memory
sz : size
Outputs None
Returns None

Freeing Memory: sysSuni4x622MemFree

This function frees memory allocated using sysSuni4x622MemAlloc.
Format #define sysSuni4x622MemFree(pfirstByte)
Prototype void sysSuni4x622MemFree(UINT1 *pfirstByte)
Inputs pfirstByte : (pointer to) first byte of the memory region being de-
allocated
Outputs None
Returns None

6.2 Buffer 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