PM5365 PMC-Sierra, Inc., PM5365 Datasheet - Page 90

no-image

PM5365

Manufacturer Part Number
PM5365
Description
TEMUX/TEMAP/TECT3 T1/E1 FRAMER, VT/TU MAPPER, M12/M13 MUX DRIVER MANUAL
Manufacturer
PMC-Sierra, Inc.
Datasheet
Proprietary and Confidential to PMC-Sierra, Inc., and for its Customers’ Internal Use
Document ID: PMC-1991611, Issue 2
Step 2: Porting Drivers to Hardware Platforms
This section describes how to modify the TEMUX/TEMAP/TECT3 driver for your hardware
platform.
To port the driver to your hardware platform:
1. Modify the low-level device read/write macros in the
Step 3: Porting Driver Application-Specific Elements
Application specific elements are configuration constants used by the API for developing an
application. This section describes how to modify the application specific elements in the
TEMUX/TEMAP/TECT3 driver.
To port the driver’s application-specific elements:
1. Modify the type definition for the user context. The user context is used to identify a device
2. Modify the value of the base error code (
3. Define the application-specific constants for your hardware configuration in
Service Type
Device I/O
Interrupt
in your application callbacks.
driver error codes do not overlap other error codes used in your application.
Function Name
sysTemuxReadReg
sysTemuxWriteReg
sysTemuxSafeRead
sysTemuxISRHandlerInstall
sysTemuxISRHandlerRemove
sysTemuxISRHandler
sysTemuxDPRTask
TEMUX/TEMAP/TECT3 (PM8315, PM5365, PM4328) Driver Manual
TMX_ERR_BASE
Description
Reads a device register given its real
address in memory
Writes to a device register given its real
address in memory
Reads a device register in ‘safe’ fashion
when adding a device
Installs the interrupt handler for the
RTOS
Removes the interrupt handler from the
RTOS
Interrupt handler for the
TEMUX/TEMAP/TECT3 device
Task that calls the
TEMUX/TEMAP/TECT3 DPR
tmx_hw.h
) in
temux.h
file.
. This ensures that the
tmx_api.h
Porting Drivers
:
90

Related parts for PM5365