Browse Source

fw-api: Add wmi_unified_vendor.h to avoid compilation issue

Currently wmi_unified_vendor.h is not present in fw-api which
may cause compilation issue beacuse headerfile wmi_unified_vendor.h
is used in some files.

Change-Id: I99fc183d783841392fda1203e084f818d8ca4662
CRs-Fixed: 2262693
sheenam monga 4 years ago
parent
commit
e474c08533
1 changed files with 62 additions and 0 deletions
  1. 62 0
      fw/wmi_unified_vendor.h

+ 62 - 0
fw/wmi_unified_vendor.h

@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2020 The Linux Foundation. All rights reserved.
+ *
+ * Permission to use, copy, modify, and/or distribute this software for
+ * any purpose with or without fee is hereby granted, provided that the
+ * above copyright notice and this permission notice appear in all
+ * copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
+ * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/** @file
+ *  This File provides dummy defs for the vendor-specific message content structs defined in wmi_unified.h.
+ *  Vendor may replace this file wmi_unified_vendor.h with there own vendor defs header file containing the real vendor defs.
+ **/
+#ifndef _WMI_UNIFIED_VENDOR_H_
+#define _WMI_UNIFIED_VENDOR_H_
+
+typedef union
+{
+    A_UINT32 pdev_sample1_cmd;
+    A_UINT32 pdev_sample2_cmd;
+} wmi_pdev_vendor_cmd_val;
+
+typedef union
+{
+    A_UINT32 pdev_sample1_event;
+    A_UINT32 pdev_sample2_event;
+} wmi_pdev_vendor_event_val;
+
+typedef union
+{
+    A_UINT32 vdev_sample1_cmd;
+    A_UINT32 vdev_sample2_cmd;
+} wmi_vdev_vendor_cmd_val;
+
+typedef union
+{
+    A_UINT32 vdev_sample1_event;
+    A_UINT32 vdev_sample2_event;
+} wmi_vdev_vendor_event_val;
+
+typedef union
+{
+    A_UINT32 peer_sample1_cmd;
+    A_UINT32 peer_sample2_cmd;
+} wmi_peer_vendor_cmd_val;
+
+typedef union
+{
+    A_UINT32 peer_sample1_event;
+    A_UINT32 peer_sample2_event;
+} wmi_peer_vendor_event_val;
+
+#endif /* _WMI_UNIFIED_VENDOR_H_ */