Files
KirkOS/src/arch/x86_64/bus/ata.h
T
kaguya 336af1c2ad chore: reorganize file directories
We have reorganized all the file directories that previously looked ugly as hell (cough cough arch/x86_64 cough)

Now it looks much cleaner

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-04-26 14:44:40 -04:00

13 lines
380 B
C

#pragma once
#include <stdint.h>
#include <stdbool.h>
void ata_init(void);
void ata_identify(void);
// Read `sector_count` 512-byte sectors starting at LBA `lba` into `buffer`.
// Buffer must be large enough (sector_count * 512).
bool ata_read_sectors(uint64_t lba, uint8_t sector_count, void* buffer);
bool ata_write_sectors(uint64_t lba, uint8_t sector_count, void* buffer);