Browse Source

qcacmn: Address win specific compilation issues

Fixing compliation issues due to fw common files which
are not yet converged.

Change-Id: I60c2045c0807e2700b548f3dfb9f07fe04eede46
Acked-by: Varsha Mishra <[email protected]>
CRs-Fixed: 1009050
Houston Hoffman 9 years ago
parent
commit
abd0077413
5 changed files with 26 additions and 0 deletions
  1. 5 0
      hif/src/ce/ce_assignment.h
  2. 6 0
      hif/src/ce/ce_main.c
  3. 9 0
      hif/src/ce/ce_main.h
  4. 2 0
      hif/src/icnss_stub/icnss_stub.c
  5. 4 0
      htc/htc_recv.c

+ 5 - 0
hif/src/ce/ce_assignment.h

@@ -78,6 +78,11 @@ static void hif_target_dump_access_log(void);
 #define DIAG_CE_ID           7
 #define EPPING_CE_FLAGS_POLL \
 	(CE_ATTR_DISABLE_INTR|CE_ATTR_ENABLE_POLL|CE_ATTR_FLAGS)
+
+#ifdef CONFIG_WIN
+#define PIPEDIR_INOUT_H2H 4
+#endif
+
 #ifdef QCA_WIFI_3_0
 static struct CE_attr host_ce_config_wlan[] = {
 	/* host->target HTC control and raw streams */

+ 6 - 0
hif/src/ce/ce_main.c

@@ -69,6 +69,12 @@ static int hif_post_recv_buffers_for_pipe(struct HIF_CE_pipe_info *pipe_info);
 #define BYPASS_QMI 0
 #endif
 
+#ifdef CONFIG_WIN
+#define WDI_IPA_SERVICE_GROUP 5
+#define WDI_IPA_TX_SVC MAKE_SERVICE_ID(WDI_IPA_SERVICE_GROUP, 0)
+#define HTT_DATA2_MSG_SVC MAKE_SERVICE_ID(HTT_SERVICE_GROUP, 1)
+#define HTT_DATA3_MSG_SVC MAKE_SERVICE_ID(HTT_SERVICE_GROUP, 2)
+#endif
 
 static int hif_post_recv_buffers(struct hif_softc *scn);
 static void hif_config_rri_on_ddr(struct hif_softc *scn);

+ 9 - 0
hif/src/ce/ce_main.h

@@ -59,6 +59,15 @@ enum ce_id_type {
 	CE_ID_MAX
 };
 
+#ifdef CONFIG_WIN
+struct shadow_reg_cfg {
+	uint16_t ce_id;
+	uint16_t reg_offset;
+};
+
+#define QWLAN_VERSIONSTR "WIN"
+#endif
+
 enum ol_ath_hif_pkt_ecodes {
 	HIF_PIPE_NO_RESOURCE = 0
 };

+ 2 - 0
hif/src/icnss_stub/icnss_stub.c

@@ -33,7 +33,9 @@
 #include "regtable.h"
 #include "hif_debug.h"
 #include "qdf_status.h"
+#ifndef CONFIG_WIN
 #include "qwlan_version.h"
+#endif
 #ifdef CONFIG_CNSS
 #include <net/cnss.h>
 #endif

+ 4 - 0
htc/htc_recv.c

@@ -258,6 +258,10 @@ _failed:
 }
 #endif
 
+#ifdef CONFIG_WIN
+#define HTC_MSG_NACK_SUSPEND 7
+#endif
+
 QDF_STATUS htc_rx_completion_handler(void *Context, qdf_nbuf_t netbuf,
 				   uint8_t pipeID)
 {