1 /* 2 * Copyright (C) 2014, Linaro Ltd. 3 * Author: Tomasz Nowicki <tomasz.nowicki@linaro.org> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ 9 10 #ifndef ARM_GIC_ACPI_H_ 11 #define ARM_GIC_ACPI_H_ 12 13 #ifdef CONFIG_ACPI 14 15 /* 16 * Hard code here, we can not get memory size from MADT (but FDT does), 17 * Actually no need to do that, because this size can be inferred 18 * from GIC spec. 19 */ 20 #define ACPI_GICV2_DIST_MEM_SIZE (SZ_4K) 21 #define ACPI_GIC_CPU_IF_MEM_SIZE (SZ_8K) 22 23 struct acpi_table_header; 24 25 int gic_v2_acpi_init(struct acpi_table_header *table); 26 void acpi_gic_init(void); 27 #else acpi_gic_init(void)28static inline void acpi_gic_init(void) { } 29 #endif 30 31 #endif /* ARM_GIC_ACPI_H_ */ 32