14 lines
494 B
C
14 lines
494 B
C
|
#ifndef __STORAGE__H__
|
||
|
#define __STORAGE__H__
|
||
|
|
||
|
/**Structure used by the file system drivers.\n
|
||
|
\Warning: the driver that provides the Read/Write routines must
|
||
|
include conversions for partitions on hard drives.*/
|
||
|
typedef struct {
|
||
|
unsigned NumberOfSectors;
|
||
|
unsigned SizeOfSector;
|
||
|
void (*ReadSectors) (void* buffer, int startlba, int endlba);
|
||
|
void (*WriteSectors) (void* buffer, int startlba, int endlba);
|
||
|
} StorageDeviceInterface, *StorageDeviceInterfacePointer;
|
||
|
|
||
|
#endif
|