summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/ata.h
blob: 0c20281d24fdca00f55d1ce50b3d582ea03fef42 (plain)
1
2
3
4
5
6
7
8
9
10
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);