Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
omap-secure.h File Reference

Go to the source code of this file.

Macros

#define API_HAL_RET_VALUE_NS2S_CONVERSION_ERROR   0xFFFFFFFE
 
#define API_HAL_RET_VALUE_SERVICE_UNKNWON   0xFFFFFFFF
 
#define API_HAL_RET_VALUE_OK   0x00
 
#define API_HAL_RET_VALUE_FAIL   0x01
 
#define FLAG_START_CRITICAL   0x4
 
#define FLAG_IRQFIQ_MASK   0x3
 
#define FLAG_IRQ_ENABLE   0x2
 
#define FLAG_FIQ_ENABLE   0x1
 
#define NO_FLAG   0x0
 
#define OMAP_SECURE_RAM_STORAGE   (88 * SZ_1K)
 
#define OMAP4_HAL_SAVESECURERAM_INDEX   0x1a
 
#define OMAP4_HAL_SAVEHW_INDEX   0x1b
 
#define OMAP4_HAL_SAVEALL_INDEX   0x1c
 
#define OMAP4_HAL_SAVEGIC_INDEX   0x1d
 
#define OMAP4_MON_SCU_PWR_INDEX   0x108
 
#define OMAP4_MON_L2X0_DBG_CTRL_INDEX   0x100
 
#define OMAP4_MON_L2X0_CTRL_INDEX   0x102
 
#define OMAP4_MON_L2X0_AUXCTRL_INDEX   0x109
 
#define OMAP4_MON_L2X0_PREFETCH_INDEX   0x113
 
#define OMAP4_PPA_L2_POR_INDEX   0x23
 
#define OMAP4_PPA_CPU_ACTRL_SMP_INDEX   0x25
 

Functions

u32 omap_secure_dispatcher (u32 idx, u32 flag, u32 nargs, u32 arg1, u32 arg2, u32 arg3, u32 arg4)
 
u32 omap_smc2 (u32 id, u32 falg, u32 pargs)
 
phys_addr_t omap_secure_ram_mempool_base (void)
 

Macro Definition Documentation

#define API_HAL_RET_VALUE_FAIL   0x01

Definition at line 20 of file omap-secure.h.

#define API_HAL_RET_VALUE_NS2S_CONVERSION_ERROR   0xFFFFFFFE

Definition at line 15 of file omap-secure.h.

#define API_HAL_RET_VALUE_OK   0x00

Definition at line 19 of file omap-secure.h.

#define API_HAL_RET_VALUE_SERVICE_UNKNWON   0xFFFFFFFF

Definition at line 16 of file omap-secure.h.

#define FLAG_FIQ_ENABLE   0x1

Definition at line 26 of file omap-secure.h.

#define FLAG_IRQ_ENABLE   0x2

Definition at line 25 of file omap-secure.h.

#define FLAG_IRQFIQ_MASK   0x3

Definition at line 24 of file omap-secure.h.

#define FLAG_START_CRITICAL   0x4

Definition at line 23 of file omap-secure.h.

#define NO_FLAG   0x0

Definition at line 27 of file omap-secure.h.

#define OMAP4_HAL_SAVEALL_INDEX   0x1c

Definition at line 35 of file omap-secure.h.

#define OMAP4_HAL_SAVEGIC_INDEX   0x1d

Definition at line 36 of file omap-secure.h.

#define OMAP4_HAL_SAVEHW_INDEX   0x1b

Definition at line 34 of file omap-secure.h.

#define OMAP4_HAL_SAVESECURERAM_INDEX   0x1a

Definition at line 33 of file omap-secure.h.

#define OMAP4_MON_L2X0_AUXCTRL_INDEX   0x109

Definition at line 42 of file omap-secure.h.

#define OMAP4_MON_L2X0_CTRL_INDEX   0x102

Definition at line 41 of file omap-secure.h.

#define OMAP4_MON_L2X0_DBG_CTRL_INDEX   0x100

Definition at line 40 of file omap-secure.h.

#define OMAP4_MON_L2X0_PREFETCH_INDEX   0x113

Definition at line 43 of file omap-secure.h.

#define OMAP4_MON_SCU_PWR_INDEX   0x108

Definition at line 39 of file omap-secure.h.

#define OMAP4_PPA_CPU_ACTRL_SMP_INDEX   0x25

Definition at line 47 of file omap-secure.h.

#define OMAP4_PPA_L2_POR_INDEX   0x23

Definition at line 46 of file omap-secure.h.

#define OMAP_SECURE_RAM_STORAGE   (88 * SZ_1K)

Definition at line 30 of file omap-secure.h.

Function Documentation

u32 omap_secure_dispatcher ( u32  idx,
u32  flag,
u32  nargs,
u32  arg1,
u32  arg2,
u32  arg3,
u32  arg4 
)

omap_sec_dispatcher: Routine to dispatch low power secure service routines : The HAL API index : The flag indicating criticality of operation : Number of valid arguments out of four. , arg2, arg3 args4: Parameters passed to secure API

Return the non-zero error value on failure.

Definition at line 36 of file omap-secure.c.

phys_addr_t omap_secure_ram_mempool_base ( void  )

Definition at line 70 of file omap-secure.c.

u32 omap_smc2 ( u32  id,
u32  falg,
u32  pargs 
)