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