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

Go to the source code of this file.

Macros

#define SCM_SVC_BOOT   0x1
 
#define SCM_SVC_PIL   0x2
 
#define SCM_VERSION(major, minor)   (((major) << 16) | ((minor) & 0xFF))
 

Functions

int scm_call (u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len, void *resp_buf, size_t resp_len)
 
u32 scm_get_version (void)
 

Macro Definition Documentation

#define SCM_SVC_BOOT   0x1

Definition at line 15 of file scm.h.

#define SCM_SVC_PIL   0x2

Definition at line 16 of file scm.h.

#define SCM_VERSION (   major,
  minor 
)    (((major) << 16) | ((minor) & 0xFF))

Definition at line 21 of file scm.h.

Function Documentation

int scm_call ( u32  svc_id,
u32  cmd_id,
const void cmd_buf,
size_t  cmd_len,
void resp_buf,
size_t  resp_len 
)

scm_call() - Send an SCM command : service identifier : command identifier : command buffer : length of the command buffer : response buffer : length of the response buffer

Sends a command to the SCM and waits for the command to finish processing.

Definition at line 224 of file scm.c.

u32 scm_get_version ( void  )

Definition at line 265 of file scm.c.