diff options
| author | [email protected] <[email protected]> | 2012-12-14 06:34:25 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-14 06:34:25 +0000 |
| commit | 977afc4f67d10aa9ffbb37c69f090d103d84f24c (patch) | |
| tree | 70ef2c171ac3c53ada78b6c28eac5f9696b13e75 | |
| parent | 601eb6fe70aa10e4bf62f7a68915dc1ad7b37553 (diff) | |
add RT_DEVICE_CTRL_BLK_ERASE and struct rt_device_blk_sectors in rtdef.h
please see this commit with revision 2478
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2482 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | include/rtdef.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 75bc7e57d7..1c504ce18a 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -692,6 +692,7 @@ enum rt_device_class_type #define RT_DEVICE_CTRL_CHAR_STREAM 0x10 /**< stream mode on char device */
#define RT_DEVICE_CTRL_BLK_GETGEOME 0x10 /**< get geometry information */
#define RT_DEVICE_CTRL_BLK_SYNC 0x11 /**< flush data to block device */
+#define RT_DEVICE_CTRL_BLK_ERASE 0x12 /**< erase block on block device */
#define RT_DEVICE_CTRL_NETIF_GETMAC 0x10 /**< get mac address */
#define RT_DEVICE_CTRL_MTD_FORMAT 0x10 /**< format a MTD device */
#define RT_DEVICE_CTRL_RTC_GET_TIME 0x10 /**< get time */
@@ -744,6 +745,15 @@ struct rt_device_blk_geometry };
/**
+ * sector arrange struct on block device
+ */
+struct rt_device_blk_sectors
+{
+ rt_uint32_t sector_begin; /**< begin sector */
+ rt_uint32_t sector_end; /**< end sector */
+};
+
+/**
* graphic device control command
*/
#define RTGRAPHIC_CTRL_RECT_UPDATE 0
|
