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

Commit 4803d1a3 authored by Sujeev Dias's avatar Sujeev Dias
Browse files

arm: io: add missing read and write no_log variants



Add missing read and write no_log macros for support in 32-bit
arm.

CRs-Fixed: 2478833
Change-Id: Ib265c53201fe56c532287b4c9456b2adcf81827b
Acked-by: default avatarBhaumik Vasav Bhatt <bbhatt@qti.qualcomm.com>
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent bd7dc972
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -401,6 +401,24 @@ extern void _memset_io(volatile void __iomem *, int, size_t);
#define writesw(p,d,l)		__raw_writesw(p,d,l)
#define writesl(p,d,l)		__raw_writesl(p,d,l)

#define readb_no_log(c) \
		({ u8  __v = readb_relaxed_no_log(c); __iormb(); __v; })
#define readw_no_log(c) \
		({ u16 __v = readw_relaxed_no_log(c); __iormb(); __v; })
#define readl_no_log(c) \
		({ u32 __v = readl_relaxed_no_log(c); __iormb(); __v; })
#define readq_no_log(c) \
		({ u64 __v = readq_relaxed_no_log(c); __iormb(); __v; })

#define writeb_no_log(v, c) \
		({ __iowmb(); writeb_relaxed_no_log((v), (c)); })
#define writew_no_log(v, c) \
		({ __iowmb(); writew_relaxed_no_log((v), (c)); })
#define writel_no_log(v, c) \
		({ __iowmb(); writel_relaxed_no_log((v), (c)); })
#define writeq_no_log(v, c) \
		({ __iowmb(); writeq_relaxed_no_log((v), (c)); })

#ifndef __ARMBE__
static inline void memset_io(volatile void __iomem *dst, unsigned c,
	size_t count)