From 0feefc03b6008301a19a430427390cc9c44decf8 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Wed, 23 Oct 2013 01:43:18 +0800 Subject: device/pipe: add a control cmd to get the space left in pipe --- components/drivers/include/rtdevice.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components/drivers/include/rtdevice.h') diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index 60d4dc1e8a..8ed9f34ca4 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -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 -- cgit v1.3.1