@@ -396,7 +396,7 @@ extern struct dev_object *dev_get_first(void);
* else: *ppIntfFxns is NULL.
*/
extern dsp_status dev_get_intf_fxns(struct dev_object *hdev_obj,
- OUT struct bridge_drv_interface **ppIntfFxns);
+ OUT struct bridge_drv_interface **ppIntfFxns);
/*
* ======== dev_get_io_mgr ========
@@ -50,6 +50,7 @@ extern dsp_status bridge_msg_register_notify(struct msg_queue *msg_queue_obj,
struct dsp_notification
*hnotification);
-extern void bridge_msg_set_queue_id(struct msg_queue *msg_queue_obj, u32 msgq_id);
+extern void bridge_msg_set_queue_id(struct msg_queue *msg_queue_obj,
+ u32 msgq_id);
#endif /* WMDMSG_ */
@@ -68,7 +68,8 @@ struct dev_object {
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 */
- struct bridge_drv_interface wmd_interface; /* Function interface to WMD. */
+ struct bridge_drv_interface wmd_interface; /* Function interface to
+ * WMD. */
struct brd_object *lock_owner; /* Client with exclusive access. */
struct cod_manager *cod_mgr; /* Code manager handle. */
struct chnl_mgr *hchnl_mgr; /* Channel manager. */
@@ -2457,38 +2457,33 @@ dsp_status node_terminate(struct node_object *hnode, OUT dsp_status *pstatus)
* in case posted by node_delete(). */
status = sync_wait_on_event(hnode->sync_done,
kill_time_out / 2);
- if (DSP_FAILED(status)) {
- if (status == DSP_ETIMEOUT) {
- status = (*intf_fxns->pfn_msg_put)
- (hnode->msg_queue_obj, &killmsg,
- hnode->utimeout);
- if (DSP_SUCCEEDED(status)) {
- status = sync_wait_on_event
- (hnode->sync_done,
- kill_time_out / 2);
- if (DSP_FAILED(status)) {
- /* Here it goes the part
- * of the simulation of
- * the DSP exception */
- dev_get_deh_mgr
- (hnode_mgr->hdev_obj,
- &hdeh_mgr);
- if (hdeh_mgr) {
- (*intf_fxns->
- pfn_deh_notify)
- (hdeh_mgr,
- DSP_SYSERROR,
- DSP_EXCEPTIONABORT);
- status =
- DSP_EFAIL;
- }
- } else
- status = DSP_SOK;
- }
- } else
- status = DSP_EFAIL;
- } else /* Convert SYNC status to DSP status */
- status = DSP_SOK;
+ if (status == DSP_ETIMEOUT) {
+ status = (*intf_fxns->pfn_msg_put)
+ (hnode->msg_queue_obj, &killmsg,
+ hnode->utimeout);
+ if (DSP_SUCCEEDED(status)) {
+ status = sync_wait_on_event
+ (hnode->sync_done,
+ kill_time_out / 2);
+ if (DSP_FAILED(status)) {
+ /* Here it goes the part
+ * of the simulation of
+ * the DSP exception */
+ dev_get_deh_mgr
+ (hnode_mgr->hdev_obj,
+ &hdeh_mgr);
+ if (hdeh_mgr) {
+ (*intf_fxns->
+ pfn_deh_notify)
+ (hdeh_mgr,
+ DSP_SYSERROR,
+ DSP_EXCEPTIONABORT);
+ status = DSP_EFAIL;
+ }
+ } else
+ status = DSP_SOK;
+ }
+ }
}
}
func_cont:
@@ -50,13 +50,13 @@ dsp_status pwr_sleep_dsp(IN CONST u32 sleepCode, IN CONST u32 timeout)
hdev_obj =
(struct dev_object *)drv_get_next_dev_object((u32) hdev_obj)) {
if (DSP_FAILED(dev_get_wmd_context(hdev_obj,
- (struct wmd_dev_context **)
- &dw_context))) {
+ (struct wmd_dev_context **)
+ &dw_context))) {
continue;
}
if (DSP_FAILED(dev_get_intf_fxns(hdev_obj,
- (struct bridge_drv_interface **)
- &intf_fxns))) {
+ (struct bridge_drv_interface **)
+ &intf_fxns))) {
continue;
}
if (sleepCode == PWR_DEEPSLEEP)
@@ -515,8 +515,9 @@ dsp_status bridge_chnl_flush_io(struct chnl_object *chnl_obj, u32 dwTimeOut)
* timeout: */
while (!LST_IS_EMPTY(pchnl->pio_requests) &&
DSP_SUCCEEDED(status)) {
- status = bridge_chnl_get_ioc(chnl_obj, dwTimeOut,
- &chnl_ioc_obj);
+ status = bridge_chnl_get_ioc(chnl_obj,
+ dwTimeOut,
+ &chnl_ioc_obj);
if (DSP_FAILED(status))
continue;