Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
cod.h File Reference
#include <dspbridge/dblldefs.h>

Go to the source code of this file.

Macros

#define COD_MAXPATHLENGTH   255
 
#define COD_TRACEBEG   "SYS_PUTCBEG"
 
#define COD_TRACEEND   "SYS_PUTCEND"
 
#define COD_TRACECURPOS   "BRIDGE_SYS_PUTC_current"
 
#define COD_NOLOAD   DBLL_NOLOAD
 
#define COD_SYMB   DBLL_SYMB
 

Typedefs

typedef u32(* cod_writefxn )(void *priv_ref, u32 dsp_add, void *pbuf, u32 ul_num_bytes, u32 mem_space)
 

Functions

void cod_close (struct cod_libraryobj *lib)
 
int cod_create (struct cod_manager **mgr, char *str_zl_file)
 
void cod_delete (struct cod_manager *cod_mgr_obj)
 
int cod_get_base_lib (struct cod_manager *cod_mgr_obj, struct dbll_library_obj **plib)
 
int cod_get_base_name (struct cod_manager *cod_mgr_obj, char *sz_name, u32 usize)
 
int cod_get_entry (struct cod_manager *cod_mgr_obj, u32 *entry_pt)
 
int cod_get_loader (struct cod_manager *cod_mgr_obj, struct dbll_tar_obj **loader)
 
int cod_get_section (struct cod_libraryobj *lib, char *str_sect, u32 *addr, u32 *len)
 
int cod_get_sym_value (struct cod_manager *cod_mgr_obj, char *str_sym, u32 *pul_value)
 
int cod_load_base (struct cod_manager *cod_mgr_obj, u32 num_argc, char *args[], cod_writefxn pfn_write, void *arb, char *envp[])
 
int cod_open (struct cod_manager *hmgr, char *sz_coff_path, u32 flags, struct cod_libraryobj **lib_obj)
 
int cod_open_base (struct cod_manager *hmgr, char *sz_coff_path, dbll_flags flags)
 
int cod_read_section (struct cod_libraryobj *lib, char *str_sect, char *str_content, u32 content_size)
 

Macro Definition Documentation

#define COD_MAXPATHLENGTH   255

Definition at line 26 of file cod.h.

#define COD_NOLOAD   DBLL_NOLOAD

Definition at line 31 of file cod.h.

#define COD_SYMB   DBLL_SYMB

Definition at line 32 of file cod.h.

#define COD_TRACEBEG   "SYS_PUTCBEG"

Definition at line 27 of file cod.h.

#define COD_TRACECURPOS   "BRIDGE_SYS_PUTC_current"

Definition at line 29 of file cod.h.

#define COD_TRACEEND   "SYS_PUTCEND"

Definition at line 28 of file cod.h.

Typedef Documentation

typedef u32(* cod_writefxn)(void *priv_ref, u32 dsp_add, void *pbuf, u32 ul_num_bytes, u32 mem_space)

Definition at line 44 of file cod.h.

Function Documentation

void cod_close ( struct cod_libraryobj lib)

Definition at line 177 of file cod.c.

int cod_create ( struct cod_manager **  mgr,
char str_zl_file 
)

Definition at line 196 of file cod.c.

void cod_delete ( struct cod_manager cod_mgr_obj)

Definition at line 252 of file cod.c.

int cod_get_base_lib ( struct cod_manager cod_mgr_obj,
struct dbll_library_obj **  plib 
)

Definition at line 273 of file cod.c.

int cod_get_base_name ( struct cod_manager cod_mgr_obj,
char sz_name,
u32  usize 
)

Definition at line 286 of file cod.c.

int cod_get_entry ( struct cod_manager cod_mgr_obj,
u32 entry_pt 
)

Definition at line 305 of file cod.c.

int cod_get_loader ( struct cod_manager cod_mgr_obj,
struct dbll_tar_obj **  loader 
)

Definition at line 317 of file cod.c.

int cod_get_section ( struct cod_libraryobj lib,
char str_sect,
u32 addr,
u32 len 
)

Definition at line 333 of file cod.c.

int cod_get_sym_value ( struct cod_manager cod_mgr_obj,
char str_sym,
u32 pul_value 
)

Definition at line 360 of file cod.c.

int cod_load_base ( struct cod_manager cod_mgr_obj,
u32  num_argc,
char args[],
cod_writefxn  pfn_write,
void arb,
char envp[] 
)

Definition at line 397 of file cod.c.

int cod_open ( struct cod_manager hmgr,
char sz_coff_path,
u32  flags,
struct cod_libraryobj **  lib_obj 
)

Definition at line 448 of file cod.c.

int cod_open_base ( struct cod_manager hmgr,
char sz_coff_path,
dbll_flags  flags 
)

Definition at line 479 of file cod.c.

int cod_read_section ( struct cod_libraryobj lib,
char str_sect,
char str_content,
u32  content_size 
)

Definition at line 513 of file cod.c.