Christian Daudt | b8eb35f | 2013-02-26 21:48:49 -0800 | [diff] [blame] | 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> |
Christian Daudt | b8eb35f | 2013-02-26 21:48:49 -0800 | [diff] [blame] | 18 | |
Alex Elder | c64756c | 2014-04-21 16:53:04 -0500 | [diff] [blame] | 19 | /* Broadcom Secure Service API service IDs, return codes, and exit codes */ |
| 20 | #define SSAPI_ENABLE_L2_CACHE 0x01000002 |
Christian Daudt | b8eb35f | 2013-02-26 21:48:49 -0800 | [diff] [blame] | 21 | #define SEC_ROM_RET_OK 0x00000001 |
Christian Daudt | b8eb35f | 2013-02-26 21:48:49 -0800 | [diff] [blame] | 22 | #define SEC_EXIT_NORMAL 0x1 |
| 23 | |
Christian Daudt | 3a76b35 | 2013-08-06 17:04:54 -0700 | [diff] [blame] | 24 | extern int __init bcm_kona_smc_init(void); |
Christian Daudt | b8eb35f | 2013-02-26 21:48:49 -0800 | [diff] [blame] | 25 | |
| 26 | extern unsigned bcm_kona_smc(unsigned service_id, |
| 27 | unsigned arg0, |
| 28 | unsigned arg1, |
| 29 | unsigned arg2, |
| 30 | unsigned arg3); |
| 31 | |
Christian Daudt | b8eb35f | 2013-02-26 21:48:49 -0800 | [diff] [blame] | 32 | #endif /* BCM_KONA_SMC_H */ |