Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dbll.h
Go to the documentation of this file.
1 /*
2  * dbll.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * DSP/BIOS Bridge Dynamic load library module interface. Function header
7  * comments are in the file dblldefs.h.
8  *
9  * Copyright (C) 2005-2006 Texas Instruments, Inc.
10  *
11  * This package is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2 as
13  * published by the Free Software Foundation.
14  *
15  * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18  */
19 
20 #ifndef DBLL_
21 #define DBLL_
22 
23 #include <dspbridge/dbdefs.h>
24 #include <dspbridge/dblldefs.h>
25 
26 extern bool symbols_reloaded;
27 
28 extern void dbll_close(struct dbll_library_obj *zl_lib);
29 extern int dbll_create(struct dbll_tar_obj **target_obj,
30  struct dbll_attrs *pattrs);
31 extern void dbll_delete(struct dbll_tar_obj *target);
32 extern void dbll_exit(void);
33 extern bool dbll_get_addr(struct dbll_library_obj *zl_lib, char *name,
34  struct dbll_sym_val **sym_val);
35 extern void dbll_get_attrs(struct dbll_tar_obj *target,
36  struct dbll_attrs *pattrs);
37 extern bool dbll_get_c_addr(struct dbll_library_obj *zl_lib, char *name,
38  struct dbll_sym_val **sym_val);
39 extern int dbll_get_sect(struct dbll_library_obj *lib, char *name,
40  u32 *paddr, u32 *psize);
41 extern bool dbll_init(void);
42 extern int dbll_load(struct dbll_library_obj *lib,
44  struct dbll_attrs *attrs, u32 * entry);
45 extern int dbll_open(struct dbll_tar_obj *target, char *file,
47  struct dbll_library_obj **lib_obj);
48 extern int dbll_read_sect(struct dbll_library_obj *lib,
49  char *name, char *buf, u32 size);
50 extern void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs);
51 #ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
52 bool dbll_find_dsp_symbol(struct dbll_library_obj *zl_lib, u32 address,
53  u32 offset_range, u32 *sym_addr_output, char *name_output);
54 #endif
55 
56 #endif /* DBLL_ */