patch_tab.h
Go to the documentation of this file.
1 #ifndef __PATCH_TAB_H_
2 #define __PATCH_TAB_H_
3
4 // WEAK Functions for platform init & code size optimization
5 __WEAK void ble_con_env_init(void){};
6 __WEAK void ble_adv_env_init(void){};
7 __WEAK void ble_per_adv_env_init(void){};
8 __WEAK void ble_scan_env_init(void){};
9 __WEAK void ble_sync_env_init(void){};
10 __WEAK void ble_adv_param_init(uint8_t max_connections){};
11
12 typedef uint16_t ke_task_id_t;
13 typedef uint16_t ke_msg_id_t;
14
15 typedef int (*ke_msg_func_t)(ke_msg_id_t const msgid, void const *param,
16 ke_task_id_t const dest_id, ke_task_id_t const src_id);
17
18 typedef int (*llm_hci_cmd_hdl_func_t)(void const *param, uint16_t opcode);
19
20 typedef int (*gapm_hci_evt_hdl_func_t)(uint16_t opcode, void const *param);
21
22 typedef struct
23 {
24 ke_msg_func_t ori_func_addr;
25 ke_msg_func_t new_func_addr;
26 } msg_tab_item_t;
27
28 typedef struct
29 {
30 llm_hci_cmd_hdl_func_t ori_func_addr;
31 llm_hci_cmd_hdl_func_t new_func_addr;
32 } hci_cmd_tab_item_t;
33
34 typedef struct
35 {
36 gapm_hci_evt_hdl_func_t ori_func_addr;
37 gapm_hci_evt_hdl_func_t new_func_addr;
38 } gapm_hci_evt_tab_item_t;
39
40 // ble sdk task
41 extern int host_to_sdk_msg_handler_patch(ke_msg_id_t const msgid, void *param,
42 ke_task_id_t const dest_id, ke_task_id_t const src_id);
43
44 // ble sdk gapm for common
45 extern int gap_activity_stopped_ind_handler_patch(ke_msg_id_t const msgid, void const *p_param,
46 ke_task_id_t const dest_id, ke_task_id_t const src_id);
47 extern int gapm_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param,
48 ke_task_id_t const dest_id, ke_task_id_t const src_id);
49 extern int gap_dev_bdaddr_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
50 ke_task_id_t const dest_id, ke_task_id_t const src_id);
51
52 // llm task for common
53 extern int llm_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param,
54 ke_task_id_t const dest_id,ke_task_id_t const src_id);
55 extern int llc_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param,
56 ke_task_id_t const dest_id,ke_task_id_t const src_id);
57
58 #if CFG_MUL_LINK_WITH_SAME_DEV
59 extern int lld_adv_end_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
60 ke_task_id_t const dest_id, ke_task_id_t const src_id);
61 extern int hci_le_set_ext_adv_en_cmd_handler_patch(void const *param, uint16_t opcode);
62 #endif
63
64 // hci cmd for common
65 extern int hci_le_add_dev_to_wlst_cmd_handler_patch(void const *param, uint16_t opcode);
66 extern int hci_le_rmv_dev_from_wlst_cmd_handler_patch(void const *param, uint16_t opcode);
67 extern int hci_le_clear_wlst_cmd_handler_patch(void const *param, uint16_t opcode);
68 extern int hci_le_clear_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode);
69 extern int hci_le_add_dev_to_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode);
70 extern int hci_le_set_priv_mode_cmd_handler_patch(void const *param, uint16_t opcode);
71 extern int hci_le_set_addr_resol_en_cmd_handler_patch(void *param, uint16_t opcode);
72
73 extern int hci_dbg_ble_reg_wr_cmd_handler_patch(void const *param, uint16_t opcode);
74 extern int hci_dbg_ble_reg_rd_cmd_handler_patch(void const *param, uint16_t opcode);
75
76 #if CFG_MAX_CONNECTIONS
77 // gattc task
78 extern int l2cc_pdu_recv_ind_handler_patch(ke_msg_id_t const msgid, void *param,
79 ke_task_id_t const dest_id, ke_task_id_t const src_id);
80 // llc task
81 extern int llc_loc_llcp_rsp_to_handler_patch(ke_msg_id_t const msgid, void const *param,
82 ke_task_id_t const dest_id, ke_task_id_t const src_id);
83 extern int llc_rem_llcp_rsp_to_handler_patch(ke_msg_id_t const msgid, void const *param,
84 ke_task_id_t const dest_id,ke_task_id_t const src_id);
85 extern int lld_acl_rx_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
86 ke_task_id_t const dest_id, ke_task_id_t const src_id);
87 extern int lld_con_offset_upd_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
88 ke_task_id_t const dest_id, ke_task_id_t const src_id);
89 extern int lld_con_param_upd_cfm_handler_patch(ke_msg_id_t const msgid, void const *param,
90 ke_task_id_t const dest_id, ke_task_id_t const src_id);
91 extern int lld_llcp_rx_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
92 ke_task_id_t const dest_id, ke_task_id_t const src_id);
93 extern int lld_llcp_tx_cfm_handler_patch(ke_msg_id_t const msgid, void const *param,
94 ke_task_id_t const dest_id, ke_task_id_t const src_id);
95 extern int lld_ch_map_upd_cfm_handler_patch(ke_msg_id_t const msgid, void const *param,
96 ke_task_id_t const dest_id, ke_task_id_t const src_id);
97 extern int lld_phy_upd_cfm_handler_patch(ke_msg_id_t const msgid, void const*param,
98 ke_task_id_t const dest_id, ke_task_id_t const src_id);
99 extern int llc_auth_payl_nearly_to_handler_patch(ke_msg_id_t const msgid, void const *param,
100 ke_task_id_t const dest_id, ke_task_id_t const src_id);
101 extern int llc_auth_payl_real_to_handler_patch(ke_msg_id_t const msgid, void const *param,
102 ke_task_id_t const dest_id, ke_task_id_t const src_id);
103 extern int llc_op_dl_upd_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
104 ke_task_id_t const dest_id, ke_task_id_t const src_id);
105
106 // l2cc task
107 extern int hci_nb_cmp_pkts_evt_handler_patch(ke_msg_id_t const msgid, void const *event,
108 ke_task_id_t const dest_id, ke_task_id_t const src_id);
109
110 // gapc task
111 extern int gapc_hci_handler_patch(ke_msg_id_t const msgid, void const* event,
112 ke_task_id_t dest_id, ke_task_id_t src_id);
113
114 #if CFG_MUL_LINK_WITH_SAME_DEV
115 int gapc_bond_cfm_handler_patch(ke_msg_id_t const msgid, void *cfm,
116 ke_task_id_t const dest_id, ke_task_id_t const src_id);
117 #endif
118
119 // ble sdk task for gapc
120 extern int gap_connection_req_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
121 ke_task_id_t const dest_id, ke_task_id_t const src_id);
122 extern int gap_disconnect_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
123 ke_task_id_t const dest_id, ke_task_id_t const src_id);
124 extern int gap_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param,
125 ke_task_id_t const dest_id, ke_task_id_t const src_id);
126 extern int sec_rcv_sec_req_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
127 ke_task_id_t const dest_id, ke_task_id_t const src_id);
128 extern int sec_rcv_encrypt_req_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
129 ke_task_id_t const dest_id, ke_task_id_t const src_id);
130
131 #if CFG_MUL_LINK_WITH_SAME_DEV
132 extern int sec_rcv_bond_req_ind_handler_patch(ke_msg_id_t const msgid, void *param,
133 ke_task_id_t const dest_id, ke_task_id_t const src_id);
134 #endif
135
136 // ble sdk task for gatt
137 extern int ble_sdk_gatts_svc_changed_cfg_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
138 ke_task_id_t const dest_id, ke_task_id_t const src_id);
139 extern int ble_sdk_gattc_event_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
140 ke_task_id_t const dest_id, ke_task_id_t const src_id);
141 extern int ble_sdk_gatt_mtu_changed_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
142 ke_task_id_t const dest_id, ke_task_id_t const src_id);
143 #endif
144
145 #if CFG_MAX_SCAN
146 // gapm task for scan
147 extern int gapm_activity_create_cmd_handler_patch(ke_msg_id_t const msgid, void const *param,
148 ke_task_id_t const dest_id, ke_task_id_t const src_id);
149
150 // hci cmd for scan
151 extern int hci_le_ext_create_con_cmd_handler_patch(void *param, uint16_t opcode);
152 extern int hci_le_set_ext_scan_param_cmd_handler_patch(void const *param, uint16_t opcode);
153 extern int hci_le_set_ext_scan_en_cmd_handler_patch(void const *param, uint16_t opcode);
154
155 // gapm hci evt for scan
156 extern int hci_le_cmd_cmp_evt_init_handler_patch(uint16_t opcode, void const *p_event);
157 #endif
158
159 // gapm hci evt for scan or support 31 bytes adv data
160 #if (CFG_MAX_SCAN) || (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT) || (CFG_MUL_LINK_WITH_SAME_DEV)
161 extern int gapm_hci_handler_patch(ke_msg_id_t const msgid, void const* event,
162 ke_task_id_t dest_id, ke_task_id_t opcode);
163 #endif
164
165 // gapm task for support 31 bytes adv data
166 #if (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT)
167 extern int gapm_set_adv_data_cmd_handler_patch(ke_msg_id_t const msgid, void const *p_param,
168 ke_task_id_t const dest_id, ke_task_id_t const src_id);
169 extern int hci_le_cmd_cmp_evt_adv_handler_patch(uint16_t opcode, void const *p_event);
170 #endif
171
172 //gapm scan
173 #if (CFG_MAX_SCAN)
174 extern int hci_le_cmd_cmp_evt_scan_handler_patch(uint16_t opcode, void const *p_event);
175 #endif
176
177 #if CFG_MUL_LINK_WITH_SAME_DEV
178 extern int hci_le_adv_set_term_evt_handler_patch(uint16_t opcode, void const *p_event);
179 #endif
180
181 // gapm cfg
182 extern int gapm_set_dev_config_cmd_handler_patch(ke_msg_id_t const msgid, void *param,
183 ke_task_id_t const dest_id, ke_task_id_t const src_id);
184
185 //llm init
186 extern int lld_init_end_ind_handler_patch(ke_msg_id_t const msgid, void const*param,
187 ke_task_id_t const dest_id, ke_task_id_t const src_id);
188 extern int llm_ch_map_to_handler_patch(ke_msg_id_t const msgid, void const*param,
189 ke_task_id_t const dest_id, ke_task_id_t const src_id);
190
191 // ble sdk gattc
192 extern int ble_sdk_gattc_prf_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param,
193 ke_task_id_t const dest_id, ke_task_id_t const src_id);
194 extern int ble_sdk_gattc_prf_event_ind_handler_patch(ke_msg_id_t const msgid, void *param,
195 ke_task_id_t const dest_id, ke_task_id_t const src_id);
196 extern int ble_sdk_gattc_prf_sdp_srvc_ind_handler_patch(ke_msg_id_t const msgid, void const *param,
197 ke_task_id_t const dest_id, ke_task_id_t const src_id);
198
199 msg_tab_item_t msg_tab[] =
200 {
201 // ble sdk gapm for common
202 {(ke_msg_func_t)0x00074235, (ke_msg_func_t)gapm_cmp_evt_handler_patch},
203 {(ke_msg_func_t)0x000709e1, (ke_msg_func_t)gap_activity_stopped_ind_handler_patch},
204 {(ke_msg_func_t)0x00071f6d, (ke_msg_func_t)gap_dev_bdaddr_ind_handler_patch},
205
206 // llm task for common
207 {(ke_msg_func_t)0x00051d09, (ke_msg_func_t)llm_hci_command_handler_patch},
208
209 #if CFG_MUL_LINK_WITH_SAME_DEV
210 // llm task for slave
211 {(ke_msg_func_t)0x0003b639, (ke_msg_func_t)lld_adv_end_ind_handler_patch},
212 #endif
213
214 // llc task for common
215 {(ke_msg_func_t)0x00023231, (ke_msg_func_t)llc_hci_command_handler_patch},
216 // ble sdk task for common
217 {(ke_msg_func_t)0x000761a9, (ke_msg_func_t)host_to_sdk_msg_handler_patch},
218
219 #if (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT)
220 {(ke_msg_func_t)0x00013f09, (ke_msg_func_t)gapm_set_adv_data_cmd_handler_patch},
221 #endif
222
223 #if CFG_MAX_CONNECTIONS
224 // gattc task for conn
225 {(ke_msg_func_t)0x00032e7d, (ke_msg_func_t)l2cc_pdu_recv_ind_handler_patch},
226 // llc task for conn
227 {(ke_msg_func_t)0x000391b5, (ke_msg_func_t)llc_loc_llcp_rsp_to_handler_patch},
228 {(ke_msg_func_t)0x0003a795, (ke_msg_func_t)llc_rem_llcp_rsp_to_handler_patch},
229 {(ke_msg_func_t)0x00049a6d, (ke_msg_func_t)lld_llcp_rx_ind_handler_patch},
230 {(ke_msg_func_t)0x00049c95, (ke_msg_func_t)lld_llcp_tx_cfm_handler_patch},
231 {(ke_msg_func_t)0x0003aed9, (ke_msg_func_t)lld_acl_rx_ind_handler_patch},
232 {(ke_msg_func_t)0x00045e6d, (ke_msg_func_t)lld_con_param_upd_cfm_handler_patch},
233 {(ke_msg_func_t)0x000418c9, (ke_msg_func_t)lld_ch_map_upd_cfm_handler_patch},
234 {(ke_msg_func_t)0x0004b67d, (ke_msg_func_t)lld_phy_upd_cfm_handler_patch},
235 {(ke_msg_func_t)0x00045da1, (ke_msg_func_t)lld_con_offset_upd_ind_handler_patch},
236 {(ke_msg_func_t)0x0003679d, (ke_msg_func_t)llc_auth_payl_nearly_to_handler_patch},
237 {(ke_msg_func_t)0x00036801, (ke_msg_func_t)llc_auth_payl_real_to_handler_patch},
238 {(ke_msg_func_t)0x000398a1, (ke_msg_func_t)llc_op_dl_upd_ind_handler_patch},
239
240 //llm init for conn
241 {(ke_msg_func_t)0x00047ca1, (ke_msg_func_t)lld_init_end_ind_handler_patch},
242 {(ke_msg_func_t)0x0005199f, (ke_msg_func_t)llm_ch_map_to_handler_patch},
243
244 // l2cc task for conn
245 {(ke_msg_func_t)0x0002b281, (ke_msg_func_t)hci_nb_cmp_pkts_evt_handler_patch},
246 // gapc task for conn
247 {(ke_msg_func_t)0x0000f751, (ke_msg_func_t)gapc_hci_handler_patch},
248 // ble sdk gapc for conn
249 {(ke_msg_func_t)0x00071781, (ke_msg_func_t)gap_connection_req_ind_handler_patch},
250 {(ke_msg_func_t)0x00072229, (ke_msg_func_t)gap_disconnect_ind_handler_patch},
251 {(ke_msg_func_t)0x0007ac89, (ke_msg_func_t)sec_rcv_sec_req_ind_handler_patch},
252 {(ke_msg_func_t)0x00071519, (ke_msg_func_t)gap_cmp_evt_handler_patch},
253 {(ke_msg_func_t)0x0007ab15, (ke_msg_func_t)sec_rcv_encrypt_req_ind_handler_patch},
254
255 #if CFG_MUL_LINK_WITH_SAME_DEV
256 {(ke_msg_func_t)0x0007a881, (ke_msg_func_t)sec_rcv_bond_req_ind_handler_patch},
257 #endif
258
259 // ble sdk gatt for conn
260 {(ke_msg_func_t)0x0006d0d5, (ke_msg_func_t)ble_sdk_gattc_event_ind_handler_patch},
261 {(ke_msg_func_t)0x0006db75, (ke_msg_func_t)ble_sdk_gatts_svc_changed_cfg_ind_handler_patch},
262 {(ke_msg_func_t)0x0006cd41, (ke_msg_func_t)ble_sdk_gatt_mtu_changed_ind_handler_patch},
263 #endif
264
265 #if CFG_MAX_SCAN
266 // gapm task for scan
267 {(ke_msg_func_t)0x00010d2d, (ke_msg_func_t)gapm_activity_create_cmd_handler_patch},
268 #endif
269
270 #if (CFG_MAX_SCAN) || (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT) || (CFG_MUL_LINK_WITH_SAME_DEV)
271 {(ke_msg_func_t)0x00012751, (ke_msg_func_t)gapm_hci_handler_patch},
272 #endif
273
274 {(ke_msg_func_t)0x00013fe9, (ke_msg_func_t)gapm_set_dev_config_cmd_handler_patch},
275
276 #if CFG_MUL_LINK_WITH_SAME_DEV
277 {(ke_msg_func_t)0x0000e99d, (ke_msg_func_t)gapc_bond_cfm_handler_patch},
278 #endif
279 };
280
281 hci_cmd_tab_item_t hci_cmd_tab[] =
282 {
283 // hci cmd for common
284 {(llm_hci_cmd_hdl_func_t)0x00024711, (llm_hci_cmd_hdl_func_t)hci_le_add_dev_to_wlst_cmd_handler_patch},
285 {(llm_hci_cmd_hdl_func_t)0x000281f5, (llm_hci_cmd_hdl_func_t)hci_le_rmv_dev_from_wlst_cmd_handler_patch},
286 {(llm_hci_cmd_hdl_func_t)0x00024fa1, (llm_hci_cmd_hdl_func_t)hci_le_clear_wlst_cmd_handler_patch},
287 {(llm_hci_cmd_hdl_func_t)0x000283b5, (llm_hci_cmd_hdl_func_t)hci_le_set_addr_resol_en_cmd_handler_patch},
288 {(llm_hci_cmd_hdl_func_t)0x00024f75, (llm_hci_cmd_hdl_func_t)hci_le_clear_rslv_list_cmd_handler_patch},
289 {(llm_hci_cmd_hdl_func_t)0x00024681, (llm_hci_cmd_hdl_func_t)hci_le_add_dev_to_rslv_list_cmd_handler_patch},
290 {(llm_hci_cmd_hdl_func_t)0x0002a99d, (llm_hci_cmd_hdl_func_t)hci_le_set_priv_mode_cmd_handler_patch},
291
292 #if CFG_MAX_SCAN
293 {(llm_hci_cmd_hdl_func_t)0x0002677d, (llm_hci_cmd_hdl_func_t)hci_le_ext_create_con_cmd_handler_patch},
294 {(llm_hci_cmd_hdl_func_t)0x0002a081, (llm_hci_cmd_hdl_func_t)hci_le_set_ext_scan_param_cmd_handler_patch},
295 {(llm_hci_cmd_hdl_func_t)0x00029e5d, (llm_hci_cmd_hdl_func_t)hci_le_set_ext_scan_en_cmd_handler_patch},
296 #endif
297
298 #if CFG_MUL_LINK_WITH_SAME_DEV
299 {(llm_hci_cmd_hdl_func_t)0x00029731, (llm_hci_cmd_hdl_func_t)hci_le_set_ext_adv_en_cmd_handler_patch},
300 #endif
301
302 #if DTM_TEST_ENABLE
303 {(llm_hci_cmd_hdl_func_t)0x000233f7, (llm_hci_cmd_hdl_func_t)hci_dbg_ble_reg_wr_cmd_handler_patch},
304 {(llm_hci_cmd_hdl_func_t)0x000233c9, (llm_hci_cmd_hdl_func_t)hci_dbg_ble_reg_rd_cmd_handler_patch},
305 #endif
306 };
307
308 gapm_hci_evt_tab_item_t gapm_hci_evt_tab[] =
309 {
310 {NULL, NULL},
311
312 #if CFG_MAX_SCAN
313 {(gapm_hci_evt_hdl_func_t)0x00025121, (gapm_hci_evt_hdl_func_t)hci_le_cmd_cmp_evt_init_handler_patch},
314 #endif
315
316 #if (CFG_MAX_ADVS && CFG_MAX_ADV_DATA_LEN_SUPPORT)
317 {(gapm_hci_evt_hdl_func_t)0x00025031, (gapm_hci_evt_hdl_func_t)hci_le_cmd_cmp_evt_adv_handler_patch},
318 #endif
319
320 #if (CFG_MAX_SCAN)
321 {(gapm_hci_evt_hdl_func_t)0x00025229, (gapm_hci_evt_hdl_func_t)hci_le_cmd_cmp_evt_scan_handler_patch},
322 #endif
323
324 #if CFG_MUL_LINK_WITH_SAME_DEV
325 {(gapm_hci_evt_hdl_func_t)0x000248cd, (gapm_hci_evt_hdl_func_t)hci_le_adv_set_term_evt_handler_patch},
326 #endif
327 };
328
329 extern void reg_hci_cmd_patch_tab(hci_cmd_tab_item_t *hci_cmd_tab, uint16_t hci_cmd_cnt);
330 extern void reg_msg_patch_tab(msg_tab_item_t *msg_tab, uint16_t msg_cnt);
331 extern void reg_gapm_hci_evt_patch_tab(gapm_hci_evt_tab_item_t *gapm_hci_evt_tab, uint16_t gapm_hci_evt_cnt);
332
333 #endif
gap_dev_bdaddr_ind_handler_patch
int gap_dev_bdaddr_ind_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
msg_tab
msg_tab_item_t msg_tab[]
Definition: patch_tab.h:199
reg_msg_patch_tab
void reg_msg_patch_tab(msg_tab_item_t *msg_tab, uint16_t msg_cnt)
hci_dbg_ble_reg_wr_cmd_handler_patch
int hci_dbg_ble_reg_wr_cmd_handler_patch(void const *param, uint16_t opcode)
hci_cmd_tab
hci_cmd_tab_item_t hci_cmd_tab[]
Definition: patch_tab.h:281
ble_sync_env_init
__WEAK void ble_sync_env_init(void)
Definition: patch_tab.h:9
ble_sdk_gattc_prf_sdp_srvc_ind_handler_patch
int ble_sdk_gattc_prf_sdp_srvc_ind_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
reg_gapm_hci_evt_patch_tab
void reg_gapm_hci_evt_patch_tab(gapm_hci_evt_tab_item_t *gapm_hci_evt_tab, uint16_t gapm_hci_evt_cnt)
hci_le_clear_wlst_cmd_handler_patch
int hci_le_clear_wlst_cmd_handler_patch(void const *param, uint16_t opcode)
msg_tab_item_t::new_func_addr
ke_msg_func_t new_func_addr
Definition: patch_tab.h:25
reg_hci_cmd_patch_tab
void reg_hci_cmd_patch_tab(hci_cmd_tab_item_t *hci_cmd_tab, uint16_t hci_cmd_cnt)
gapm_hci_evt_tab_item_t::ori_func_addr
gapm_hci_evt_hdl_func_t ori_func_addr
Definition: patch_tab.h:36
hci_le_rmv_dev_from_wlst_cmd_handler_patch
int hci_le_rmv_dev_from_wlst_cmd_handler_patch(void const *param, uint16_t opcode)
lld_init_end_ind_handler_patch
int lld_init_end_ind_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_cmd_tab_item_t::ori_func_addr
llm_hci_cmd_hdl_func_t ori_func_addr
Definition: patch_tab.h:30
gap_activity_stopped_ind_handler_patch
int gap_activity_stopped_ind_handler_patch(ke_msg_id_t const msgid, void const *p_param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
ble_scan_env_init
__WEAK void ble_scan_env_init(void)
Definition: patch_tab.h:8
ble_sdk_gattc_prf_event_ind_handler_patch
int ble_sdk_gattc_prf_event_ind_handler_patch(ke_msg_id_t const msgid, void *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_dbg_ble_reg_rd_cmd_handler_patch
int hci_dbg_ble_reg_rd_cmd_handler_patch(void const *param, uint16_t opcode)
gapm_hci_evt_tab_item_t::new_func_addr
gapm_hci_evt_hdl_func_t new_func_addr
Definition: patch_tab.h:37
host_to_sdk_msg_handler_patch
int host_to_sdk_msg_handler_patch(ke_msg_id_t const msgid, void *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
gapm_hci_evt_tab_item_t
Definition: patch_tab.h:35
gapm_set_dev_config_cmd_handler_patch
int gapm_set_dev_config_cmd_handler_patch(ke_msg_id_t const msgid, void *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_le_clear_rslv_list_cmd_handler_patch
int hci_le_clear_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode)
ble_con_env_init
__WEAK void ble_con_env_init(void)
Definition: patch_tab.h:5
ke_task_id_t
uint16_t ke_task_id_t
Definition: patch_tab.h:10
hci_cmd_tab_item_t::new_func_addr
llm_hci_cmd_hdl_func_t new_func_addr
Definition: patch_tab.h:31
gapm_hci_evt_hdl_func_t
int(* gapm_hci_evt_hdl_func_t)(uint16_t opcode, void const *param)
Definition: patch_tab.h:20
ble_per_adv_env_init
__WEAK void ble_per_adv_env_init(void)
Definition: patch_tab.h:7
ble_adv_env_init
__WEAK void ble_adv_env_init(void)
Definition: patch_tab.h:6
hci_le_set_priv_mode_cmd_handler_patch
int hci_le_set_priv_mode_cmd_handler_patch(void const *param, uint16_t opcode)
gapm_hci_evt_tab
gapm_hci_evt_tab_item_t gapm_hci_evt_tab[]
Definition: patch_tab.h:308
llm_ch_map_to_handler_patch
int llm_ch_map_to_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
llc_hci_command_handler_patch
int llc_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
ke_msg_id_t
uint16_t ke_msg_id_t
Definition: patch_tab.h:13
ble_sdk_gattc_prf_cmp_evt_handler_patch
int ble_sdk_gattc_prf_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_cmd_tab_item_t
Definition: patch_tab.h:29
msg_tab_item_t
Definition: patch_tab.h:23
ke_msg_func_t
int(* ke_msg_func_t)(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
Definition: patch_tab.h:15
msg_tab_item_t::ori_func_addr
ke_msg_func_t ori_func_addr
Definition: patch_tab.h:24
ble_adv_param_init
__WEAK void ble_adv_param_init(uint8_t max_connections)
Definition: patch_tab.h:10
llm_hci_cmd_hdl_func_t
int(* llm_hci_cmd_hdl_func_t)(void const *param, uint16_t opcode)
Definition: patch_tab.h:18
hci_le_set_addr_resol_en_cmd_handler_patch
int hci_le_set_addr_resol_en_cmd_handler_patch(void *param, uint16_t opcode)
llm_hci_command_handler_patch
int llm_hci_command_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
gapm_cmp_evt_handler_patch
int gapm_cmp_evt_handler_patch(ke_msg_id_t const msgid, void const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id)
hci_le_add_dev_to_wlst_cmd_handler_patch
int hci_le_add_dev_to_wlst_cmd_handler_patch(void const *param, uint16_t opcode)
hci_le_add_dev_to_rslv_list_cmd_handler_patch
int hci_le_add_dev_to_rslv_list_cmd_handler_patch(void const *param, uint16_t opcode)