12#ifndef ZEPHYR_INCLUDE_ARCH_ARM64_SYS_IO_H_
13#define ZEPHYR_INCLUDE_ARCH_ARM64_SYS_IO_H_
41 __asm__
volatile(
"ldrb %w0, [%1]" :
"=r" (val) :
"r" (addr));
50 __asm__
volatile(
"strb %w0, [%1]" : :
"r" (data),
"r" (addr));
57 __asm__
volatile(
"ldrh %w0, [%1]" :
"=r" (val) :
"r" (addr));
66 __asm__
volatile(
"strh %w0, [%1]" : :
"r" (data),
"r" (addr));
73 __asm__
volatile(
"ldr %w0, [%1]" :
"=r" (val) :
"r" (addr));
82 __asm__
volatile(
"str %w0, [%1]" : :
"r" (data),
"r" (addr));
89 __asm__
volatile(
"ldr %x0, [%1]" :
"=r" (val) :
"r" (addr));
98 __asm__
volatile(
"str %x0, [%1]" : :
"r" (data),
"r" (addr));
static ALWAYS_INLINE void sys_write64(uint64_t data, mem_addr_t addr)
Definition: sys_io.h:95
static ALWAYS_INLINE void sys_write32(uint32_t data, mem_addr_t addr)
Definition: sys_io.h:69
static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr)
Definition: sys_io.h:27
static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr)
Definition: sys_io.h:53
static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr)
Definition: sys_io.h:59
static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr)
Definition: sys_io.h:43
static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr)
Definition: sys_io.h:37
static ALWAYS_INLINE uint64_t sys_read64(mem_addr_t addr)
Definition: sys_io.h:75
#define ALWAYS_INLINE
Definition: common.h:129
static ALWAYS_INLINE void barrier_dmem_fence_full(void)
Full/sequentially-consistent data memory barrier.
Definition: barrier.h:40
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT64_TYPE__ uint64_t
Definition: stdint.h:91
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
uintptr_t mem_addr_t
Definition: sys_io.h:21