Просмотр исходного кода

fw-api: Changes in monitor headers to support Big endian

Use BIG endian version of mon_buf and mon_dest structures.

Change-Id: I819e8947e927042c8362a601e8a07751f85f9ccd
CRs-Fixed: 3510779
Nandha Kishore Easwaran 1 год назад
Родитель
Сommit
d35c331283

+ 2 - 2
hw/qca5332/mon_buffer_addr.h

@@ -1,5 +1,5 @@
 
-/* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
+/* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. 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
@@ -34,7 +34,7 @@
 
 
 struct mon_buffer_addr {
-#ifndef WIFI_BIT_ORDER_BIG_ENDIAN
+#ifndef BIG_ENDIAN_HOST
              uint32_t buffer_virt_addr_31_0                                   : 32; // [31:0]
              uint32_t buffer_virt_addr_63_32                                  : 32; // [31:0]
              uint32_t dma_length                                              : 12, // [11:0]

+ 2 - 2
hw/qca5332/mon_destination_ring.h

@@ -1,5 +1,5 @@
 
-/* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
+/* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. 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
@@ -32,7 +32,7 @@
 
 
 struct mon_destination_ring {
-#ifndef WIFI_BIT_ORDER_BIG_ENDIAN
+#ifndef BIG_ENDIAN_HOST
              uint32_t stat_buf_virt_addr_31_0                                 : 32; // [31:0]
              uint32_t stat_buf_virt_addr_63_32                                : 32; // [31:0]
              uint32_t ppdu_id                                                 : 32; // [31:0]

+ 2 - 2
hw/qcn9224/v1/mon_buffer_addr.h

@@ -1,5 +1,5 @@
 
-/* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
+/* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. 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
@@ -34,7 +34,7 @@
 
 
 struct mon_buffer_addr {
-#ifndef WIFI_BIT_ORDER_BIG_ENDIAN
+#ifndef BIG_ENDIAN_HOST
              uint32_t buffer_virt_addr_31_0                                   : 32;  
              uint32_t buffer_virt_addr_63_32                                  : 32;  
              uint32_t dma_length                                              : 12,  

+ 2 - 2
hw/qcn9224/v2/mon_buffer_addr.h

@@ -1,5 +1,5 @@
 
-/* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
+/* Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. 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
@@ -34,7 +34,7 @@
 
 
 struct mon_buffer_addr {
-#ifndef WIFI_BIT_ORDER_BIG_ENDIAN
+#ifndef BIG_ENDIAN_HOST
              uint32_t buffer_virt_addr_31_0                                   : 32;  
              uint32_t buffer_virt_addr_63_32                                  : 32;  
              uint32_t dma_length                                              : 12,