Searched hist:"2 d0c93dfdca1d82df424b9ef2edc3de55081545c" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/include/ |
| H A D | io.h | 2d0c93dfdca1d82df424b9ef2edc3de55081545c Tue Feb 12 16:44:54 UTC 2019 Etienne Carriere <etienne.carriere@linaro.org> libutil: replace write*() util functions with io_write*()
write8(), write16() and write32() expect the target written address as 1st argument and the written value as 2nd argument. This is confusing as put_be32(), put_be64(), io_mask32(), and the io_*bits32() functions expect the opposite: 1st argument is the address and 2nd argument is the written value(s).
This change introduces functions io_write8(), io_write16() and io_write32() with io_mask32() like APIs. This change introduces io_read*() for consistency: all prefixed with io_.
This change preserve the write8/write16/write32 functions for compatibility. These will be deprecated in the next OP-TEE release to lower confusion around these.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|