device/pipe: add a control cmd to get the space left in pipe

This commit is contained in:
Grissiom
2013-10-23 01:43:18 +08:00
parent ac5da68db7
commit 0feefc03b6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -114,6 +114,8 @@ struct rt_pipe_device
struct rt_portal_device *read_portal;
};
#define PIPE_CTRL_GET_SPACE 0x14 /**< get the remaining size of a pipe device */
#define RT_DATAQUEUE_EVENT_UNKNOWN 0x00
#define RT_DATAQUEUE_EVENT_POP 0x01
#define RT_DATAQUEUE_EVENT_PUSH 0x02