From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Date: Thu, 26 May 2016 17:49:34 +0100 Subject: [U-Boot] [PATCH v2 03/11] ARM: PSCI: export common PSCI function declarations for C code In-Reply-To: <1464271273-23223-4-git-send-email-wens@csie.org> References: <1464271273-23223-1-git-send-email-wens@csie.org> <1464271273-23223-4-git-send-email-wens@csie.org> Message-ID: <5747291E.4090900@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 26/05/16 15:01, Chen-Yu Tsai wrote: > Some common PSCI functions are written in assembly, but it should be > possible to use them from C code. > > Add function declarations for C code to consume. > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/include/asm/psci.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h > index 128a606444fe..8b245139cbdb 100644 > --- a/arch/arm/include/asm/psci.h > +++ b/arch/arm/include/asm/psci.h > @@ -33,6 +33,14 @@ > #define ARM_PSCI_RET_DENIED (-3) > > #ifndef __ASSEMBLY__ > +#include > +#include nit: you don't need any of these #include. > + > +void psci_cpu_entry(void); > +u32 psci_get_cpu_id(void); > +u32 psci_get_cpu_stack_top(int cpu); > +void psci_cpu_off_common(void); > + > int psci_update_dt(void *fdt); > void psci_board_init(void); > #endif /* ! __ASSEMBLY__ */ > Thanks, M. -- Jazz is not dead. It just smells funny...