5 #include <klibc/compiler.h>
12 #include <syslinux/firmware.h>
14 void getoneblk(struct disk
*disk
, char *buf
, block_t block
, int block_size
)
16 int sec_per_block
= block_size
/ disk
->sector_size
;
18 disk
->rdwr_sectors(disk
, buf
, block
* sec_per_block
, sec_per_block
, 0);
22 * Initialize the device structure.
24 struct device
* device_init(void *args
)
26 static struct device dev
;
28 dev
.disk
= firmware
->disk_init(args
);
29 dev
.cache_size
= 128*1024;
30 dev
.cache_data
= malloc(dev
.cache_size
);