Преглед изворни кода

qcacmn: Properly export wlan_cfg API

Currently some of the public functions in wlan_cfg.c do not have their
prototypes exposed in a header file. This causes compilation warnings
when the driver is compiled with the -Wmissing-prototypes switch.  Fix
these issues by adding the prototypes to wlan_cfg.h.

Change-Id: I914b811fdd8d48c9570bd240f0fdc8192b21c2e8
CRs-Fixed: 1108113
Jeff Johnson пре 8 година
родитељ
комит
590aeb60c8
1 измењених фајлова са 20 додато и 1 уклоњено
  1. 20 1
      wlan_cfg/wlan_cfg.h

+ 20 - 1
wlan_cfg/wlan_cfg.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017 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
@@ -62,6 +62,17 @@ struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_attach(void);
  */
 void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx);
 
+void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num);
+void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
+			       int context, int mask);
+void wlan_cfg_set_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
+			       int context, int mask);
+void wlan_cfg_set_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
+				   int context, int mask);
+void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg,
+			       int context, int mask);
+void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context,
+				  int mask);
 /**
  * wlan_cfg_get_num_contexts()  Number of interrupt contexts to be registered
  * @wlan_cfg_ctx - Configuration Handle
@@ -220,6 +231,14 @@ int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
  */
 int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx);
 
+/*
+ * wlan_cfg_max_peer_id() - Get maximum peer ID
+ * @cfg: Configuration Handle
+ *
+ * Return: maximum peer ID
+ */
+uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg);
+
 /*
  * wlan_cfg_get_dma_mon_buf_ring_size() - Return Size of monitor buffer ring
  * @wlan_cfg_pdev_ctx