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

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
6.2
Proprietary and Confidential to PMC-Sierra, Inc., and for its Customers’ Internal Use
Document ID: PMC-1991611, Issue 2
Writing Register Values: sysTemuxWriteReg
This macro writes the supplied value to the specific register location. This macro should be
UINT1
There is no need for error recovery in this function.
Interrupt Servicing
General ISR Routines
The porting of an ISR routine between platforms is a rather difficult task. There are so many
different implementations of the hardware level routines that creating a universal routine is
impossible.
In this driver, the user is responsible for creating a ‘shell’ (
in turn calls an API function,
the ISR related housekeeping that is required by the device. This method was chosen because it
places the burden of determining which device(s) is(are) requesting service on the user, rather
than attempting to incorporate the many possible hardware scenarios into the driver.
During execution of the API function
informs the application that it is time to install (uninstall) this ‘shell’ via the user supplied
function:
Note: A device can be initialized with interrupts disabled. In that mode, a polling routine can be
invoked independently that in-turn processes the interrupt status in the device.
Installing Interrupt Handlers: sysTemuxISRHandlerInstall
This function installs the user-supplied Interrupt-Service Routine,
the processor’s interrupt vector table.
Prototype
Inputs
Outputs
Returns
Prototype
Inputs
Outputs
oriented and should be defined by the user to reflect the target system’s addressing logic.
sysTemuxISRHandlerInstall
sysTemuxWriteReg (address, data)
address
data
None
value written to the addressed register location
sysTemuxISRHandlerInstall (temuxISR)
temuxISR
None
temuxISR
TEMUX/TEMAP/TECT3 (PM8315, PM5365, PM4328) Driver Manual
: register location to be written
: data to be written
: (pointer to) the function
temuxModuleStart
, once for EACH device requesting service, to perform
(
sysTemuxISRHandlerRemove
sysTemuxISRHandler
(
temuxModuleStop
temuxISR
sysTemuxISRHandler
).
Hardware Interface
), the driver
) handler that
, into
80

Related parts for PM5365