OSDN Git Service

5861b9ebc6c35b8700030abe66dce405d387983f
[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 //for GUI device listup
19 struct flash_listup{
20         void *obj_cpu, *obj_ppu;
21         void (*append)(void *obj, const char *str);
22 };
23 void flash_device_listup(struct flash_listup *t);
24 #endif