18 #include <linux/types.h>
19 #include <linux/list.h>
51 #define MAKEVERSION(major, minor) (major * 10 + minor)
52 #define BRD_API_VERSION MAKEVERSION(BRD_API_MAJOR_VERSION, \
53 BRD_API_MINOR_VERSION)
85 static int fxn_not_implemented(
int arg, ...);
86 static int init_cod_mgr(
struct dev_object *dev_obj);
97 u32 ul_num_bytes,
u32 mem_space)
107 dsp_add, ul_num_bytes, mem_space);
109 if (ul_num_bytes == 0)
112 ul_written = ul_num_bytes;
125 const char *driver_file_name,
154 pr_err(
"%s: Failed to retrieve the object handle\n", __func__);
173 store_interface_fxns(drv_fxns,
187 status = init_cod_mgr(dev_obj);
208 pr_err(
"%s: No memory reserved for shared structures\n",
245 *device_obj = dev_obj;
325 if (dev_obj->
iomgr) {
473 *deh_manager = hdev_obj->
deh_mgr;
487 struct cfg_devnode **dev_nde)
548 *io_man = hdev_obj->
iomgr;
573 return next_dev_object;
609 const char *str_sym,
u32 * pul_value)
641 *phbridge_context =
NULL;
686 if (!
strcmp((
char *)((
struct drv_ext *)dev_node_obj)->sz_string,
697 pr_err(
"%s: Failed, status 0x%x\n", __func__, status);
740 char *bridge_file_name =
"UMA";
750 if (!drv_datap || !dev_node_obj) {
752 pr_err(
"%s: Failed, status 0x%x\n", __func__, status);
753 }
else if (!(
strcmp((
char *)dev_node_obj,
"TIOMAP1510"))) {
759 if (status && !(
strcmp((
char *)dev_node_obj,
784 static int fxn_not_implemented(
int arg, ...)
803 static int init_cod_mgr(
struct dev_object *dev_obj)
806 char *sz_dummy_file =
"dummy";
833 u32 proc_obj,
bool *already_attached)
838 *already_attached =
true;
876 if ((
u32) cur_elem == proc_obj) {
918 #define STORE_FXN(cast, pfn) \
919 (intf_fxns->pfn = ((drv_fxns->pfn != NULL) ? drv_fxns->pfn : \
920 (cast)fxn_not_implemented))
927 if (bridge_version > 0) {