16 typedef acUint32 acFlashAddr;
26 extern int acFlashModuleRestart(
int argc,
char **argv);
27 extern int acFlashModuleStart(
int argc,
char **argv);
28 extern int acFlashModuleStatus();
29 extern int acFlashModuleStop();
30 extern int acFlashStart();
31 extern int acFlashStatus(acFlashAddr addr);
32 extern int acFlashStop();
34 extern int acFlashErase(acFlashAddr addr);
35 extern int acFlashProgram(acFlashAddr addr,
void *buf,
int count);
36 extern int acFlashRead(acFlashAddr addr,
void *buf,
int count);
37 extern int acFlashVerify(acFlashAddr addr,
void *buf,
int count);
39 #define acflash_IMPORTS_start DECLARE_IMPORT_TABLE(acflash, 1, 1)
40 #define acflash_IMPORTS_end END_IMPORT_TABLE
42 #define I_acFlashModuleRestart DECLARE_IMPORT(4, acFlashModuleRestart)
43 #define I_acFlashModuleStart DECLARE_IMPORT(5, acFlashModuleStart)
44 #define I_acFlashModuleStatus DECLARE_IMPORT(6, acFlashModuleStatus)
45 #define I_acFlashModuleStop DECLARE_IMPORT(7, acFlashModuleStop)
46 #define I_acFlashStart DECLARE_IMPORT(8, acFlashStart)
47 #define I_acFlashStatus DECLARE_IMPORT(9, acFlashStatus)
48 #define I_acFlashStop DECLARE_IMPORT(10, acFlashStop)
49 #define I_acFlashInfo DECLARE_IMPORT(11, acFlashInfo)
50 #define I_acFlashErase DECLARE_IMPORT(12, acFlashErase)
51 #define I_acFlashProgram DECLARE_IMPORT(13, acFlashProgram)
52 #define I_acFlashRead DECLARE_IMPORT(14, acFlashRead)
53 #define I_acFlashVerify DECLARE_IMPORT(15, acFlashVerify)