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 11 #ifndef __BLK_DFS_H__ 12 #define __BLK_DFS_H__ 13 14 #include <rtdef.h> 15 16 #define RT_DEVICE_CTRL_BLK_SSIZEGET 0x00001268 /**< get number of bytes per sector */ 17 #define RT_DEVICE_CTRL_ALL_BLK_SSIZEGET 0x80081272 /**< get number of bytes per sector * sector counts */ 18 19 void device_set_blk_fops(struct rt_device *dev); 20 void device_get_blk_ssize(struct rt_device *dev, void *args); 21 void device_get_all_blk_ssize(struct rt_device *dev, void *args); 22 23 #endif /* __BLK_DFS_H__ */ 24