summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorYue Ma <yuem@codeaurora.org>2019-05-02 15:35:16 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-05-03 10:46:29 -0700
commitf4d62ca185dd067aec1a6ebf14375abfb95aa935 (patch)
treed46705a6c84455236f21df6329f2734e6d8562cb /include/net
parent5a03c1bc9c2b40ae5d698a4d31b3ee1383a4e89a (diff)
cnss2: Expose idle restart/shutdown APIs
Interface change to expose idle restart/shutdown APIs for WLAN driver. This patch is to provide API interface to ease compilation issues among various branches of kernel and WLAN driver. The actual implementation will be in a separate patch. Change-Id: I7f4a0079c32875c362d36c9f794d55609f924198 Signed-off-by: Yue Ma <yuem@codeaurora.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/cnss2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cnss2.h b/include/net/cnss2.h
index 686a13ad7dae..eb6908feb7ef 100644
--- a/include/net/cnss2.h
+++ b/include/net/cnss2.h
@@ -79,6 +79,9 @@ struct cnss_wlan_driver {
char *name;
int (*probe)(struct pci_dev *pdev, const struct pci_device_id *id);
void (*remove)(struct pci_dev *pdev);
+ int (*idle_restart)(struct pci_dev *pdev,
+ const struct pci_device_id *id);
+ int (*idle_shutdown)(struct pci_dev *pdev);
int (*reinit)(struct pci_dev *pdev, const struct pci_device_id *id);
void (*shutdown)(struct pci_dev *pdev);
void (*crash_shutdown)(struct pci_dev *pdev);
@@ -212,6 +215,8 @@ extern int cnss_get_soc_info(struct device *dev, struct cnss_soc_info *info);
extern int cnss_request_bus_bandwidth(struct device *dev, int bandwidth);
extern int cnss_power_up(struct device *dev);
extern int cnss_power_down(struct device *dev);
+extern int cnss_idle_restart(struct device *dev);
+extern int cnss_idle_shutdown(struct device *dev);
extern void cnss_request_pm_qos(struct device *dev, u32 qos_val);
extern void cnss_remove_pm_qos(struct device *dev);
extern void cnss_lock_pm_sem(struct device *dev);