limine/common/drivers/disk.h

27 lines
445 B
C
Raw Normal View History

2020-01-23 03:48:35 +03:00
#ifndef __DRIVERS__DISK_H__
#define __DRIVERS__DISK_H__
2019-06-02 12:18:10 +03:00
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
2021-03-02 12:23:43 +03:00
#include <lib/part.h>
2019-06-02 12:18:10 +03:00
#if defined (UEFI)
#include <efi.h>
2021-09-01 21:22:28 +03:00
struct volume *disk_volume_from_efi_handle(EFI_HANDLE efi_handle);
#endif
enum {
DISK_SUCCESS,
DISK_NO_MEDIA,
DISK_FAILURE
};
2021-03-04 11:15:10 +03:00
void disk_create_index(void);
int disk_read_sectors(struct volume *volume, void *buf, uint64_t block, size_t count);
#endif