Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
cfe_api.h File Reference
#include <linux/types.h>
#include <linux/string.h>

Go to the source code of this file.

Data Structures

struct  cfe_fwinfo_t
 

Macros

#define CFE_EPTSEAL   0x43464531
 
#define CFE_MI_RESERVED   0 /* memory is reserved, do not use */
 
#define CFE_MI_AVAILABLE   1 /* memory is available */
 
#define CFE_FLG_WARMSTART   0x00000001
 
#define CFE_FLG_FULL_ARENA   0x00000001
 
#define CFE_FLG_ENV_PERMANENT   0x00000001
 
#define CFE_CPU_CMD_START   1
 
#define CFE_CPU_CMD_STOP   0
 
#define CFE_STDHANDLE_CONSOLE   0
 
#define CFE_DEV_NETWORK   1
 
#define CFE_DEV_DISK   2
 
#define CFE_DEV_FLASH   3
 
#define CFE_DEV_SERIAL   4
 
#define CFE_DEV_CPU   5
 
#define CFE_DEV_NVRAM   6
 
#define CFE_DEV_CLOCK   7
 
#define CFE_DEV_OTHER   8
 
#define CFE_DEV_MASK   0x0F
 
#define CFE_CACHE_FLUSH_D   1
 
#define CFE_CACHE_INVAL_I   2
 
#define CFE_CACHE_INVAL_D   4
 
#define CFE_CACHE_INVAL_L2   8
 
#define CFE_FWI_64BIT   0x00000001
 
#define CFE_FWI_32BIT   0x00000002
 
#define CFE_FWI_RELOC   0x00000004
 
#define CFE_FWI_UNCACHED   0x00000008
 
#define CFE_FWI_MULTICPU   0x00000010
 
#define CFE_FWI_FUNCSIM   0x00000020
 
#define CFE_FWI_RTLSIM   0x00000040
 

Typedefs

typedef long intptr_t
 

Functions

int64_t cfe_getticks (void)
 
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, uint64_t *start, uint64_t *length, uint64_t *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)
 
int cfe_init (uint64_t handle, uint64_t ept)
 
int cfe_inpstat (int handle)
 
int cfe_ioctl (int handle, unsigned int ioctlnum, unsigned char *buffer, int length, int *retlen, uint64_t offset)
 
int cfe_open (char *name)
 
int cfe_read (int handle, unsigned char *buffer, int length)
 
int cfe_readblk (int handle, int64_t 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, int64_t offset, unsigned char *buffer, int length)
 

Macro Definition Documentation

#define CFE_CACHE_FLUSH_D   1

Definition at line 65 of file cfe_api.h.

#define CFE_CACHE_INVAL_D   4

Definition at line 67 of file cfe_api.h.

#define CFE_CACHE_INVAL_I   2

Definition at line 66 of file cfe_api.h.

#define CFE_CACHE_INVAL_L2   8

Definition at line 68 of file cfe_api.h.

#define CFE_CPU_CMD_START   1

Definition at line 50 of file cfe_api.h.

#define CFE_CPU_CMD_STOP   0

Definition at line 51 of file cfe_api.h.

#define CFE_DEV_CLOCK   7

Definition at line 61 of file cfe_api.h.

#define CFE_DEV_CPU   5

Definition at line 59 of file cfe_api.h.

#define CFE_DEV_DISK   2

Definition at line 56 of file cfe_api.h.

#define CFE_DEV_FLASH   3

Definition at line 57 of file cfe_api.h.

#define CFE_DEV_MASK   0x0F

Definition at line 63 of file cfe_api.h.

#define CFE_DEV_NETWORK   1

Definition at line 55 of file cfe_api.h.

#define CFE_DEV_NVRAM   6

Definition at line 60 of file cfe_api.h.

#define CFE_DEV_OTHER   8

Definition at line 62 of file cfe_api.h.

#define CFE_DEV_SERIAL   4

Definition at line 58 of file cfe_api.h.

#define CFE_EPTSEAL   0x43464531

Definition at line 41 of file cfe_api.h.

#define CFE_FLG_ENV_PERMANENT   0x00000001

Definition at line 48 of file cfe_api.h.

#define CFE_FLG_FULL_ARENA   0x00000001

Definition at line 47 of file cfe_api.h.

#define CFE_FLG_WARMSTART   0x00000001

Definition at line 46 of file cfe_api.h.

#define CFE_FWI_32BIT   0x00000002

Definition at line 71 of file cfe_api.h.

#define CFE_FWI_64BIT   0x00000001

Definition at line 70 of file cfe_api.h.

#define CFE_FWI_FUNCSIM   0x00000020

Definition at line 75 of file cfe_api.h.

#define CFE_FWI_MULTICPU   0x00000010

Definition at line 74 of file cfe_api.h.

#define CFE_FWI_RELOC   0x00000004

Definition at line 72 of file cfe_api.h.

#define CFE_FWI_RTLSIM   0x00000040

Definition at line 76 of file cfe_api.h.

#define CFE_FWI_UNCACHED   0x00000008

Definition at line 73 of file cfe_api.h.

#define CFE_MI_AVAILABLE   1 /* memory is available */

Definition at line 44 of file cfe_api.h.

#define CFE_MI_RESERVED   0 /* memory is reserved, do not use */

Definition at line 43 of file cfe_api.h.

#define CFE_STDHANDLE_CONSOLE   0

Definition at line 53 of file cfe_api.h.

Typedef Documentation

typedef long intptr_t

Definition at line 33 of file cfe_api.h.

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,
uint64_t start,
uint64_t length,
uint64_t 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 ( uint64_t  handle,
uint64_t  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_ioctl ( int  handle,
unsigned int  ioctlnum,
unsigned char buffer,
int  length,
int retlen,
uint64_t  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,
int64_t  offset,
unsigned char buffer,
int  length 
)
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,
int64_t  offset,
unsigned char buffer,
int  length 
)