1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* Copyright (c) 2020 Foundries Ltd */ 3 4 #ifndef __TA_RPC_TEST_H 5 #define __TA_RPC_TEST_H 6 7 #define TA_RPC_TEST_UUID { 0x48420575, 0x96ca, 0x401a, \ 8 { 0x89, 0x91, 0x1e, 0xfd, 0xce, 0xbd, 0x7d, 0x04 } } 9 10 /* 11 * Does a reverse RPC call for I2C read 12 * 13 * in params[0].value.a: bus number 14 * in params[0].value.b: chip address 15 * in params[0].value.c: control flags 16 * inout params[1].u.memref: buffer to read data 17 */ 18 #define TA_RPC_TEST_CMD_I2C_READ 0 19 20 /* 21 * Does a reverse RPC call for I2C write 22 * 23 * in params[0].value.a: bus number 24 * in params[0].value.b: chip address 25 * in params[0].value.c: control flags 26 * inout params[1].u.memref: buffer with data to write 27 */ 28 #define TA_RPC_TEST_CMD_I2C_WRITE 1 29 30 #endif /* __TA_RPC_TEST_H */ 31