Przeglądaj źródła

qcacld-3.0: Properly export QCA_COMPUTE_TX_DELAY APIs

Currently the qcacld-3.0 driver does not build cleanly when compiled
with the gcc -Wmissing-prototypes switch. One set of warnings is due
to the QCA_COMPUTE_TX_DELAY APIs not being exported properly.  Address
the warnings by properly exporting these functions.

Change-Id: Ib0f8a43a4575caf5714709e7fab659aa0b6f3009
CRs-Fixed: 1103659
Jeff Johnson 8 lat temu
rodzic
commit
b9b4934cfe
2 zmienionych plików z 61 dodań i 17 usunięć
  1. 60 1
      core/dp/txrx/ol_tx_send.h
  2. 1 16
      core/dp/txrx/ol_txrx.c

+ 60 - 1
core/dp/txrx/ol_tx_send.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011, 2014-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -92,4 +92,63 @@ void
 ol_tx_send_nonstd(struct ol_txrx_pdev_t *pdev,
 		  struct ol_tx_desc_t *tx_desc,
 		  qdf_nbuf_t msdu, enum htt_pkt_type pkt_type);
+
+#ifdef QCA_COMPUTE_TX_DELAY
+/**
+ * ol_tx_set_compute_interval() - update compute interval period for TSM stats
+ * @ppdev: physical device instance
+ * @interval: interval for stats computation
+ *
+ * Return: NONE
+ */
+void ol_tx_set_compute_interval(void *ppdev, uint32_t interval);
+
+/**
+ * ol_tx_packet_count() - Return the uplink (transmitted) packet counts
+ * @ppdev: physical device instance
+ * @out_packet_count: number of packets transmitted
+ * @out_packet_loss_count: number of packets lost
+ * @category: access category of interest
+ *
+ * This function will be called for getting uplink packet count and
+ * loss count for given stream (access category) a regular interval.
+ * This also resets the counters hence, the value returned is packets
+ * counted in last 5(default) second interval. These counter are
+ * incremented per access category in ol_tx_completion_handler()
+ *
+ * Return: NONE
+ */
+void
+ol_tx_packet_count(void *ppdev,
+		   uint16_t *out_packet_count,
+		   uint16_t *out_packet_loss_count, int category);
+
+/**
+ * ol_tx_delay() - get tx packet delay
+ * @ppdev: physical device instance
+ * @queue_delay_microsec: tx packet delay within queue, usec
+ * @tx_delay_microsec: tx packet delay, usec
+ * @category: packet catagory
+ *
+ * Return: NONE
+ */
+void
+ol_tx_delay(void *ppdev,
+	    uint32_t *queue_delay_microsec,
+	    uint32_t *tx_delay_microsec, int category);
+
+/**
+ * ol_tx_delay_hist() - get tx packet delay histogram
+ * @ppdev: physical device instance
+ * @report_bin_values: bin
+ * @category: packet catagory
+ *
+ * Return: NONE
+ */
+void
+ol_tx_delay_hist(void *ppdev,
+		 uint16_t *report_bin_values, int category);
+#endif /* QCA_COMPUTE_TX_DELAY */
+
+
 #endif /* _OL_TX_SEND__H_ */

+ 1 - 16
core/dp/txrx/ol_txrx.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -130,21 +130,6 @@ extern void ol_txrx_vdev_pause(void *pvdev, uint32_t reason);
 extern void ol_txrx_vdev_unpause(void *pvdev, uint32_t reason);
 #endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
 
-#ifdef QCA_COMPUTE_TX_DELAY
-extern void ol_tx_delay(void *ppdev,
-	    uint32_t *queue_delay_microsec,
-	    uint32_t *tx_delay_microsec, int category);
-
-extern void ol_tx_delay_hist(void *ppdev,
-		 uint16_t *report_bin_values, int category);
-
-extern void ol_tx_packet_count(void *ppdev,
-		   uint16_t *out_packet_count,
-		   uint16_t *out_packet_loss_count, int category);
-
-extern void ol_tx_set_compute_interval(void *ppdev, uint32_t interval);
-#endif /* QCA_COMPUTE_TX_DELAY */
-
 extern void ol_txrx_get_pn_info(void *ppeer, uint8_t **last_pn_valid,
 		    uint64_t **last_pn, uint32_t **rmf_pn_replays);