Qualcomm SMEM Items

This is a compilation of the SMEM items defined in the codeaurora kernel.

427 - 434: SMEM_SMP2P_APPS_BASE
Each SMEM item consists of a header, Followed by a list of 16 entries of:

Magic
Must be "$SMP"

Version
Currently 1

Features
A set of bits, each representing supported features:
 * 1) Subsystem Restart Ack

Local PID
ID of the local processor for this item.

Remote PID
ID of the remote processor for this item.

Count
Number of allocated entries following the header.

Valid
Number of entries currently in use

Name
Identifier for this entry

Value
The 32 bit value for this SMP2P entry. Normally only used to signal single-bit events.

478: SMEM_GLINK_NATIVE_XPRT_DESCRIPTOR
The GLINK SMEM XPRT descriptor contains the read and write index for the TX and RX FIFOs.

TX Read/write
Indices into the TX FIFO (item #479), the producer puts data in the FIFO and updates the write index', it then signals the remote processor which reads the data and updates the read index.

RX Read/write
Analogous to the TX, but roles are switched.

478, 479: SMEM_GLINK_NATIVE_XPRT_FIFO
Ring buffer for GLINK TX and RX data, respectively (as seen from APPS).

Multiple remote targets can be supported based on SMEM partitioning.

504: SMEM_NUM_ITEMS
Current number of defined SMEM items