OSDN Git Service

ec544455a69f513f1c243c67d0e1917fabe05bfc
[unagi/old-svn-converted.git] / client / trunk / anago / flash_device.h
1 #ifndef _FLASH_DEVICE_H_
2 #define _FLASH_DEVICE_H_
3 struct flash_device{
4         const char *name;
5         long capacity, pagesize;
6         long erase_wait; //unit is msec
7         bool erase_require, retry;
8         uint8_t id_manufacurer, id_device;
9         long command_mask;
10 };
11
12 bool flash_device_get(const char *name, struct flash_device *t);
13 //0x80 °Ê¹ß¤ÏËÜÅö¤Î¥Ç¥Ð¥¤¥¹½ÅÊ£¤·¤Ê¤¤¤È»×¤¦. Ã¯¤« JEDEC ¤Î¤È¤³¤ò¤·¤é¤Ù¤Æ.
14 enum{
15         FLASH_ID_DEVICE_SRAM = 0xf0, 
16         FLASH_ID_DEVICE_DUMMY
17 };
18 #endif