blob: e4fb2850629865151519211f2a88d98c41571605 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// MIT License, Copyright (c) 2021 Marvin Borner
#ifndef DISK_H
#define DISK_H
#include <def.h>
// General disk assumptions
#define BLOCK_SIZE 1024
#define BLOCK_COUNT 256 // BLOCK_SIZE / sizeof(u32)
#define SECTOR_SIZE 512
#define SECTOR_COUNT (BLOCK_SIZE / SECTOR_SIZE) // 2
struct dev;
struct fs {
s32 (*read)(const char *, void *, u32, u32, struct dev *);
};
void disk_detect(struct dev *dev);
#endif
|