|
@@ -1,6 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
|
|
- * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
+ * Copyright (c) 2022-2024 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
|
|
@@ -451,6 +451,14 @@ pld_pcie_qmi_send(struct device *dev, int type, void *cmd,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+static inline int
|
|
|
+pld_pcie_register_qmi_ind(struct device *dev, void *cb_ctx,
|
|
|
+ int (*cb)(void *ctx, uint16_t type,
|
|
|
+ void *event, int event_len))
|
|
|
+{
|
|
|
+ return -EINVAL;
|
|
|
+}
|
|
|
+
|
|
|
static inline int pld_pcie_get_user_msi_assignment(struct device *dev,
|
|
|
char *user_name,
|
|
|
int *num_vectors,
|
|
@@ -623,6 +631,24 @@ pld_pcie_qmi_send(struct device *dev, int type, void *cmd,
|
|
|
return cnss_qmi_send(dev, type, cmd, cmd_len, cb_ctx, cb);
|
|
|
}
|
|
|
|
|
|
+#ifdef WLAN_CHIPSET_STATS
|
|
|
+static inline int
|
|
|
+pld_pcie_register_qmi_ind(struct device *dev, void *cb_ctx,
|
|
|
+ int (*cb)(void *ctx, uint16_t type,
|
|
|
+ void *event, int event_len))
|
|
|
+{
|
|
|
+ return cnss_register_driver_async_data_cb(dev, cb_ctx, cb);
|
|
|
+}
|
|
|
+#else
|
|
|
+static inline int
|
|
|
+pld_pcie_register_qmi_ind(struct device *dev, void *cb_ctx,
|
|
|
+ int (*cb)(void *ctx, uint16_t type,
|
|
|
+ void *event, int event_len))
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
|
|
|
static inline void *pld_pcie_smmu_get_domain(struct device *dev)
|
|
|
{
|