xref: /qemu/include/hw/core/sysbus-fdt.h (revision a976a99a)
1 /*
2  * Dynamic sysbus device tree node generation API
3  *
4  * Copyright Linaro Limited, 2014
5  *
6  * Authors:
7  *  Alex Graf <agraf@suse.de>
8  *  Eric Auger <eric.auger@linaro.org>
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms and conditions of the GNU General Public License,
12  * version 2 or later, as published by the Free Software Foundation.
13  *
14  * This program is distributed in the hope it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
17  * more details.
18  *
19  * You should have received a copy of the GNU General Public License along with
20  * this program.  If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23 
24 #ifndef HW_ARM_SYSBUS_FDT_H
25 #define HW_ARM_SYSBUS_FDT_H
26 
27 #include "exec/hwaddr.h"
28 
29 /**
30  * platform_bus_add_all_fdt_nodes - create all the platform bus nodes
31  *
32  * builds the parent platform bus node and all the nodes of dynamic
33  * sysbus devices attached to it.
34  */
35 void platform_bus_add_all_fdt_nodes(void *fdt, const char *intc, hwaddr addr,
36                                     hwaddr bus_size, int irq_start);
37 #endif
38