1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /* Copyright (c) 2018, Linaro Limited */
7 #define TA_AVB_UUID { 0x023f8f1a, 0x292a, 0x432b, \
8 { 0x8f, 0xc4, 0xde, 0x84, 0x71, 0x35, 0x80, 0x67 } }
10 #define TA_AVB_MAX_ROLLBACK_LOCATIONS 256
13 * Gets the rollback index corresponding to the given rollback index slot.
15 * in params[0].value.a: rollback index slot
16 * out params[1].value.a: upper 32 bits of rollback index
17 * out params[1].value.b: lower 32 bits of rollback index
19 #define TA_AVB_CMD_READ_ROLLBACK_INDEX 0
22 * Updates the rollback index corresponding to the given rollback index slot.
24 * Will refuse to update a slot with a lower value.
26 * in params[0].value.a: rollback index slot
27 * in params[1].value.a: upper 32 bits of rollback index
28 * in params[1].value.b: lower 32 bits of rollback index
30 #define TA_AVB_CMD_WRITE_ROLLBACK_INDEX 1
33 * Gets the lock state of the device.
35 * out params[0].value.a: lock state
37 #define TA_AVB_CMD_READ_LOCK_STATE 2
40 * Sets the lock state of the device.
42 * If the lock state is changed all rollback slots will be reset to 0
44 * in params[0].value.a: lock state
46 #define TA_AVB_CMD_WRITE_LOCK_STATE 3
49 * Reads a persistent value corresponding to the given name.
51 * in params[0].u.memref: persistent value name
52 * out params[1].u.memref: read persistent value buffer
54 #define TA_AVB_CMD_READ_PERSIST_VALUE 4
57 * Writes a persistent value corresponding to the given name.
59 * in params[0].u.memref: persistent value name
60 * in params[1].u.memref: persistent value buffer to write
62 #define TA_AVB_CMD_WRITE_PERSIST_VALUE 5
64 #endif /* __TA_AVB_H */