Software APIs
Functions
abs_mmio.h File Reference

(30d7e787c7)

Absolute Memory-mapped IO functions, for volatile access. More...

#include <stddef.h>
#include <stdint.h>
#include "sw/device/lib/base/macros.h"

Go to the source code of this file.

Functions

uint8_t abs_mmio_read8 (uint32_t addr)
 
void abs_mmio_write8 (uint32_t addr, uint8_t value)
 
void abs_mmio_write8_shadowed (uint32_t addr, uint8_t value)
 
uint32_t abs_mmio_read32 (uint32_t addr)
 
void abs_mmio_write32 (uint32_t addr, uint32_t value)
 
void abs_mmio_write32_shadowed (uint32_t addr, uint32_t value)
 

Detailed Description

Absolute Memory-mapped IO functions, for volatile access.

Memory-mapped IO functions, which map to volatile accesses. Use this module for register operations in ROM and ROM Extension production libraries.

Compiling translation units that pull in this header with -DMOCK_ABS_MMIO will disable the definitions of abs_mmio_read and abs_mmio_write. These symbols can then be defined by a test harness to allow for instrumentation of MMIO accesses.

Definition in file abs_mmio.h.