#include <metal/cache.h>
#include <metal/io.h>
#include <nuttx/arch.h>
|
static uint64_t | metal_io_read_ (struct metal_io_region *io, unsigned long offset, memory_order order, int width) |
|
static void | metal_io_write_ (struct metal_io_region *io, unsigned long offset, uint64_t value, memory_order order, int width) |
|
static int | metal_io_block_read_ (struct metal_io_region *io, unsigned long offset, void *restrict dst, memory_order order, int len) |
|
static int | metal_io_block_write_ (struct metal_io_region *io, unsigned long offset, const void *restrict src, memory_order order, int len) |
|
static void | metal_io_block_set_ (struct metal_io_region *io, unsigned long offset, unsigned char value, memory_order order, int len) |
|
static void | metal_io_close_ (struct metal_io_region *io) |
|
static metal_phys_addr_t | metal_io_offset_to_phys_ (struct metal_io_region *io, unsigned long offset) |
|
static unsigned long | metal_io_phys_to_offset_ (struct metal_io_region *io, metal_phys_addr_t phys) |
|
struct metal_io_ops * | metal_io_get_ops (void) |
| Get the default global io ops. More...
|
|
struct metal_io_region * | metal_io_get_region (void) |
| Get the default global io region. More...
|
|
◆ metal_io_block_read_()
◆ metal_io_block_set_()
static void metal_io_block_set_ |
( |
struct metal_io_region * |
io, |
|
|
unsigned long |
offset, |
|
|
unsigned char |
value, |
|
|
memory_order |
order, |
|
|
int |
len |
|
) |
| |
|
static |
◆ metal_io_block_write_()
◆ metal_io_close_()
◆ metal_io_get_ops()
Get the default global io ops.
- Returns
- an io ops.
◆ metal_io_get_region()
Get the default global io region.
- Returns
- an io region.
◆ metal_io_offset_to_phys_()
◆ metal_io_phys_to_offset_()
◆ metal_io_read_()
◆ metal_io_write_()
◆ metal_io_phys_start_
◆ metal_io_region_
Initial value:= {
.virt = NULL,
.size = (size_t)-1,
.mem_flags = 0,
.ops = {
},
}
static uint64_t metal_io_read_(struct metal_io_region *io, unsigned long offset, memory_order order, int width)
Definition: io.c:11
static int metal_io_block_write_(struct metal_io_region *io, unsigned long offset, const void *restrict src, memory_order order, int len)
Definition: io.c:45
static void metal_io_block_set_(struct metal_io_region *io, unsigned long offset, unsigned char value, memory_order order, int len)
Definition: io.c:59
static int metal_io_block_read_(struct metal_io_region *io, unsigned long offset, void *restrict dst, memory_order order, int len)
Definition: io.c:31
static void metal_io_write_(struct metal_io_region *io, unsigned long offset, uint64_t value, memory_order order, int width)
Definition: io.c:22