aboutsummaryrefslogtreecommitdiffstats
path: root/security/smc/omap4/scxlnx_mshield.h
blob: 9457ca934aadfa8915d173a93662bc42b516042e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
 * Copyright (c) 2010 Trusted Logic S.A.
 * All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */

#ifndef __SCXLNX_MSHIELD_H__
#define __SCXLNX_MSHIELD_H__

#include "scxlnx_defs.h"

int SCXLNXCtrlDeviceRegister(void);

int SCXLNXCommStart(struct SCXLNX_COMM *pComm,
	u32 nWorkspaceAddr, u32 nWorkspaceSize,
	u8 *pPABufferVAddr, u32 nPABufferSize,
	u8 *pPropertiesBuffer, u32 nPropertiesBufferLength);

/* Assembler entry points to/from secure */
u32 schedule_secure_world(u32 app_id, u32 proc_id, u32 flags, u32 args);
u32 rpc_handler(u32 p1, u32 p2, u32 p3, u32 p4);
u32 read_mpidr(void);

/* L4 SEC clockdomain enabling/disabling */
void tf_l4sec_clkdm_wakeup(bool use_spin_lock, bool wakelock);
void tf_l4sec_clkdm_allow_idle(bool use_spin_lock, bool wakeunlock);

/* Delayed secure resume */
int tf_delayed_secure_resume(void);

#endif