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