summaryrefslogtreecommitdiff
path: root/components/drivers/block/blk_dfs.h
blob: c532869fc7d9bf8e478120ff8cf1bbfdd8fc2c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-08-08     GuEe-GUI     first version
 */

#ifndef __BLK_DFS_H__
#define __BLK_DFS_H__

#include <rtdef.h>

#define RT_DEVICE_CTRL_BLK_SSIZEGET      0x00001268     /**< get number of bytes per sector */
#define RT_DEVICE_CTRL_ALL_BLK_SSIZEGET  0x80081272     /**< get number of bytes per sector * sector counts */

void device_set_blk_fops(struct rt_device *dev);
void device_get_blk_ssize(struct rt_device *dev, void *args);
void device_get_all_blk_ssize(struct rt_device *dev, void *args);

#endif /* __BLK_DFS_H__ */