From 912d2e3c7eb1baa71dda2c0a28aa5809eaa96f27 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 16 Jul 2022 13:33:00 +0200 Subject: amd64: barely boot into kernel code --- src/kernel/arch/amd64/ata.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/kernel/arch/amd64/ata.h (limited to 'src/kernel/arch/amd64/ata.h') diff --git a/src/kernel/arch/amd64/ata.h b/src/kernel/arch/amd64/ata.h new file mode 100644 index 0000000..82f4f81 --- /dev/null +++ b/src/kernel/arch/amd64/ata.h @@ -0,0 +1,7 @@ +#pragma once +#include +#include + +void ata_init(void); +bool ata_available(int drive); +int ata_read(int drive, uint32_t lba, void *buf); -- cgit v1.2.3