|
@@ -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 */
|
|
@@ -743,6 +744,15 @@ struct rt_device_blk_geometry
|
|
|
rt_uint32_t block_size; /**< size to erase one block */
|
|
|
};
|
|
|
|
|
|
+/**
|
|
|
+ * 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
|
|
|
*/
|