luxos/SysCore/drivers/floppy/storage.h
2021-09-14 18:46:50 +03:00

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