|
@@ -47,7 +47,6 @@
|
|
* -EPERM: A failure occurred, unable to allocate node.
|
|
* -EPERM: A failure occurred, unable to allocate node.
|
|
* -EBADR: Proccessor is not in the running state.
|
|
* -EBADR: Proccessor is not in the running state.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* hprocessor != NULL.
|
|
* hprocessor != NULL.
|
|
* node_uuid != NULL.
|
|
* node_uuid != NULL.
|
|
* noderes != NULL.
|
|
* noderes != NULL.
|
|
@@ -81,7 +80,6 @@ extern int node_allocate(struct proc_object *hprocessor,
|
|
* -EPERM: General Failure.
|
|
* -EPERM: General Failure.
|
|
* -EINVAL: Invalid Size.
|
|
* -EINVAL: Invalid Size.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* pbuffer != NULL.
|
|
* pbuffer != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
@@ -106,7 +104,6 @@ extern int node_alloc_msg_buf(struct node_object *hnode,
|
|
* or NODE_RUNNING state.
|
|
* or NODE_RUNNING state.
|
|
* -ETIME: A timeout occurred before the DSP responded.
|
|
* -ETIME: A timeout occurred before the DSP responded.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* Ensures:
|
|
* Ensures:
|
|
* 0 && (Node's current priority == prio)
|
|
* 0 && (Node's current priority == prio)
|
|
*/
|
|
*/
|
|
@@ -157,7 +154,6 @@ extern int node_change_priority(struct node_object *hnode, s32 prio);
|
|
* Device node to device node, or device node to
|
|
* Device node to device node, or device node to
|
|
* GPP), the two nodes are on different DSPs.
|
|
* GPP), the two nodes are on different DSPs.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
extern int node_connect(struct node_object *node1,
|
|
extern int node_connect(struct node_object *node1,
|
|
@@ -185,7 +181,6 @@ extern int node_connect(struct node_object *node1,
|
|
* -ETIME: A timeout occurred before the DSP responded.
|
|
* -ETIME: A timeout occurred before the DSP responded.
|
|
* -EPERM: A failure occurred, unable to create node.
|
|
* -EPERM: A failure occurred, unable to create node.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
extern int node_create(struct node_object *hnode);
|
|
extern int node_create(struct node_object *hnode);
|
|
@@ -206,7 +201,6 @@ extern int node_create(struct node_object *hnode);
|
|
* -ENOMEM: Insufficient memory for requested resources.
|
|
* -ENOMEM: Insufficient memory for requested resources.
|
|
* -EPERM: General failure.
|
|
* -EPERM: General failure.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* node_man != NULL.
|
|
* node_man != NULL.
|
|
* hdev_obj != NULL.
|
|
* hdev_obj != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
@@ -234,7 +228,6 @@ extern int node_create_mgr(struct node_mgr **node_man,
|
|
* -EPERM: A failure occurred in deleting the node.
|
|
* -EPERM: A failure occurred in deleting the node.
|
|
* -ESPIPE: Delete function not found in the COFF file.
|
|
* -ESPIPE: Delete function not found in the COFF file.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* Ensures:
|
|
* Ensures:
|
|
* 0: hnode is invalid.
|
|
* 0: hnode is invalid.
|
|
*/
|
|
*/
|
|
@@ -250,7 +243,6 @@ extern int node_delete(struct node_res_object *noderes,
|
|
* Returns:
|
|
* Returns:
|
|
* 0: Success.
|
|
* 0: Success.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* Valid hnode_mgr.
|
|
* Valid hnode_mgr.
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
@@ -286,20 +278,6 @@ extern int node_enum_nodes(struct node_mgr *hnode_mgr,
|
|
u32 *pu_num_nodes,
|
|
u32 *pu_num_nodes,
|
|
u32 *pu_allocated);
|
|
u32 *pu_allocated);
|
|
|
|
|
|
-/*
|
|
|
|
- * ======== node_exit ========
|
|
|
|
- * Purpose:
|
|
|
|
- * Discontinue usage of NODE module.
|
|
|
|
- * Parameters:
|
|
|
|
- * Returns:
|
|
|
|
- * Requires:
|
|
|
|
- * node_init(void) successfully called before.
|
|
|
|
- * Ensures:
|
|
|
|
- * Any resources acquired in node_init(void) will be freed when last NODE
|
|
|
|
- * client calls node_exit(void).
|
|
|
|
- */
|
|
|
|
-extern void node_exit(void);
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* ======== node_free_msg_buf ========
|
|
* ======== node_free_msg_buf ========
|
|
* Purpose:
|
|
* Purpose:
|
|
@@ -313,7 +291,6 @@ extern void node_exit(void);
|
|
* -EFAULT: Invalid node handle.
|
|
* -EFAULT: Invalid node handle.
|
|
* -EPERM: Failure to free the buffer.
|
|
* -EPERM: Failure to free the buffer.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* pbuffer != NULL.
|
|
* pbuffer != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
@@ -336,7 +313,6 @@ extern int node_free_msg_buf(struct node_object *hnode,
|
|
* 0: Success.
|
|
* 0: Success.
|
|
* -EFAULT: Invalid hnode.
|
|
* -EFAULT: Invalid hnode.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* pattr != NULL.
|
|
* pattr != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
* 0: *pattrs contains the node's current attributes.
|
|
* 0: *pattrs contains the node's current attributes.
|
|
@@ -363,7 +339,6 @@ extern int node_get_attr(struct node_object *hnode,
|
|
* Error occurred while trying to retrieve a message.
|
|
* Error occurred while trying to retrieve a message.
|
|
* -ETIME: Timeout occurred and no message is available.
|
|
* -ETIME: Timeout occurred and no message is available.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* message != NULL.
|
|
* message != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
@@ -385,17 +360,6 @@ extern int node_get_message(struct node_object *hnode,
|
|
extern int node_get_nldr_obj(struct node_mgr *hnode_mgr,
|
|
extern int node_get_nldr_obj(struct node_mgr *hnode_mgr,
|
|
struct nldr_object **nldr_ovlyobj);
|
|
struct nldr_object **nldr_ovlyobj);
|
|
|
|
|
|
-/*
|
|
|
|
- * ======== node_init ========
|
|
|
|
- * Purpose:
|
|
|
|
- * Initialize the NODE module.
|
|
|
|
- * Parameters:
|
|
|
|
- * Returns:
|
|
|
|
- * TRUE if initialization succeeded, FALSE otherwise.
|
|
|
|
- * Ensures:
|
|
|
|
- */
|
|
|
|
-extern bool node_init(void);
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* ======== node_on_exit ========
|
|
* ======== node_on_exit ========
|
|
* Purpose:
|
|
* Purpose:
|
|
@@ -425,7 +389,6 @@ void node_on_exit(struct node_object *hnode, s32 node_status);
|
|
* -ETIME: A timeout occurred before the DSP responded.
|
|
* -ETIME: A timeout occurred before the DSP responded.
|
|
* DSP_EWRONGSTSATE: Node is not in NODE_RUNNING state.
|
|
* DSP_EWRONGSTSATE: Node is not in NODE_RUNNING state.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
extern int node_pause(struct node_object *hnode);
|
|
extern int node_pause(struct node_object *hnode);
|
|
@@ -449,7 +412,6 @@ extern int node_pause(struct node_object *hnode);
|
|
* -ETIME: Timeout occurred before message could be set.
|
|
* -ETIME: Timeout occurred before message could be set.
|
|
* -EBADR: Node is in invalid state for sending messages.
|
|
* -EBADR: Node is in invalid state for sending messages.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* pmsg != NULL.
|
|
* pmsg != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
@@ -473,7 +435,6 @@ extern int node_put_message(struct node_object *hnode,
|
|
* -ENOSYS: Notification type specified by notify_type is not
|
|
* -ENOSYS: Notification type specified by notify_type is not
|
|
* supported.
|
|
* supported.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* hnotification != NULL.
|
|
* hnotification != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
@@ -500,7 +461,6 @@ extern int node_register_notify(struct node_object *hnode,
|
|
* DSP_EWRONGSTSATE: Node is not in NODE_PAUSED or NODE_CREATED state.
|
|
* DSP_EWRONGSTSATE: Node is not in NODE_PAUSED or NODE_CREATED state.
|
|
* -ESPIPE: Execute function not found in the COFF file.
|
|
* -ESPIPE: Execute function not found in the COFF file.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|
|
extern int node_run(struct node_object *hnode);
|
|
extern int node_run(struct node_object *hnode);
|
|
@@ -523,7 +483,6 @@ extern int node_run(struct node_object *hnode);
|
|
* Unable to terminate the node.
|
|
* Unable to terminate the node.
|
|
* -EBADR: Operation not valid for the current node state.
|
|
* -EBADR: Operation not valid for the current node state.
|
|
* Requires:
|
|
* Requires:
|
|
- * node_init(void) called.
|
|
|
|
* pstatus != NULL.
|
|
* pstatus != NULL.
|
|
* Ensures:
|
|
* Ensures:
|
|
*/
|
|
*/
|