flash.h

Go to the documentation of this file.
00001 #ifndef __FLASH_H__
00002 #define __FLASH_H__
00003 struct flash_function{
00004 char *name;
00005 int *program;
00006 int program_code_size;
00007 int *erase;
00008 void (*init)(void *);
00009 int *erase_area;
00010 struct flash_function *next;
00011 };
00012 
00013 extern struct flash_function *flash_func_head;
00014 extern struct flash_function *flash_func_tail;
00015 
00016 static inline void *register_flash(struct flash_function *flashfunc)
00017 {
00018 struct flash_function *p;
00019 flash_func_tail->next = flashfunc;
00020 flash_func_tail = flashfunc;
00021 }
00022 #endif

Generated on Fri Nov 5 07:24:46 2010 for ejtag debug tools for loongson 232 cpu by  doxygen 1.5.6