summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/ata.h
blob: c43ac233aec3d6342ef0d010a2b83ecc590f9922 (plain)
1
2
3
4
5
6
7
8
9
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

void ata_init(void);
bool ata_available(int drive);
size_t ata_size(int drive);
int ata_read(int drive, void *buf, size_t len, size_t off);