lib61850.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*
  2. * lib61850.c
  3. *
  4. * Created on: 2019-11-15
  5. * Author: sunxi
  6. * 主要是新的ko程序要兼容之前老的内核而定义的函数
  7. */
  8. #ifndef CPU_FUXI
  9. #ifdef __IEC61850_GOOSE_FUNC__ // sunxi 20191015 goose功能在没有需求的情况下,启动不编译进模块里面。即goose功能的启动作为独立的模块
  10. #else
  11. #include "ai_plfp.h"
  12. #include "ai_goose.h"
  13. #include "ai_envir.h"
  14. #include "ai_serv.h"
  15. #include "ai_time.h"
  16. #include "linux/time.h"
  17. #include "ai_ver.h"
  18. #include "as_updat.h"
  19. #include "ai_clnp.h"
  20. ST_VOID ai_plfp_set_drive_callback(AI_PLFP_DRIVE_CALLBACK_FUN *pt_callback)
  21. {
  22. }
  23. ST_RET ai_uninit_environment(void)
  24. {
  25. return 0;
  26. }
  27. ST_RET ai_envir_setWorkPath(ST_CHAR *sz_path,ST_INT32 strlen)
  28. {
  29. return 0;
  30. }
  31. ST_VOID ai_plfp_uninit(ST_VOID)
  32. {
  33. }
  34. ST_RET ai_goose_getGooseCfgInfo(ST_CHAR *sz_gocbRef, ST_INT i_gseType, GSE_CFG_INFO *p_gseCfgInfo)
  35. {
  36. return 0;
  37. }
  38. ST_VOID ai_iec61850_handle(ST_UINT32 func_mask)
  39. {
  40. }
  41. ST_VOID ai_time_set_syncSts(ST_INT32 stsVal)
  42. {
  43. }
  44. ST_INT ai_goose_getGoNum(ST_INT i_gseType)
  45. {
  46. return 0;
  47. }
  48. ST_UINT ai_plfp_getPlfpNum(ST_VOID)
  49. {
  50. return 0;
  51. }
  52. ST_RET as_updat_initObjsMem(ST_INT32 l_num)
  53. {
  54. return 0;
  55. }
  56. ST_VOID ai_ver_set_dev_identify(ST_CHAR *devtype,ST_CHAR *ver)
  57. {
  58. }
  59. ST_RET as_updat_objInit(AI_OBJ_VAL *pt_objVal)
  60. {
  61. return 0;
  62. }
  63. ST_VOID ai_goose_handle(ST_UINT32 i_fnuMask, ST_INT32 i_us)
  64. {
  65. }
  66. ST_UINT ai_plfp_getPlfpList(AI_PLFP_AP_INFO *plfpApInfo, ST_UINT i_maxApInfo)
  67. {
  68. return 0;
  69. }
  70. ST_VOID ai_plfp_set_app_callback(AI_PLFP_APP_CALLBACK_FUN *pt_callback)
  71. {
  72. }
  73. ST_RET ai_plfp_init (PLFP_INIT_PARAM *plfp_parm)
  74. {
  75. return 0;
  76. }
  77. ST_RET ai_clnp_receive_main (ST_VOID *p_handle, SD_CONST ST_UCHAR *p_buf, ST_INT32 i_len)
  78. {
  79. return 0;
  80. }
  81. ST_RET ai_init_environment(ENVIRINIT_STRUC *st_initPara)
  82. {
  83. return 0;
  84. }
  85. ST_INT ai_goose_getGocbRefList(ST_CHAR *sz_gocbRefList, ST_INT i_gseType, ST_INT i_maxgo)
  86. {
  87. return 0;
  88. }
  89. ST_VOID ai_serv_set_callback(AI_CALLBACK_FUN *pt_callback)
  90. {
  91. }
  92. ST_RET ai_goose_gsePub(GOOSE_DATA *pt_goosePub)
  93. {
  94. return 0;
  95. }
  96. ST_RET ai_time_gentime_to_usrtime(time_t *gentimeIn,USRTIME_STRUC *pt_usrtimeOut)
  97. {
  98. return 0;
  99. }
  100. ST_RET ai_envir_set_chkmod(ST_INT32 chkmod)
  101. {
  102. return 0;
  103. }
  104. AI_SADDR_TABLE *ai_envir_get_sAddrTbl(AI_SADDR_TABLE **sAddr_tbl_out)
  105. {
  106. return NULL;
  107. }
  108. ST_CHAR* ai_ver_61850libVersion(ST_VOID)
  109. {
  110. return NULL;
  111. }
  112. #endif // __IEC61850_GOOSE_FUNC__
  113. #endif