From 2041919a2bb6cd8f4ef8ef6565962cfa82bb89f7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 26 Dec 2022 21:31:39 +0100 Subject: amd64/ata: refactor the ATA driver --- src/kernel/arch/amd64/ata.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/kernel/arch/amd64/ata.h') diff --git a/src/kernel/arch/amd64/ata.h b/src/kernel/arch/amd64/ata.h index 0c20281..c43ac23 100644 --- a/src/kernel/arch/amd64/ata.h +++ b/src/kernel/arch/amd64/ata.h @@ -3,9 +3,7 @@ #include #include -#define ATA_SECTOR 512 - void ata_init(void); bool ata_available(int drive); size_t ata_size(int drive); -int ata_read(int drive, uint32_t lba, void *buf); +int ata_read(int drive, void *buf, size_t len, size_t off); -- cgit v1.2.3