Move PSCI global functions out of private header
authorDan Handley <dan.handley@arm.com>
Wed, 23 Apr 2014 14:22:18 +0000 (15:22 +0100)
committerDan Handley <dan.handley@arm.com>
Tue, 6 May 2014 12:45:27 +0000 (13:45 +0100)
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

include/bl31/services/psci.h
services/std_svc/psci/psci_entry.S
services/std_svc/psci/psci_private.h
services/std_svc/std_svc_setup.c

index e29079372f6b255277034c723af190a7b183efde..351453f0e435d232175ceb23638f0018f98d56b8 100644 (file)
@@ -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__*/
 
 
index 8a73e8b9913049f795852a0f7e94ff4d91ea8347..51d9b5700a4e2d6e8480c28baa2e1901fa77717c 100644 (file)
@@ -30,7 +30,6 @@
 
 #include <arch.h>
 #include <platform.h>
-#include <psci.h>
 #include <runtime_svc.h>
 #include <asm_macros.S>
 #include <cm_macros.S>
index 8cb3aab8d73cbcb40dd0301911a7535b5c880398..72d46122f21f11579c6f21c3daee395812765632 100644 (file)
@@ -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__ */
index 7d5527aaa91889d49029f879f3fb6c4a97de394b..40d709601e0d0e1b7280b9766d9b5d79cd57c06e 100644 (file)
@@ -35,7 +35,6 @@
 #include <std_svc.h>
 #include <psci.h>
 #include <debug.h>
-#include "psci/psci_private.h"
 
 /* Standard Service UUID */
 DEFINE_SVC_UUID(arm_svc_uid,