1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#ifndef DSPMSG_
25#define DSPMSG_
26
27#include <dspbridge/msgdefs.h>
28
29extern int bridge_msg_create(struct msg_mgr **msg_man,
30 struct dev_object *hdev_obj,
31 msg_onexit msg_callback);
32
33extern int bridge_msg_create_queue(struct msg_mgr *hmsg_mgr,
34 struct msg_queue **msgq,
35 u32 msgq_id, u32 max_msgs, void *arg);
36
37extern void bridge_msg_delete(struct msg_mgr *hmsg_mgr);
38
39extern void bridge_msg_delete_queue(struct msg_queue *msg_queue_obj);
40
41extern int bridge_msg_get(struct msg_queue *msg_queue_obj,
42 struct dsp_msg *pmsg, u32 utimeout);
43
44extern int bridge_msg_put(struct msg_queue *msg_queue_obj,
45 const struct dsp_msg *pmsg, u32 utimeout);
46
47extern int bridge_msg_register_notify(struct msg_queue *msg_queue_obj,
48 u32 event_mask,
49 u32 notify_type,
50 struct dsp_notification
51 *hnotification);
52
53extern void bridge_msg_set_queue_id(struct msg_queue *msg_queue_obj,
54 u32 msgq_id);
55
56#endif
57