Lines Matching defs:osi_funcs_t
118 struct osi_funcs_t { struct
119 uint32_t _version;
120 xt_handler (*_set_isr)(int n, xt_handler f, void *arg);
121 void (*_ints_on)(unsigned int mask);
122 void (*_interrupt_disable)(void);
123 void (*_interrupt_restore)(void);
124 void (*_task_yield)(void);
125 void (*_task_yield_from_isr)(void);
126 void *(*_semphr_create)(uint32_t max, uint32_t init);
127 void (*_semphr_delete)(void *semphr);
128 int32_t (*_semphr_take_from_isr)(void *semphr, void *hptw);
129 int32_t (*_semphr_give_from_isr)(void *semphr, void *hptw);
130 int32_t (*_semphr_take)(void *semphr, uint32_t block_time_ms);
131 int32_t (*_semphr_give)(void *semphr);
132 void *(*_mutex_create)(void);
133 void (*_mutex_delete)(void *mutex);
134 int32_t (*_mutex_lock)(void *mutex);
135 int32_t (*_mutex_unlock)(void *mutex);
136 void *(* _queue_create)(uint32_t queue_len, uint32_t item_size);
137 void (* _queue_delete)(void *queue);
138 int32_t (* _queue_send)(void *queue, void *item, uint32_t block_time_ms);
139 int32_t (* _queue_send_from_isr)(void *queue, void *item, void *hptw);
140 int32_t (* _queue_recv)(void *queue, void *item, uint32_t block_time_ms);
141 int32_t (* _queue_recv_from_isr)(void *queue, void *item, void *hptw);
142 …char *name, uint32_t stack_depth, void *param, uint32_t prio, void *task_handle, uint32_t core_id);
143 void (* _task_delete)(void *task_handle);
144 bool (* _is_in_isr)(void);
145 int (* _cause_sw_intr_to_core)(int core_id, int intr_no);
146 void *(* _malloc)(size_t size);
147 void *(* _malloc_internal)(size_t size);
148 void (* _free)(void *p);
149 int32_t (* _read_efuse_mac)(uint8_t mac[6]);
150 void (* _srand)(unsigned int seed);
151 int (* _rand)(void);
152 uint32_t (* _btdm_lpcycles_2_us)(uint32_t cycles);
153 uint32_t (* _btdm_us_2_lpcycles)(uint32_t us);
154 bool (* _btdm_sleep_check_duration)(uint32_t *slot_cnt);
155 void (* _btdm_sleep_enter_phase1)(uint32_t lpcycles); /* called when interrupt is disabled */
156 void (* _btdm_sleep_enter_phase2)(void);
157 void (* _btdm_sleep_exit_phase1)(void); /* called from ISR */
158 void (* _btdm_sleep_exit_phase2)(void); /* called from ISR */
159 void (* _btdm_sleep_exit_phase3)(void); /* called from task */
160 bool (* _coex_bt_wakeup_request)(void);
161 void (* _coex_bt_wakeup_request_end)(void);
162 int (* _coex_bt_request)(uint32_t event, uint32_t latency, uint32_t duration);
163 int (* _coex_bt_release)(uint32_t event);
164 int (* _coex_register_bt_cb)(coex_func_cb_t cb);
165 uint32_t (* _coex_bb_reset_lock)(void);
166 void (* _coex_bb_reset_unlock)(uint32_t restore);
167 int (* _coex_schm_register_btdm_callback)(void *callback);
168 void (* _coex_schm_status_bit_clear)(uint32_t type, uint32_t status);
169 void (* _coex_schm_status_bit_set)(uint32_t type, uint32_t status);
170 uint32_t (* _coex_schm_interval_get)(void);
171 uint8_t (* _coex_schm_curr_period_get)(void);
172 void *(* _coex_schm_curr_phase_get)(void);
173 int (* _coex_wifi_channel_get)(uint8_t *primary, uint8_t *secondary);
174 int (* _coex_register_wifi_channel_change_callback)(void *cb);
175 xt_handler (*_set_isr_l3)(int n, xt_handler f, void *arg);
176 void (*_interrupt_l3_disable)(void);
177 void (*_interrupt_l3_restore)(void);
178 void *(* _customer_queue_create)(uint32_t queue_len, uint32_t item_size);
179 int (* _coex_version_get)(unsigned int *major, unsigned int *minor, unsigned int *patch);
180 void (* _patch_apply)(void);
181 uint32_t _magic;