diff options
author | dzwdz | 2022-12-26 21:31:39 +0100 |
---|---|---|
committer | dzwdz | 2022-12-26 21:31:39 +0100 |
commit | 2041919a2bb6cd8f4ef8ef6565962cfa82bb89f7 (patch) | |
tree | f3db482225fc303968ce25695548aad063a410de /src/kernel/arch/amd64/ata.h | |
parent | 17e78ada9bfd6f1cb99b3e0f7913baa73c29054f (diff) |
amd64/ata: refactor the ATA driver
Diffstat (limited to 'src/kernel/arch/amd64/ata.h')
-rw-r--r-- | src/kernel/arch/amd64/ata.h | 4 |
1 files changed, 1 insertions, 3 deletions
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 <stddef.h> #include <stdint.h> -#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); |