diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2019-02-12 17:44:21 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2019-02-14 15:17:43 +0100 |
commit | ae21bcac47348a97141b1f55d96f66687b543afa (patch) | |
tree | 25333969fa834a4c462455a0ae7d3f5a21dc7805 /core | |
parent | af4c7f4b3ad2480a078cd54de909280af5924256 (diff) |
core: deprecate read32(), write32() and friends
read8(), read16(), read32() write8(), write16() and write32()
are deprecated since the equivalent, prefixed with io_ were
introduced are aligns functions API with other memory cell
accesses util functions as io_mask32() or pub_be32().
This change fully removes support for the deprecated functions.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/include/io.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/core/include/io.h b/core/include/io.h index 26730b12..4b5a4110 100644 --- a/core/include/io.h +++ b/core/include/io.h @@ -152,42 +152,4 @@ static inline void io_clrsetbits8(vaddr_t addr, uint8_t clear_mask, io_write8(addr, (io_read8(addr) & ~clear_mask) | set_mask); } -/* - * Functions write8(), write16(), write32(), read8(), read16() and read32() - * will be deprecated in OP-TEE release 3.5.0. - * - * Main issue is the swapping position of address and value arguments - * of write{8|16|32}() regarding other util functions io_mask*(), - * io_*bits32() and put_be*(). - */ -static inline void write8(uint8_t val, vaddr_t addr) -{ - io_write8(addr, val); -} - -static inline void write16(uint16_t val, vaddr_t addr) -{ - io_write16(addr, val); -} - -static inline void write32(uint32_t val, vaddr_t addr) -{ - io_write32(addr, val); -} - -static inline uint8_t read8(vaddr_t addr) -{ - return io_read8(addr); -} - -static inline uint16_t read16(vaddr_t addr) -{ - return io_read16(addr); -} - -static inline uint32_t read32(vaddr_t addr) -{ - return io_read32(addr); -} - #endif /*IO_H*/ |