Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cfe_api.c File Reference
#include <asm/fw/cfe/cfe_api.h>
#include "cfe_api_int.h"

Go to the source code of this file.

Macros

#define XPTR_FROM_NATIVE(n)   ((cfe_xptr_t) (intptr_t) (n))
 
#define NATIVE_FROM_XPTR(x)   ((void *) (intptr_t) (x))
 

Functions

int cfe_iocb_dispatch (struct cfe_xiocb *xiocb)
 
int cfe_init (u64 handle, u64 ept)
 
int cfe_close (int handle)
 
int cfe_cpu_start (int cpu, void(*fn)(void), long sp, long gp, long a1)
 
int cfe_cpu_stop (int cpu)
 
int cfe_enumenv (int idx, char *name, int namelen, char *val, int vallen)
 
int cfe_enummem (int idx, int flags, u64 *start, u64 *length, u64 *type)
 
int cfe_exit (int warm, int status)
 
int cfe_flushcache (int flg)
 
int cfe_getdevinfo (char *name)
 
int cfe_getenv (char *name, char *dest, int destlen)
 
int cfe_getfwinfo (cfe_fwinfo_t *info)
 
int cfe_getstdhandle (int flg)
 
int64_t cfe_getticks (void)
 
int cfe_inpstat (int handle)
 
int cfe_ioctl (int handle, unsigned int ioctlnum, unsigned char *buffer, int length, int *retlen, u64 offset)
 
int cfe_open (char *name)
 
int cfe_read (int handle, unsigned char *buffer, int length)
 
int cfe_readblk (int handle, s64 offset, unsigned char *buffer, int length)
 
int cfe_setenv (char *name, char *val)
 
int cfe_write (int handle, unsigned char *buffer, int length)
 
int cfe_writeblk (int handle, s64 offset, unsigned char *buffer, int length)
 

Macro Definition Documentation

#define NATIVE_FROM_XPTR (   x)    ((void *) (intptr_t) (x))

Definition at line 35 of file cfe_api.c.

#define XPTR_FROM_NATIVE (   n)    ((cfe_xptr_t) (intptr_t) (n))

Definition at line 34 of file cfe_api.c.

Function Documentation

int cfe_close ( int  handle)

Definition at line 65 of file cfe_api.c.

int cfe_cpu_start ( int  cpu,
void(*)(void fn,
long  sp,
long  gp,
long  a1 
)

Definition at line 81 of file cfe_api.c.

int cfe_cpu_stop ( int  cpu)

Definition at line 102 of file cfe_api.c.

int cfe_enumenv ( int  idx,
char name,
int  namelen,
char val,
int  vallen 
)

Definition at line 119 of file cfe_api.c.

int cfe_enummem ( int  idx,
int  flags,
u64 start,
u64 length,
u64 type 
)

Definition at line 140 of file cfe_api.c.

int cfe_exit ( int  warm,
int  status 
)

Definition at line 163 of file cfe_api.c.

int cfe_flushcache ( int  flg)

Definition at line 179 of file cfe_api.c.

int cfe_getdevinfo ( char name)

Definition at line 194 of file cfe_api.c.

int cfe_getenv ( char name,
char dest,
int  destlen 
)

Definition at line 214 of file cfe_api.c.

int cfe_getfwinfo ( cfe_fwinfo_t info)

Definition at line 236 of file cfe_api.c.

int cfe_getstdhandle ( int  flg)

Definition at line 268 of file cfe_api.c.

int64_t cfe_getticks ( void  )

Definition at line 286 of file cfe_api.c.

int cfe_init ( u64  handle,
u64  ept 
)

Definition at line 51 of file cfe_api.c.

int cfe_inpstat ( int  handle)

Definition at line 303 of file cfe_api.c.

int cfe_iocb_dispatch ( struct cfe_xiocb xiocb)

Definition at line 58 of file cfe_api.c.

int cfe_ioctl ( int  handle,
unsigned int  ioctlnum,
unsigned char buffer,
int  length,
int retlen,
u64  offset 
)

Definition at line 322 of file cfe_api.c.

int cfe_open ( char name)

Definition at line 344 of file cfe_api.c.

int cfe_read ( int  handle,
unsigned char buffer,
int  length 
)

Definition at line 364 of file cfe_api.c.

int cfe_readblk ( int  handle,
s64  offset,
unsigned char buffer,
int  length 
)

Definition at line 369 of file cfe_api.c.

int cfe_setenv ( char name,
char val 
)

Definition at line 389 of file cfe_api.c.

int cfe_write ( int  handle,
unsigned char buffer,
int  length 
)

Definition at line 409 of file cfe_api.c.

int cfe_writeblk ( int  handle,
s64  offset,
unsigned char buffer,
int  length 
)

Definition at line 414 of file cfe_api.c.