summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/ata.h
diff options
context:
space:
mode:
authordzwdz2022-08-14 21:18:01 +0200
committerdzwdz2022-08-14 21:18:01 +0200
commitfa082df2da6b3be52c66ce0d48c209a3df38115d (patch)
tree1c51b4d084d966fddfbc91afb33469e4582cde84 /src/kernel/arch/amd64/ata.h
parentb58a95e1a529db1f640eb9ac3ca6e0244790e0ca (diff)
kernel/ata: "proper" read support
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);