hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/******************************************************************************
 *
 * Copyright(c) 2019 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef _PHL_CMD_GENERAL_H_
#define _PHL_CMD_GENERAL_H_
 
#ifdef CONFIG_MR_COEX_SUPPORT
#define RTW_DUMP_HAL_CR(_phl, _evt, _band) \
   do {\
       if (true == rtw_phl_mr_coex_query_inprogress(_phl,\
               _band, RTW_MR_COEX_CHK_INPROGRESS)) {\
           rtw_hal_notification_ex(_phl->hal, _evt,\
                   true, true, false, _band);\
       } else {\
           rtw_hal_notification_ex(_phl->hal, _evt,\
                   true, true, true, _band);\
       }\
   } while(0);
#else
#define RTW_DUMP_HAL_CR(_phl, _evt, _band) \
   do {\
       rtw_hal_notification_ex(_phl->hal, _evt,\
                   true, true, true, _band);\
   } while(0);
#endif
 
enum rtw_phl_status
phl_cmd_get_cur_cmdinfo(struct phl_info_t *phl_info,
                   u8 band_idx,
                   struct phl_msg *msg,
                   u8 **cmd, u32 *cmd_len);
 
enum rtw_phl_status
phl_cmd_get_cur_cmdinfo(struct phl_info_t *phl_info,
                   u8 band_idx,
                   struct phl_msg *msg,
                   u8 **cmd, u32 *cmd_len);
 
enum rtw_phl_status phl_register_cmd_general(struct phl_info_t *phl_info);
 
enum rtw_phl_status
phl_cmd_enqueue(struct phl_info_t *phl_info,
                enum phl_band_idx band_idx,
                enum phl_msg_evt_id evt_id,
                u8 *cmd_buf,
                u32 cmd_len,
                void (*cmd_complete)(void *priv, u8 *cmd, u32 cmd_len, enum rtw_phl_status status),
                enum phl_cmd_type cmd_type,
                u32 cmd_timeout);
#endif /*_PHL_CMD_GENERAL_H_*/