123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- #ifndef _QDF_PLATFORM_H
- #define _QDF_PLATFORM_H
- #include "qdf_types.h"
- typedef void (*qdf_self_recovery_callback)(void *psoc,
- enum qdf_hang_reason reason,
- const char *func,
- const uint32_t line);
- typedef bool (*qdf_is_fw_down_callback)(void);
- void qdf_register_fw_down_callback(qdf_is_fw_down_callback is_fw_down);
- bool qdf_is_fw_down(void);
- typedef int (*qdf_wmi_recv_qmi_cb)(void *cb_ctx, void *buf, int len);
- typedef int (*qdf_qmi_ind_cb)(void *cb_ctx, uint16_t type,
- void *event, int event_len);
- typedef QDF_STATUS (*qdf_wmi_send_over_qmi_callback)(void *buf, uint32_t len,
- void *cb_ctx,
- qdf_wmi_recv_qmi_cb
- wmi_rx_cb);
- typedef QDF_STATUS (*qdf_send_ind_over_qmi_callback)(void *cb_ctx,
- qdf_qmi_ind_cb qmi_ind_cb);
- void qdf_register_wmi_send_recv_qmi_callback(qdf_wmi_send_over_qmi_callback
- wmi_send_recv_qmi_cb);
- void qdf_register_qmi_indication_callback(qdf_send_ind_over_qmi_callback qmi_ind_cb);
- QDF_STATUS qdf_wmi_send_recv_qmi(void *buf, uint32_t len, void *cb_ctx,
- qdf_wmi_recv_qmi_cb wmi_rx_cb);
- QDF_STATUS qdf_reg_qmi_indication(void *cb_ctx, qdf_qmi_ind_cb qmi_ind_cb);
- typedef bool (*qdf_is_driver_unloading_callback)(void);
- void qdf_register_is_driver_unloading_callback(
- qdf_is_driver_unloading_callback callback);
- typedef bool (*qdf_is_driver_state_module_stop_callback)(void);
- void qdf_register_is_driver_state_module_stop_callback(
- qdf_is_driver_state_module_stop_callback callback);
- void qdf_register_self_recovery_callback(qdf_self_recovery_callback callback);
- #define qdf_trigger_self_recovery(psoc, reason) \
- __qdf_trigger_self_recovery(psoc, reason, __func__, __LINE__)
- void __qdf_trigger_self_recovery(void *psoc, enum qdf_hang_reason reason,
- const char *func, const uint32_t line);
- typedef bool (*qdf_is_recovering_callback)(void);
- void qdf_register_recovering_state_query_callback(
- qdf_is_recovering_callback is_recovering);
- bool qdf_is_driver_unloading(void);
- bool qdf_is_driver_state_module_stop(void);
- bool qdf_is_recovering(void);
- struct qdf_op_sync;
- typedef int (*qdf_op_protect_cb)(void **out_sync, const char *func);
- typedef void (*qdf_op_unprotect_cb)(void *sync, const char *func);
- #define qdf_op_protect(out_sync) __qdf_op_protect(out_sync, __func__)
- qdf_must_check int
- __qdf_op_protect(struct qdf_op_sync **out_sync, const char *func);
- #define qdf_op_unprotect(sync) __qdf_op_unprotect(sync, __func__)
- void __qdf_op_unprotect(struct qdf_op_sync *sync, const char *func);
- void qdf_op_callbacks_register(qdf_op_protect_cb on_protect,
- qdf_op_unprotect_cb on_unprotect);
- typedef bool (*qdf_is_drv_connected_callback)(void);
- bool qdf_is_drv_connected(void);
- void qdf_register_drv_connected_callback(qdf_is_drv_connected_callback
- is_drv_connected);
- void qdf_check_state_before_panic(const char *func, const uint32_t line);
- typedef bool (*qdf_is_drv_supported_callback)(void);
- bool qdf_is_drv_supported(void);
- void qdf_register_drv_supported_callback(qdf_is_drv_supported_callback
- is_drv_supported);
- typedef void (*qdf_recovery_reason_update_callback)(enum qdf_hang_reason
- reason);
- void qdf_register_recovery_reason_update(qdf_recovery_reason_update_callback
- callback);
- void qdf_recovery_reason_update(enum qdf_hang_reason reason);
- typedef void (*qdf_bus_reg_dump)(struct device *dev, uint8_t *buf,
- uint32_t len);
- void qdf_register_get_bus_reg_dump(qdf_bus_reg_dump callback);
- void qdf_get_bus_reg_dump(struct device *dev, uint8_t *buf, uint32_t len);
- #ifdef WLAN_SUPPORT_DPDK
- int qdf_uio_register_device(struct device *parent, qdf_uio_info_t *info);
- void qdf_uio_unregister_device(qdf_uio_info_t *info);
- #endif
- #endif
|