blob: 5b2dec9dba5a3644979205aa0800626fa2a6bb20 (
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 DSK_H
#define DSK_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 dsk_detect(struct dev *dev);
#endif
|