@@ -355,7 +355,7 @@ extern dsp_status dev_get_dev_node(struct dev_object *hdev_obj,
* else: *phDevNode is NULL.
*/
extern dsp_status dev_get_dev_type(struct dev_object *hdevObject,
- u32 *dev_type);
+ u8 *dev_type);
/*
* ======== dev_get_first ========
@@ -64,7 +64,7 @@
struct dev_object {
/* LST requires "link" to be first field! */
struct list_head link; /* Link to next dev_object. */
- u32 dev_type; /* Device Type */
+ u8 dev_type; /* Device Type */
u32 dw_signature; /* Used for object validation. */
struct cfg_devnode *dev_node_obj; /* Platform specific dev id */
struct wmd_dev_context *hwmd_context; /* WMD Context Handle */
@@ -1072,7 +1072,7 @@ dsp_status dev_remove_proc_object(struct dev_object *hdev_obj, u32 proc_obj)
return status;
}
-dsp_status dev_get_dev_type(struct dev_object *hdevObject, u32 *dev_type)
+dsp_status dev_get_dev_type(struct dev_object *hdevObject, u8 *dev_type)
{
dsp_status status = DSP_SOK;
struct dev_object *dev_obj = (struct dev_object *)hdevObject;
@@ -381,7 +381,7 @@ dsp_status wcd_init_complete2(void)
dsp_status status = DSP_SOK;
struct cfg_devnode *dev_node;
struct dev_object *hdev_obj;
- u32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(wcd_c_refs > 0);
@@ -100,7 +100,7 @@ dsp_status disp_create(OUT struct disp_object **phDispObject,
u32 ul_chnl_id;
struct chnl_attr chnl_attr_obj;
dsp_status status = DSP_SOK;
- u32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(phDispObject != NULL);
@@ -283,7 +283,7 @@ dsp_status disp_node_create(struct disp_object *disp_obj,
u32 max;
dsp_status status = DSP_SOK;
struct dsp_nodeinfo node_info;
- u32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(MEM_IS_VALID_HANDLE(disp_obj, DISP_SIGNATURE));
@@ -498,7 +498,7 @@ dsp_status disp_node_delete(struct disp_object *disp_obj,
u32 dw_arg;
struct rms_command *rms_cmd;
dsp_status status = DSP_SOK;
- u32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(MEM_IS_VALID_HANDLE(disp_obj, DISP_SIGNATURE));
@@ -552,7 +552,7 @@ dsp_status disp_node_run(struct disp_object *disp_obj,
u32 dw_arg;
struct rms_command *rms_cmd;
dsp_status status = DSP_SOK;
- u32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(MEM_IS_VALID_HANDLE(disp_obj, DISP_SIGNATURE));
DBC_REQUIRE(hnode != NULL);
@@ -200,7 +200,7 @@ dsp_status mgr_enum_processor_info(u32 processor_id,
struct mgr_processorextinfo *ext_info;
struct dev_object *hdev_obj;
struct drv_object *hdrv_obj;
- s32 dev_type;
+ u8 dev_type;
struct cfg_devnode *dev_node;
struct cfg_dspres chip_resources;
bool proc_detect = false;
@@ -215,7 +215,7 @@ dsp_status mgr_enum_processor_info(u32 processor_id,
if (DSP_SUCCEEDED(status)) {
status = drv_get_dev_object(processor_id, hdrv_obj, &hdev_obj);
if (DSP_SUCCEEDED(status)) {
- status = dev_get_dev_type(hdev_obj, (u32 *) &dev_type);
+ status = dev_get_dev_type(hdev_obj, (u8 *) &dev_type);
status = dev_get_dev_node(hdev_obj, &dev_node);
if (dev_type == DSP_UNIT)
status = cfg_get_dsp_resources(dev_node,
@@ -1314,7 +1314,7 @@ dsp_status node_create_mgr(OUT struct node_mgr **phNodeMgr,
char *sz_zl_file = "";
struct nldr_attrs nldr_attrs_obj;
dsp_status status = DSP_SOK;
- u32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(phNodeMgr != NULL);
DBC_REQUIRE(hdev_obj != NULL);
@@ -121,7 +121,7 @@ proc_attach(u32 processor_id,
struct proc_object *p_proc_object = NULL;
struct mgr_object *hmgr_obj = NULL;
struct drv_object *hdrv_obj = NULL;
- u32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(ph_processor != NULL);
@@ -226,10 +226,10 @@ static dsp_status get_exec_file(struct cfg_devnode *dev_node_obj,
struct dev_object *hdev_obj,
u32 size, char *execFile)
{
- s32 dev_type;
+ u8 dev_type;
s32 len;
- dev_get_dev_type(hdev_obj, (u32 *) &dev_type);
+ dev_get_dev_type(hdev_obj, (u8 *) &dev_type);
if (dev_type == DSP_UNIT) {
return cfg_get_exec_file(dev_node_obj, size, execFile);
} else if (dev_type == IVA_UNIT) {
@@ -265,7 +265,7 @@ dsp_status proc_auto_start(struct cfg_devnode *dev_node_obj,
char sz_exec_file[MAXCMDLINELEN];
char *argv[2];
struct mgr_object *hmgr_obj = NULL;
- s32 dev_type;
+ u8 dev_type;
DBC_REQUIRE(refs > 0);
DBC_REQUIRE(dev_node_obj != NULL);
@@ -302,7 +302,7 @@ dsp_status proc_auto_start(struct cfg_devnode *dev_node_obj,
goto func_cont;
}
/* Get the default executable for this board... */
- dev_get_dev_type(hdev_obj, (u32 *) &dev_type);
+ dev_get_dev_type(hdev_obj, (u8 *) &dev_type);
p_proc_object->processor_id = dev_type;
status = get_exec_file(dev_node_obj, hdev_obj, sizeof(sz_exec_file),
sz_exec_file);
@@ -178,7 +178,7 @@ dsp_status bridge_io_create(OUT struct io_mgr **phIOMgr,
struct cfg_hostres host_res;
struct cfg_devnode *dev_node_obj;
struct chnl_mgr *hchnl_mgr;
- u32 dev_type;
+ u8 dev_type;
/* Check requirements */
if (!phIOMgr || !pMgrAttrs || pMgrAttrs->word_size == 0) {