Lines Matching full:disk
10 * @brief Disk Driver Interface
12 * This file contains interface for disk access. Apart from disks, various
22 * @brief Disk Driver Interface
23 * @defgroup disk_driver_interface Disk Driver Interface
40 /** Get the number of sectors in the disk */
42 /** Get the size of a disk SECTOR in bytes */
48 /** Commit any cached read/writes to disk */
55 /** Disk status okay */
57 /** Disk status uninitialized */
59 /** Disk status no media */
61 /** Disk status write protected */
67 * @brief Disk info
72 /** Disk name */
74 /** Disk operations */
76 /** Device associated to this disk */
81 * @brief Disk operations
84 int (*init)(struct disk_info *disk);
85 int (*status)(struct disk_info *disk);
86 int (*read)(struct disk_info *disk, uint8_t *data_buf,
88 int (*write)(struct disk_info *disk, const uint8_t *data_buf,
90 int (*ioctl)(struct disk_info *disk, uint8_t cmd, void *buff);
94 * @brief Register disk
96 * @param[in] disk Pointer to the disk info structure
100 int disk_access_register(struct disk_info *disk);
103 * @brief Unregister disk
105 * @param[in] disk Pointer to the disk info structure
109 int disk_access_unregister(struct disk_info *disk);