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

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
4.5
4.6
Proprietary and Confidential to PMC-Sierra, Inc., and for its Customers’ Internal Use
Document ID: PMC-1991611, Issue 2
Global Variables
Although most of the variables and structure elements within the driver are supposed to be hidden
from the application code, there are several that provide information that might come in handy for
debugging. They are to be considered read-only by the application.
·
·
Structures Passed through RTOS Buffers
Interrupt Status Vector
This block captures the state of the device (during a POLL or during ISR processing) for use by
the Deferred-Processing Routine (DPR). It is the template for all device registers that are
involved in exception processing. It is the application’s responsibility to create a pool of ISV
buffers (using this template to determine the buffer’s size) when the driver calls the user-supplied
sysTemuxBufferStart
via the
sysTemuxISVBufferRtn
Table 24: ISR Status Vector: sTMX_ISV
Field Name
devId
temuxMDB
also returned to the application via the MIV (passed with the
call), in order make available the error code field. The user is cautioned that the MDB is only
valid if the ‘
°
°
°
temuxDDB[]
DDB is also returned to the application via the DIV (passed with the
call), in order to make available the error code field. The user is cautioned that a DDB is only
valid if the ‘
°
°
°
sysTemuxISVBufferGet
errModule
for a module API function’s failure. The field is only valid when the function in question
returns a
modValid
read by the user.
modState
errDevice
for a device API function’s failure. The field is only valid when the function in question
returns a
devValid
read by the user.
devState
: A global pointer to the Module Data Block (MDB). The address of the MDB is
modValid
devValid
TMX_FAIL
TMX_FAIL
: An array of pointers to the individual Device Data Blocks. The address of each
: a flag that indicates when the MDB has been properly initialized and can be
: this element stores the state of the module (see Figure 3: State Diagram).
: a flag that indicates when the DDB has been properly initialized and can be
: this element stores the state of the device (see Figure 3: State Diagram).
Field Type
sTMX_HNDL
: this structure element is used to store an error code that specifies the reason
: this structure element is used to store an error code that specifies the reason
function call. An individual ISV buffer is then obtained by the driver
’ flag is set.
’ flag is set and that the array of DDBs is in no particular order.
macro.
value.
value.
TEMUX/TEMAP/TECT3 (PM8315, PM5365, PM4328) Driver Manual
macro and returned to the ‘pool’ via the
Field Description
Device handle
temuxModuleOpen
temuxAdd
Data Structures
function
function
43

Related parts for PM5365