18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (C) 2013 Broadcom Corporation 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or 58c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License as 68c2ecf20Sopenharmony_ci * published by the Free Software Foundation version 2. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * This program is distributed "as is" WITHOUT ANY WARRANTY of any 98c2ecf20Sopenharmony_ci * kind, whether express or implied; without even the implied warranty 108c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 118c2ecf20Sopenharmony_ci * GNU General Public License for more details. 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#ifndef BCM_KONA_SMC_H 158c2ecf20Sopenharmony_ci#define BCM_KONA_SMC_H 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#include <linux/types.h> 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* Broadcom Secure Service API service IDs, return codes, and exit codes */ 208c2ecf20Sopenharmony_ci#define SSAPI_ENABLE_L2_CACHE 0x01000002 218c2ecf20Sopenharmony_ci#define SEC_ROM_RET_OK 0x00000001 228c2ecf20Sopenharmony_ci#define SEC_EXIT_NORMAL 0x1 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciextern int __init bcm_kona_smc_init(void); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciextern unsigned bcm_kona_smc(unsigned service_id, 278c2ecf20Sopenharmony_ci unsigned arg0, 288c2ecf20Sopenharmony_ci unsigned arg1, 298c2ecf20Sopenharmony_ci unsigned arg2, 308c2ecf20Sopenharmony_ci unsigned arg3); 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#endif /* BCM_KONA_SMC_H */ 33