blob: 2e29ec67e414fb29cc9c3b8d431688d0b7b1c8d6 [file] [log] [blame]
Christian Daudtb8eb35f2013-02-26 21:48:49 -08001/*
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 Daudtb8eb35f2013-02-26 21:48:49 -080018
Alex Elderc64756c2014-04-21 16:53:04 -050019/* Broadcom Secure Service API service IDs, return codes, and exit codes */
20#define SSAPI_ENABLE_L2_CACHE 0x01000002
Christian Daudtb8eb35f2013-02-26 21:48:49 -080021#define SEC_ROM_RET_OK 0x00000001
Christian Daudtb8eb35f2013-02-26 21:48:49 -080022#define SEC_EXIT_NORMAL 0x1
23
Christian Daudt3a76b352013-08-06 17:04:54 -070024extern int __init bcm_kona_smc_init(void);
Christian Daudtb8eb35f2013-02-26 21:48:49 -080025
26extern unsigned bcm_kona_smc(unsigned service_id,
27 unsigned arg0,
28 unsigned arg1,
29 unsigned arg2,
30 unsigned arg3);
31
Christian Daudtb8eb35f2013-02-26 21:48:49 -080032#endif /* BCM_KONA_SMC_H */