limine/common/drivers/disk.h
2022-02-03 10:38:43 +01:00

27 lines
440 B
C

#ifndef __DRIVERS__DISK_H__
#define __DRIVERS__DISK_H__
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <lib/part.h>
#if uefi == 1
#include <efi.h>
struct volume *disk_volume_from_efi_handle(EFI_HANDLE efi_handle);
#endif
enum {
DISK_SUCCESS,
DISK_NO_MEDIA,
DISK_FAILURE
};
void disk_create_index(void);
int disk_read_sectors(struct volume *volume, void *buf, uint64_t block, size_t count);
#endif