111d306b9SEric Auger /* 211d306b9SEric Auger * Dynamic sysbus device tree node generation API 311d306b9SEric Auger * 411d306b9SEric Auger * Copyright Linaro Limited, 2014 511d306b9SEric Auger * 611d306b9SEric Auger * Authors: 711d306b9SEric Auger * Alex Graf <agraf@suse.de> 811d306b9SEric Auger * Eric Auger <eric.auger@linaro.org> 911d306b9SEric Auger * 1011d306b9SEric Auger * This program is free software; you can redistribute it and/or modify it 1111d306b9SEric Auger * under the terms and conditions of the GNU General Public License, 1211d306b9SEric Auger * version 2 or later, as published by the Free Software Foundation. 1311d306b9SEric Auger * 1411d306b9SEric Auger * This program is distributed in the hope it will be useful, but WITHOUT 1511d306b9SEric Auger * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1611d306b9SEric Auger * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 1711d306b9SEric Auger * more details. 1811d306b9SEric Auger * 1911d306b9SEric Auger * You should have received a copy of the GNU General Public License along with 2011d306b9SEric Auger * this program. If not, see <http://www.gnu.org/licenses/>. 2111d306b9SEric Auger * 2211d306b9SEric Auger */ 2311d306b9SEric Auger 2411d306b9SEric Auger #ifndef HW_ARM_SYSBUS_FDT_H 2511d306b9SEric Auger #define HW_ARM_SYSBUS_FDT_H 2611d306b9SEric Auger 273b77f6c3SIgor Mammedov #include "exec/hwaddr.h" 2811d306b9SEric Auger 2911d306b9SEric Auger /** 303b77f6c3SIgor Mammedov * platform_bus_add_all_fdt_nodes - create all the platform bus nodes 313b77f6c3SIgor Mammedov * 323b77f6c3SIgor Mammedov * builds the parent platform bus node and all the nodes of dynamic 333b77f6c3SIgor Mammedov * sysbus devices attached to it. 3411d306b9SEric Auger */ 353b77f6c3SIgor Mammedov void platform_bus_add_all_fdt_nodes(void *fdt, const char *intc, hwaddr addr, 363b77f6c3SIgor Mammedov hwaddr bus_size, int irq_start); 3711d306b9SEric Auger #endif 38