xref: /OK3568_Linux_fs/kernel/arch/arm/mach-bcm/bcm_kona_smc.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright (C) 2013 Broadcom Corporation
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or
5*4882a593Smuzhiyun  * modify it under the terms of the GNU General Public License as
6*4882a593Smuzhiyun  * published by the Free Software Foundation version 2.
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9*4882a593Smuzhiyun  * kind, whether express or implied; without even the implied warranty
10*4882a593Smuzhiyun  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11*4882a593Smuzhiyun  * GNU General Public License for more details.
12*4882a593Smuzhiyun  */
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #ifndef BCM_KONA_SMC_H
15*4882a593Smuzhiyun #define BCM_KONA_SMC_H
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #include <linux/types.h>
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun /* Broadcom Secure Service API service IDs, return codes, and exit codes */
20*4882a593Smuzhiyun #define SSAPI_ENABLE_L2_CACHE		0x01000002
21*4882a593Smuzhiyun #define SEC_ROM_RET_OK			0x00000001
22*4882a593Smuzhiyun #define SEC_EXIT_NORMAL			0x1
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun extern int __init bcm_kona_smc_init(void);
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun extern unsigned bcm_kona_smc(unsigned service_id,
27*4882a593Smuzhiyun 			     unsigned arg0,
28*4882a593Smuzhiyun 			     unsigned arg1,
29*4882a593Smuzhiyun 			     unsigned arg2,
30*4882a593Smuzhiyun 			     unsigned arg3);
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #endif /* BCM_KONA_SMC_H */
33