Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53e2aafd authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "trusty: Update TIPC UAPI header" am: 00e57e08 am: 074e3c23

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2024970

Change-Id: I686a7d3d33c9aa18d33144f5a1e546715084f570
parents 255fac42 074e3c23
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -23,15 +23,19 @@

/**
 * enum transfer_kind - How to send an fd to Trusty
 * @TRUSTY_SHARE: Memory will be accessible by Linux and Trusty. On ARM it will
 *                be mapped as nonsecure. Suitable for shared memory. The paired
 *                fd must be a "memfd".
 * @TRUSTY_LEND:  Memory will be accessible only to Trusty. On ARM it will be
 *                transitioned to "Secure" memory if Trusty is in TrustZone.
 *                This transfer kind is suitable for donating video buffers or
 *                other similar resources. The paired fd may need to come from a
 *                platform-specific allocator for memory that may be
 *                transitioned to "Secure".
 * @TRUSTY_SHARE:       Memory will be accessible by Linux and Trusty. On ARM it
 *                      will be mapped as nonsecure. Suitable for shared memory.
 *                      The paired fd must be a "dma_buf".
 * @TRUSTY_LEND:        Memory will be accessible only to Trusty. On ARM it will
 *                      be transitioned to "Secure" memory if Trusty is in
 *                      TrustZone. This transfer kind is suitable for donating
 *                      video buffers or other similar resources. The paired fd
 *                      may need to come from a platform-specific allocator for
 *                      memory that may be transitioned to "Secure".
 * @TRUSTY_SEND_SECURE: Send memory that is already "Secure". Memory will be
 *                      accessible only to Trusty. The paired fd may need to
 *                      come from a platform-specific allocator that returns
 *                      "Secure" buffers.
 *
 * Describes how the user would like the resource in question to be sent to
 * Trusty. Options may be valid only for certain kinds of fds.
@@ -39,6 +43,7 @@
enum transfer_kind {
    TRUSTY_SHARE = 0,
    TRUSTY_LEND = 1,
    TRUSTY_SEND_SECURE = 2,
};

/**