| 1 | #ifndef DRIVERS__DISK_H__ |
| 2 | #define DRIVERS__DISK_H__ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | #include <stddef.h> |
| 6 | #include <stdbool.h> |
| 7 | #include <lib/part.h> |
| 8 | |
| 9 | #if defined (UEFI) |
| 10 | |
| 11 | #include <efi.h> |
| 12 | |
| 13 | struct volume *disk_volume_from_efi_handle(EFI_HANDLE efi_handle); |
| 14 | |
| 15 | #endif |
| 16 | |
| 17 | enum { |
| 18 | DISK_SUCCESS, |
| 19 | DISK_NO_MEDIA, |
| 20 | DISK_FAILURE |
| 21 | }; |
| 22 | |
| 23 | void disk_create_index(void); |
| 24 | int disk_read_sectors(struct volume *volume, void *buf, uint64_t block, size_t count); |
| 25 | |
| 26 | #endif |
