14 lines
285 B
C
14 lines
285 B
C
|
#ifndef INC_USECFS_BLOCK
|
||
|
#define INC_USECFS_BLOCK
|
||
|
|
||
|
#ifndef BLOCK_SIZE
|
||
|
# define BLOCK_SIZE 4096
|
||
|
#endif
|
||
|
|
||
|
void *block_open(void *args);
|
||
|
int block_read(void *dev, void *_buf, uint32_t lba);
|
||
|
int block_write(void *dev, const void *_buf, uint32_t lba);
|
||
|
void block_close(void *dev);
|
||
|
|
||
|
#endif
|