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

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.4
Proprietary and Confidential to PMC-Sierra, Inc., and for its Customers’ Internal Use
Document ID: PMC-1991611, Issue 2
Structures in the Driver’s Allocated Memory
These structures are defined and used by the driver and are part of the context memory allocated
when the driver is opened.
Module Data Block
The MDB is the top level structure for the module. It contains configuration data about the
module level code and pointers to configuration data about the device level codes. Special or
unusual elements in the MDB are described first, followed by the complete list of elements in
table form.
·
·
·
·
Table 15: Module Data Block: sTMX_MDB
Field Name
errModule
maxDevs
autoStart
ModState
ModValid
NumDevs
numProfiles
semModule
errModule
returned code is
specific error code back to the application. Under those circumstances, the proper error code
is recorded in this element. The element is the first in the structure so that the user can cast
the MDB pointer to a
to include the MDB template into the application code).
modValid
user.
modState
TMX_MOD_IDLE,
user[]
constant
used by the user for any type of storage, but only when the MDB field
: space is set aside for the user scratch area. The size of the space is controlled by the
TMX_USR_SIZE
: indicates that this structure has been properly initialized and may be read by the
: contains the current state of the module and could be set to:
: most of the module functions return a specific error code directly. When the
Field Type
INT4
UINT2
BOOLEAN
UINT2
UINT2
UINT2
UINT2
void *
TMX_FAIL
or
TMX_MOD_READY.
INT4
and cannot be less than one
, that indicates that the top level function was not able to carry the
pointer and retrieve the local error code (this eliminates the need
TEMUX/TEMAP/TECT3 (PM8315, PM5365, PM4328) Driver Manual
Field Description
Global error indicator for module calls
Maximum number of devices supported
Indication that
Module state (
TMX_MOD_READY
Indication that this structure has been initialized (contains
0xCAFE
Number of devices currently registered
Number of profiles currently registered
Semaphore object
)
TMX_MOD_START
temuxModuleStart
)
UINT4
element. This element can be
,
TMX_MOD_IDLE
will be called internally
modValid
TMX_MOD_START,
Data Structures
,
is set.
37

Related parts for PM5365