summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-07-17 09:37:46 +0000
committerqiuyiuestc <[email protected]>2010-07-17 09:37:46 +0000
commitae53558a6ba85be7e704e1ed3df2643e2207de6e (patch)
tree7c4286b03a8721ce6a8ff5e6f565f95ac0735009 /include
parent731711f74f90d7d3f94ad04fb767318452443322 (diff)
fix rt_device_blk_geometry compile error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@796 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index f2f1266de0..37082f8a76 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -647,6 +647,13 @@ struct rt_device
void* private;
};
+struct rt_device_blk_geometry
+{
+ rt_uint32_t sector_count; /* count of sectors */
+ rt_uint32_t bytes_per_sector; /* number of bytes per sector */
+ rt_uint32_t block_size; /* size to erase one block */
+};
+
/*@}*/
#endif