From: Dan Handley Date: Wed, 23 Apr 2014 14:22:18 +0000 (+0100) Subject: Move PSCI global functions out of private header X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c5945735a9705675201d2799654348425f28f551;p=project%2Fbcm63xx%2Fatf.git Move PSCI global functions out of private header Move the PSCI global functions out of psci_private.h and into psci.h to allow the standard service to only depend on psci.h. Change-Id: I8306924a3814b46e70c1dcc12524c7aefe06eed1 --- diff --git a/include/bl31/services/psci.h b/include/bl31/services/psci.h index e2907937..351453f0 100644 --- a/include/bl31/services/psci.h +++ b/include/bl31/services/psci.h @@ -191,6 +191,19 @@ extern void psci_register_spd_pm_hook(const spd_pm_ops *); extern int psci_get_suspend_stateid(unsigned long mpidr); extern int psci_get_suspend_afflvl(unsigned long mpidr); +extern uint64_t psci_smc_handler(uint32_t smc_fid, + uint64_t x1, + uint64_t x2, + uint64_t x3, + uint64_t x4, + void *cookie, + void *handle, + uint64_t flags); + +/* PSCI setup function */ +extern int32_t psci_setup(void); + + #endif /*__ASSEMBLY__*/ diff --git a/services/std_svc/psci/psci_entry.S b/services/std_svc/psci/psci_entry.S index 8a73e8b9..51d9b570 100644 --- a/services/std_svc/psci/psci_entry.S +++ b/services/std_svc/psci/psci_entry.S @@ -30,7 +30,6 @@ #include #include -#include #include #include #include diff --git a/services/std_svc/psci/psci_private.h b/services/std_svc/psci/psci_private.h index 8cb3aab8..72d46122 100644 --- a/services/std_svc/psci/psci_private.h +++ b/services/std_svc/psci/psci_private.h @@ -156,19 +156,6 @@ extern int psci_afflvl_suspend(unsigned long, int); extern unsigned int psci_afflvl_suspend_finish(unsigned long, int, int); -/* Private exported functions from psci_main.c */ -extern uint64_t psci_smc_handler(uint32_t smc_fid, - uint64_t x1, - uint64_t x2, - uint64_t x3, - uint64_t x4, - void *cookie, - void *handle, - uint64_t flags); - -/* PSCI setup function */ -extern int32_t psci_setup(void); - #endif /*__ASSEMBLY__*/ #endif /* __PSCI_PRIVATE_H__ */ diff --git a/services/std_svc/std_svc_setup.c b/services/std_svc/std_svc_setup.c index 7d5527aa..40d70960 100644 --- a/services/std_svc/std_svc_setup.c +++ b/services/std_svc/std_svc_setup.c @@ -35,7 +35,6 @@ #include #include #include -#include "psci/psci_private.h" /* Standard Service UUID */ DEFINE_SVC_UUID(arm_svc_uid,