RTEMS  5.1
fdt.h
1 /*
2  * Copyright (c) 2015, 2017 embedded brains GmbH. All rights reserved.
3  *
4  * embedded brains GmbH
5  * Dornierstr. 4
6  * 82178 Puchheim
7  * Germany
8  * <rtems@embedded-brains.de>
9  *
10  * The license and distribution terms for this file may be
11  * found in the file LICENSE in this distribution or at
12  * http://www.rtems.org/license/LICENSE.
13  */
14 
15 #ifndef LIBBSP_SHARED_FDT_H
16 #define LIBBSP_SHARED_FDT_H
17 
18 #include <bsp.h>
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
23 
24 /*
25  * BSPs that implement the FDT support functions must define
26  * BSP_FDT_IS_SUPPORTED.
27  */
28 
40 void bsp_fdt_copy(const void *src);
41 
47 const void *bsp_fdt_get(void);
48 
61 uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells);
62 
63 #ifdef __cplusplus
64 }
65 #endif /* __cplusplus */
66 
67 #endif /* LIBBSP_SHARED_FDT_H */
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
Maps the interrupt number of the FDT to the interrupt vector used by the interrupt management.
Definition: bspstart.c:189