#ifndef __DRIVERS__DISK_H__ #define __DRIVERS__DISK_H__ #include #include #include struct bios_drive_params { uint16_t buf_size; uint16_t info_flags; uint32_t cyl; uint32_t heads; uint32_t sects; uint64_t lba_count; uint16_t bytes_per_sect; uint32_t edd; } __attribute__((packed)); int read(int drive, void *buffer, uint64_t loc, uint64_t count); int read_partition(int drive, struct part *part, void *buffer, uint64_t loc, uint64_t count); #endif