PM5358 S/UNI-4x622 Driver Manual
Application Programming Interface
Proprietary and Confidential to PMC-Sierra, Inc. 75
Document ID: PMC-2010419, Issue 1
ppyldcfg : (pointer to) payload configuration parameters
Outputs
None
Returns
Success =
SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_CHAN
SUNI4x622_ERR_INVALID_ARG
Valid States
SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects
None
4.9 Interface Configuration
The Interface Configuration provides FIFO management to separate the line side timing from the
high layer ATM/POS link layer timing, the line and system interface configuration.
Resetting the Receive/Transmit FIFO: suni4x622FIFOReset
This function resets the receive and/or transmit FIFO.
Prototype
INT4 suni4x622FIFOReset(sSUNI4x622_HNDL deviceHandle,
UINT1 channel, UINT1 fifotype)
Inputs
deviceHandle : device handle (from suni4x622Add)
channel : channel number
fifotype : =0 if RX; = 1 if TX; = 2 if both
Outputs
None
Returns
Success =
SUNI4x622_SUCCESS
Failure = SUNI4x622_ERR_INVALID_DEVICE_STATE
SUNI4x622_ERR_INVALID_DEV
SUNI4x622_ERR_INVALID_CHAN
SUNI4x622_ERR_INVALID_ARG
Valid States
SUNI4x622_ACTIVE, SUNI4x622_INACTIVE
Side Effects
None
Configuring the Receive and Transmit FIFO: suni4x622FIFOCfg
This function configures the FIFO based on the FIFO configuration supplied.
Prototype
INT4 suni4x622FIFOCfg(sSUNI4x622_HNDL deviceHandle,
UINT1 channel, sSUNI4x622_CFG_FIFO *pfifocfg)