Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
scm.c File Reference
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <asm/cacheflush.h>
#include "scm.h"

Go to the source code of this file.

Data Structures

struct  scm_command
 
struct  scm_response
 

Macros

#define CACHELINESIZE   32
 
#define SCM_ENOMEM   -5
 
#define SCM_EOPNOTSUPP   -4
 
#define SCM_EINVAL_ADDR   -3
 
#define SCM_EINVAL_ARG   -2
 
#define SCM_ERROR   -1
 
#define SCM_INTERRUPTED   1
 

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)
 
 EXPORT_SYMBOL (scm_call)
 
u32 scm_get_version (void)
 
 EXPORT_SYMBOL (scm_get_version)
 

Macro Definition Documentation

#define CACHELINESIZE   32

Definition at line 30 of file scm.c.

#define SCM_EINVAL_ADDR   -3

Definition at line 34 of file scm.c.

#define SCM_EINVAL_ARG   -2

Definition at line 35 of file scm.c.

#define SCM_ENOMEM   -5

Definition at line 32 of file scm.c.

#define SCM_EOPNOTSUPP   -4

Definition at line 33 of file scm.c.

#define SCM_ERROR   -1

Definition at line 36 of file scm.c.

#define SCM_INTERRUPTED   1

Definition at line 37 of file scm.c.

Function Documentation

EXPORT_SYMBOL ( scm_call  )
EXPORT_SYMBOL ( scm_get_version  )
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.