2005-11-16 14:03:30 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-09-05 12:39:22 +00:00
|
|
|
* (c) 2005-2007 Laurent Vivier <Laurent@Vivier.EU>
|
2005-11-16 14:03:30 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2005-11-21 22:09:16 +00:00
|
|
|
#include <libstream.h>
|
|
|
|
|
2007-10-09 19:16:11 +00:00
|
|
|
extern int device_sector_size;
|
|
|
|
|
2008-02-14 22:39:14 +00:00
|
|
|
extern long device_open(char *device, int flags);
|
2005-11-21 22:09:16 +00:00
|
|
|
extern void device_close(void *data);
|
2007-10-09 19:16:11 +00:00
|
|
|
extern int device_write_sector(void *data,off_t offset, void* buffer, size_t size);
|
2005-11-21 22:09:16 +00:00
|
|
|
extern int device_read_sector(void *data, off_t offset, void* buffer, size_t size);
|
2007-10-10 16:47:03 +00:00
|
|
|
extern int device_get_blocksize(void *data);
|