qcacmn: Add WMI reference in PSOC and PSoc reference in WMI

Add WMI reference in PSOC and PSoc reference in WMI.

Change-Id: I6841bec1748447c6c98a81417365cf6e8d228b54
CRs-Fixed: 2002025
This commit is contained in:
Mukul Sharma
2017-01-30 19:55:40 +05:30
committed by qcabuildsw
parent 0d28328321
commit 36d159b91c
2 changed files with 9 additions and 1 deletions

View File

@@ -41,6 +41,7 @@
#endif #endif
#include "htc_api.h" #include "htc_api.h"
#include "wmi_unified_param.h" #include "wmi_unified_param.h"
#include "wlan_objmgr_psoc_obj.h"
typedef qdf_nbuf_t wmi_buf_t; typedef qdf_nbuf_t wmi_buf_t;
#define wmi_buf_data(_buf) qdf_nbuf_data(_buf) #define wmi_buf_data(_buf) qdf_nbuf_data(_buf)
@@ -112,11 +113,14 @@ enum wmi_rx_exec_ctx {
* @param target_type : type of supported wmi command * @param target_type : type of supported wmi command
* @param use_cookie : flag to indicate cookie based allocation * @param use_cookie : flag to indicate cookie based allocation
* @param ops : handle to wmi ops * @param ops : handle to wmi ops
* @psoc : objmgr psoc
* @return opaque handle. * @return opaque handle.
*/ */
void *wmi_unified_attach(void *scn_handle, void *wmi_unified_attach(void *scn_handle,
osdev_t osdev, enum wmi_target_type target_type, osdev_t osdev, enum wmi_target_type target_type,
bool use_cookie, struct wmi_rx_ops *ops); bool use_cookie, struct wmi_rx_ops *ops,
struct wlan_objmgr_psoc *psoc);
/** /**

View File

@@ -1234,6 +1234,9 @@ struct target_abi_version {
/** ABI version namespace fourth four dwords */ /** ABI version namespace fourth four dwords */
}; };
/* Forward declartion for psoc*/
struct wlan_objmgr_psoc;
/** /**
* struct wmi_init_cmd - Saved wmi INIT command * struct wmi_init_cmd - Saved wmi INIT command
* @buf: Buffer containing the wmi INIT command * @buf: Buffer containing the wmi INIT command
@@ -1247,6 +1250,7 @@ struct wmi_cmd_init {
struct wmi_unified { struct wmi_unified {
void *scn_handle; /* handle to device */ void *scn_handle; /* handle to device */
osdev_t osdev; /* handle to use OS-independent services */ osdev_t osdev; /* handle to use OS-independent services */
struct wlan_objmgr_psoc *wmi_psoc;
qdf_atomic_t pending_cmds; qdf_atomic_t pending_cmds;
HTC_ENDPOINT_ID wmi_endpoint_id; HTC_ENDPOINT_ID wmi_endpoint_id;
uint16_t max_msg_len; uint16_t max_msg_len;