PM5358 S/UNI-4x622 Driver Manual
Porting the S/UNI-4x622 Driver
Proprietary and Confidential to PMC-Sierra, Inc. 120
Document ID: PMC-2010419, Issue 1
SUNI4x622_DPR_TASK_STACK_SZ
DPR task stack size, in bytes 8192
SUNI4x622_POLL_DELAY
The constant used in polling task mode
defines the interval time in millisecond
between each polling action
100
SUNI4x622_TASK_SHUTDOWN_DELAY
Delay time in millisecond. When
clearing the DPR loop active flag in the
DPR task, this delay is used to
gracefully shutdown the DPR task
before deleting it
100
SUNI4x622_MAX_MSGS
The queue message depth of the queue
used for pass interrupt context between
the ISR task and DPR task
1000
2. Code the callback functions according to your application. The driver will call these callback
functions when an event occurs on the device. The application is responsible for releasing the
DPV buffer using
sysSuni4x622DPVBufferRtn after necessary processing is completed.
These functions must conform to the following prototypes:
void cbackSuni4x622XX(sSUNI4x622_USR_CTXT usrCtxt, sSUNI4x622_DPV
*pdpv)
Procedure 4: Building the Driver
This section describes how to build the driver.
To build the driver:
1. Ensure that the directory variable names in the
makefile reflect your actual driver and
directory names.
2. Compile the source files and build the driver using your make utility.
3. Link the driver to your application code.