Path: blob/master/arch/arm/mach-bcmring/include/csp/secHw.h
10820 views
/*****************************************************************************1* Copyright 2004 - 2008 Broadcom Corporation. All rights reserved.2*3* Unless you and Broadcom execute a separate written software license4* agreement governing use of this software, this software is licensed to you5* under the terms of the GNU General Public License version 2, available at6* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").7*8* Notwithstanding the above, under no circumstances may you combine this9* software in any way with any other Broadcom software provided under a10* license other than the GPL, without Broadcom's express prior written11* consent.12*****************************************************************************/1314/****************************************************************************/15/**16* @file secHw.h17*18* @brief Definitions for accessing low level security features19*20*/21/****************************************************************************/22#ifndef SECHW_H23#define SECHW_H2425typedef void (*secHw_FUNC_t) (void);2627typedef enum {28secHw_MODE_SECURE = 0x0, /* Switches processor into secure mode */29secHw_MODE_NONSECURE = 0x1 /* Switches processor into non-secure mode */30} secHw_MODE;3132/****************************************************************************/33/**34* @brief Requesting to execute the function in secure mode35*36* This function requests the given function to run in secure mode37*38*/39/****************************************************************************/40void secHw_RunSecure(secHw_FUNC_t /* Function to run in secure mode */41);4243/****************************************************************************/44/**45* @brief Sets the mode46*47* his function sets the processor mode (secure/non-secure)48*49*/50/****************************************************************************/51void secHw_SetMode(secHw_MODE /* Processor mode */52);5354/****************************************************************************/55/**56* @brief Get the current mode57*58* This function retieves the processor mode (secure/non-secure)59*60*/61/****************************************************************************/62void secHw_GetMode(secHw_MODE *);6364#endif /* SECHW_H */656667