libmetal
io.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017, Xilinx Inc. and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/*
8 * @file generic/io.h
9 * @brief Generic specific io definitions.
10 */
11
12#ifndef __METAL_IO__H__
13#error "Include metal/io.h instead of metal/generic/io.h"
14#endif
15
16#ifndef __METAL_GENERIC_IO__H__
17#define __METAL_GENERIC_IO__H__
18
19#include <stdlib.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#ifdef METAL_INTERNAL
26
31
36 size_t size, unsigned int flags);
37
38#endif
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* __METAL_GENERIC_IO__H__ */
void * metal_machine_io_mem_map(void *va, metal_phys_addr_t pa, size_t size, unsigned int flags)
Definition: sys.c:64
unsigned long metal_phys_addr_t
Definition: sys.h:30
Definition: io.h:73
void metal_sys_io_mem_map(struct metal_io_region *io)
Definition: io.c:14