16#include <drivers/classes/block.h>
28 struct rt_dm_ida *ida;
34#define RT_BLK_DISK_MAGIC 0xbdaabdaa
38#define RT_BLK_PARTITION_NONE (-1)
39#define RT_BLK_PARTITION_MAX (RT_UINT32_MAX >> 1)
rt_ssize_t rt_blk_disk_get_logical_block_size(struct rt_blk_disk *disk)
rt_err_t rt_hw_blk_disk_register(struct rt_blk_disk *disk)
rt_err_t rt_hw_blk_disk_unregister(struct rt_blk_disk *disk)
rt_ssize_t rt_blk_disk_get_capacity(struct rt_blk_disk *disk)
rt_err_t rt_blk_disk_probe_partition(struct rt_blk_disk *disk)
struct rt_list_node rt_list_t
struct dfs_partition partition
struct rt_blk_disk * disk
rt_err_t(* autorefresh)(struct rt_blk_disk *disk, rt_bool_t is_auto)
rt_ssize_t(* read)(struct rt_blk_disk *disk, rt_off_t sector, void *buffer, rt_size_t sector_count)
rt_err_t(* erase)(struct rt_blk_disk *disk)
rt_err_t(* sync)(struct rt_blk_disk *disk)
rt_err_t(* control)(struct rt_blk_disk *disk, struct rt_blk_device *blk, int cmd, void *args)
rt_ssize_t(* write)(struct rt_blk_disk *disk, rt_off_t sector, const void *buffer, rt_size_t sector_count)
rt_err_t(* getgeome)(struct rt_blk_disk *disk, struct rt_device_blk_geometry *geometry)
rt_int32_t max_partitions
const struct rt_blk_disk_ops * ops
struct rt_semaphore usr_lock