blk_dfs.h 683 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-08-08 GuEe-GUI first version
  9. */
  10. #ifndef __BLK_DFS_H__
  11. #define __BLK_DFS_H__
  12. #include <rtdef.h>
  13. #define RT_DEVICE_CTRL_BLK_SSIZEGET 0x00001268 /**< get number of bytes per sector */
  14. #define RT_DEVICE_CTRL_ALL_BLK_SSIZEGET 0x80081272 /**< get number of bytes per sector * sector counts */
  15. void device_set_blk_fops(struct rt_device *dev);
  16. void device_get_blk_ssize(struct rt_device *dev, void *args);
  17. void device_get_all_blk_ssize(struct rt_device *dev, void *args);
  18. #endif /* __BLK_DFS_H__ */