Skip to content

Commit

Permalink
Add RW memory layout TE layout
Browse files Browse the repository at this point in the history
XFERLIST_RW_MEM_LAYOUT is used to specify an extent of read-write memory
that a client can use.

Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
  • Loading branch information
harrisonmutai-arm committed Feb 12, 2024
1 parent d90e607 commit 925354b
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions source/transfer_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,6 @@ and reserved for use as a TPM Command Response Buffer interface.
- hdr_size + 0x8
- Size of CRB.



.. _tf_entries:

Entries related to Trusted Firmware
Expand Down Expand Up @@ -902,5 +900,49 @@ This manifest contains the SPMC attribute node consumed by the SPMD
- hdr_size
- Holds a SPMC manifest image in DT format.

**Read-Write Memory Layout Entry Layout (XFERLIST_RW_MEM_LAYOUT64)**

This entry type holds a structure that describes the layout of a read-write
memory region. TF-A defines this structure and uses it to convey to BL2 the
extent of memory it has available to perform read-write operations on. BL2 maps
the memory described by the layout into its memory map during platform setup. If
other memory types are required (i.e. read-only memory) separate TE's should be
defined.

.. _tab_rw_mem_layout:
.. list-table:: Layout for a RW memory layout entry
:widths: 2 5 5 6

* - Field
- Size (bytes)
- Offset (bytes)
- Description

* - tag_id
- 0x3
- 0x0
- The tag_id field must be set to **104**.

* - hdr_size
- 0x1
- 0x3
- |hdr_size_desc|

* - data_size
- 0x4
- 0x4
- The size of the layout in bytes.

* - addr
- 8
- hdr_size
- The base address of the memory region.

* - size
- 8
- hdr_size + 8
- The size of the memory region.


.. |hdr_size_desc| replace:: The size of this entry header in bytes must be set to **8**.
.. |current_version| replace:: `0x1`

0 comments on commit 925354b

Please sign in to comment.