PMC-Sierra PM5358 S/UNI 4x622 Power Screwdriver User Manual


 
PM5358 S/UNI-4x622 Driver Manual
Porting the S/UNI-4x622 Driver
Proprietary and Confidential to PMC-Sierra, Inc. 117
Document ID: PMC-2010419, Issue 1
7 PORTING THE S/UNI-4X622 DRIVER
This section outlines how to port the S/UNI-4x622 device driver to your hardware and OS
platform. However, this manual can offer only guidelines for porting the S/UNI-4x622 driver
because each platform and application is unique.
7.1 Driver Source Files
The C source files listed in the next table contain the code for the S/UNI-4x622 driver. You may
need to modify the code or develop additional code. The code is in the form of constants, macros,
and functions. For the ease of porting, the code is grouped into source files (
src) and include
files (
inc). The src files contain the functions and the inc files contain the constants and
macros.
7.2 Driver Porting Procedures
The following procedures summarize how to port the S/UNI-4x622 driver to your platform. The
subsequent sections describe these procedures in more detail.
To port the S/UNI-4x622 driver to your platform:
Procedure 1: Port the driver’s OS extensions
Procedure 2: Port the driver to your hardware platform
Procedure 3: Port the driver’s application-specific elements
Procedure 4: Build the driver
Porting Assumptions
The following porting assumptions have been made:
It is assumed that RAM assigned to the driver’s static variables is initialized to ZERO before
any driver function is called.
It is assumed that a RAM stack of 4K is available to all of the driver’s non-ISR functions and
that a RAM stack of 1K is available to the driver’s ISR functions.
It is assumed that there is no memory management or MMU in the system or that all accesses
by the driver, to memory or hardware can be direct.