summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/ata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/ata.h')
-rw-r--r--src/kernel/arch/amd64/ata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/ata.h b/src/kernel/arch/amd64/ata.h
index 82f4f81..0c20281 100644
--- a/src/kernel/arch/amd64/ata.h
+++ b/src/kernel/arch/amd64/ata.h
@@ -1,7 +1,11 @@
#pragma once
#include <stdbool.h>
+#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);