mid_mon.h 916 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef _MID_MON_H
  2. #define _MID_MON_H
  3. #define MID_MON_MSG_KEY 0xdeb1
  4. #define MID_MON_TEXT_LEN 50
  5. #define MID_MON_PARA_CNT 8
  6. // on MIPS platform, the vma range of user routine is from 0x00000000 to 0x7fffffff
  7. #define MID_UMF_VMA_START 0x00000000
  8. #define MID_UMF_VMA_END 0x7fffffff
  9. typedef enum {
  10. MID_MON_none = 0,
  11. MID_MON_monflg,
  12. MID_MON_dbgconf,
  13. MID_MON_vip_mutest,
  14. MID_MON_stopphoto,
  15. MID_MON_SpeedTest,
  16. MID_MON_remount,
  17. MID_MON_pvrstatus,
  18. MID_MON_cipvr,
  19. MID_MON_runavdebug,
  20. MID_MON_photoeft,
  21. MID_MON_asp,
  22. MID_MON_mir,
  23. MID_MON_taralog,
  24. MID_MON_dmleak,
  25. MID_MON_memWatch,
  26. MID_MON_marquee,
  27. MID_MON_bt,
  28. MID_MON_tracelog,
  29. MID_MON_checkStrLen,
  30. MID_MON_umfmemrw,
  31. MID_MON_flashuid,
  32. MID_MON_NUMBER, // for program
  33. } MID_MON_EVENT;
  34. struct mon_msgbuf {
  35. long mtype;
  36. char mtext[MID_MON_TEXT_LEN];
  37. };
  38. struct mon_cmd {
  39. MID_MON_EVENT cmd;
  40. const char *cmd_name;
  41. };
  42. void MID_Mon_Init(void);
  43. #endif