www.pudn.com > OS.rar > driver.h, change:2006-08-14,size:556b
#ifndef __DRIVER_h__
#define __DRIVER_h__
// write your header here
#define DEVICE_READ_ALLOW 0x1 // 2004-12-08 Yongliang
#define DEVICE_WRITE_ALLOW 0x2 // 2004-12-08 Yongliang
struct Drv_FileSystem{
char Name[8];
int Status;
int (*Drv_Initial)(void);
int (*Drv_Uninitial)(void);
unsigned long (*Drv_GetMemSize)(void);
int (*Drv_ReadSector)(unsigned long, unsigned int, unsigned long);
int (*Drv_WriteSector)(unsigned long,unsigned int, unsigned long);
};
extern struct Drv_FileSystem FileSysDrv[];
#endif