1 /****************************************************************************** 2 * 3 * Copyright(c) 2019 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 #ifndef _TEST_MODULE_H_ 16 #define _TEST_MODULE_H_ 17 18 #ifdef CONFIG_PHL_TEST_SUITE 19 u8 phl_test_module_init(struct phl_info_t *phl_info); 20 void phl_test_module_deinit(struct rtw_phl_com_t* phl_com); 21 u8 phl_test_module_start(struct rtw_phl_com_t* phl_com); 22 void phl_test_module_stop(struct rtw_phl_com_t* phl_com); 23 24 /* phl test mp command */ 25 enum rtw_phl_status phl_test_mp_alloc(struct phl_info_t *phl_info, void *hal, void **mp); 26 void phl_test_mp_free(void **mp); 27 void phl_test_mp_init(void *mp); 28 void phl_test_mp_deinit(void *mp); 29 void phl_test_mp_start(void *mp, u8 tm_mode); 30 void phl_test_mp_stop(void *mp, u8 tm_mode); 31 void phl_test_mp_cmd_process(void *mp, void *buf, u32 buf_len, u8 submdid); 32 void phl_test_mp_get_rpt(void *mp, void *buf, u32 buf_len); 33 34 /* phl test verify command */ 35 enum rtw_phl_status phl_test_verify_alloc(struct phl_info_t *phl_info, void *hal, void **ctx); 36 void phl_test_verify_free(void **ctx); 37 void phl_test_verify_init(void *ctx); 38 void phl_test_verify_deinit(void *ctx); 39 void phl_test_verify_start(void *ctx); 40 void phl_test_verify_stop(void *ctx); 41 void phl_test_verify_cmd_process(void *ctx, void *buf, u32 buf_len, u8 submdid); 42 void phl_test_verify_get_rpt(void *ctx, void *buf, u32 buf_len); 43 44 #else 45 #define phl_test_module_init(phl_info) true 46 #define phl_test_module_deinit(phl_com) 47 #define phl_test_module_start(phl_com) true 48 #define phl_test_module_stop(phl_com) 49 50 /* phl test mp command */ 51 #define phl_test_mp_alloc(phl_info, hal, mp) RTW_PHL_STATUS_SUCCESS 52 #define phl_test_mp_free(mp) 53 #define phl_test_mp_init(mp) 54 #define phl_test_mp_deinit(mp) 55 #define phl_test_mp_start(mp, tm_mode) 56 #define phl_test_mp_stop(mp, tm_mode) 57 #define phl_test_mp_cmd_process(mp, buf, buf_len, submdid) 58 #define phl_test_mp_get_rpt(mp, buf, buf_len) 59 60 /* phl test verify command */ 61 #define phl_test_verify_alloc(phl_info, hal, ctx) 62 #define phl_test_verify_free(ctx) 63 #define phl_test_verify_init(ctx) 64 #define phl_test_verify_deinit(ctx) 65 #define phl_test_verify_start(ctx) 66 #define phl_test_verify_stop(ctx) 67 #define phl_test_verify_cmd_process(ctx, buf, buf_len, submdid) 68 #define phl_test_verify_get_rpt(ctx, buf, buf_len) 69 #endif /*CONFIG_PHL_TEST_SUITE*/ 70 71 #endif /* _TEST_MODULE_H_ */ 72