Reduce deep nesting of header files
authorDan Handley <dan.handley@arm.com>
Wed, 9 Apr 2014 12:14:54 +0000 (13:14 +0100)
committerDan Handley <dan.handley@arm.com>
Tue, 6 May 2014 12:57:48 +0000 (13:57 +0100)
commit97043ac98e13a726dbf8b3b41654dca759e3da2c
tree18133148dea88d9a2313113111b24b56e8130505
parentfb037bfb7cbf7b404c069b4ebac5a10059d948b1
Reduce deep nesting of header files

Reduce the number of header files included from other header
files as much as possible without splitting the files. Use forward
declarations where possible. This allows removal of some unnecessary
"#ifndef __ASSEMBLY__" statements.

Also, review the .c and .S files for which header files really need
including and reorder the #include statements alphabetically.

Fixes ARM-software/tf-issues#31

Change-Id: Iec92fb976334c77453e010b60bcf56f3be72bd3e
89 files changed:
bl1/aarch64/bl1_arch_setup.c
bl1/aarch64/bl1_exceptions.S
bl1/bl1_main.c
bl2/aarch64/bl2_arch_setup.c
bl2/aarch64/bl2_entrypoint.S
bl2/bl2_main.c
bl31/aarch64/bl31_arch_setup.c
bl31/aarch64/bl31_entrypoint.S
bl31/aarch64/context.S
bl31/aarch64/runtime_exceptions.S
bl31/bl31_main.c
bl31/context_mgmt.c
bl31/runtime_svc.c
bl32/tsp/aarch64/tsp_entrypoint.S
bl32/tsp/aarch64/tsp_request.S
bl32/tsp/tsp_main.c
common/aarch64/early_exceptions.S
common/bl_common.c
drivers/arm/cci400/cci400.c
drivers/arm/gic/gic_v3.c
drivers/arm/pl011/pl011.c
drivers/arm/pl011/pl011_console.c
drivers/arm/tzc400/tzc400.c
drivers/io/io_fip.c
drivers/io/io_memmap.c
drivers/io/io_semihosting.c
include/bl1/bl1.h
include/bl2/bl2.h
include/bl31/bl31.h
include/bl31/cm_macros.S
include/bl31/context.h
include/bl31/context_mgmt.h
include/bl31/runtime_svc.h
include/bl31/services/psci.h
include/bl32/bl32.h
include/bl32/payloads/tsp.h
include/common/asm_macros.S
include/common/bl_common.h
include/common/debug.h
include/drivers/arm/pl011.h
include/drivers/arm/tzc400.h
include/drivers/io_driver.h
include/drivers/io_fip.h
include/drivers/io_memmap.h
include/drivers/io_semihosting.h
include/lib/aarch64/arch.h
include/lib/aarch64/arch_helpers.h
include/lib/bakery_lock.h
include/lib/io_storage.h
include/lib/mmio.h
include/lib/semihosting.h
lib/aarch64/cache_helpers.S
lib/aarch64/misc_helpers.S
lib/aarch64/sysreg_helpers.S
lib/aarch64/tlb_helpers.S
lib/aarch64/xlat_helpers.c
lib/io_storage.c
lib/locks/bakery/bakery_lock.c
lib/semihosting/semihosting.c
plat/common/aarch64/platform_helpers.S
plat/common/aarch64/platform_mp_stack.S
plat/common/aarch64/platform_up_stack.S
plat/fvp/aarch64/bl1_plat_helpers.S
plat/fvp/aarch64/plat_common.c
plat/fvp/aarch64/plat_helpers.S
plat/fvp/bl1_plat_setup.c
plat/fvp/bl2_plat_setup.c
plat/fvp/bl31_plat_setup.c
plat/fvp/bl32_plat_setup.c
plat/fvp/drivers/pwrc/fvp_pwrc.c
plat/fvp/plat_gic.c
plat/fvp/plat_io_storage.c
plat/fvp/plat_pm.c
plat/fvp/plat_topology.c
plat/fvp/platform.h
services/spd/tspd/tspd_common.c
services/spd/tspd/tspd_helpers.S
services/spd/tspd/tspd_main.c
services/spd/tspd/tspd_pm.c
services/spd/tspd/tspd_private.h
services/std_svc/psci/psci_afflvl_off.c
services/std_svc/psci/psci_afflvl_on.c
services/std_svc/psci/psci_afflvl_suspend.c
services/std_svc/psci/psci_common.c
services/std_svc/psci/psci_entry.S
services/std_svc/psci/psci_main.c
services/std_svc/psci/psci_private.h
services/std_svc/psci/psci_setup.c
services/std_svc/std_svc_setup.c