libmetal
io.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018, Pinecone Inc. and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 /*
8  * @file nuttx/io.h
9  * @brief NuttX specific io definitions.
10  */
11 
12 #ifndef __METAL_IO__H__
13 #error "Include metal/io.h instead of metal/nuttx/io.h"
14 #endif
15 
16 #ifndef __METAL_NUTTX_IO__H__
17 #define __METAL_NUTTX_IO__H__
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
27 struct metal_io_ops *metal_io_get_ops(void);
28 
34 
35 #ifdef METAL_INTERNAL
36 
40 static inline void metal_sys_io_mem_map(struct metal_io_region *io)
41 {
42 }
43 #endif
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* __METAL_NUTTX_IO__H__ */
metal_io_get_region
struct metal_io_region * metal_io_get_region(void)
Get the default global io region.
Definition: io.c:113
metal_io_get_ops
struct metal_io_ops * metal_io_get_ops(void)
Get the default global io ops.
Definition: io.c:108
metal_io_region
Definition: io.h:73
metal_sys_io_mem_map
void metal_sys_io_mem_map(struct metal_io_region *io)
Definition: io.c:14
metal_io_ops
Definition: io.h:40