[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH V4 04/32] xen/arm: Add helpers ioreadl/iowritel
Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx> --- xen/include/asm-arm/mm.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h index 63e1069..3749f44 100644 --- a/xen/include/asm-arm/mm.h +++ b/xen/include/asm-arm/mm.h @@ -171,6 +171,16 @@ static inline void __iomem *ioremap_wc(paddr_t start, size_t len) return ioremap_attr(start, len, PAGE_HYPERVISOR_WC); } +static inline uint32_t ioreadl(const volatile void __iomem *addr) +{ + return (*(volatile uint32_t *)addr); +} + +static inline void iowritel(const volatile void __iomem *addr, uint32_t val) +{ + *(volatile uint32_t *)addr = val; +} + #define mfn_valid(mfn) ({ \ unsigned long __m_f_n = (mfn); \ likely(__m_f_n < max_page); \ -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |