summaryrefslogtreecommitdiff
path: root/src/include/block/block.h
blob: eedff88ed577b16e79ac328c94a782938f9f7f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef BLOCK_H
#define BLOCK_H

#define TOXIC_HDA_0	0

struct bdev {
	unsigned int id;
	unsigned int sector_size;
};

void block_init(void);
struct bdev * bdev_get(int id);
int bread( struct bdev *bdev, unsigned int addr,
	   unsigned int len, void *buf);

#endif /* BLOCK_H */