diff mbox series

[09/74] backports: add linux/acpi_amd_wbrf.h

Message ID 20240524190906.949a500a035d.Ib2f48d784990a93132d04cfc5112e8a7c5cefc1f@changeid (mailing list archive)
State New, archived
Headers show
Series backport updates from Intel | expand

Commit Message

Johannes Berg May 24, 2024, 5:07 p.m. UTC
From: Miri Korenblit <miriam.rachel.korenblit@intel.com>

Starting from v6.8 some files include linux/acpi_amd_wbrf.h
Add this include, acpi_amd_wbrf.h was added in v6.8 by
58e82a62669d ("platform/x86/amd: Add support for AMD ACPI based Wifi
band RFI mitigation feature")

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 .../backport-include/linux/acpi_amd_wbrf.h    | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 backport/backport-include/linux/acpi_amd_wbrf.h
diff mbox series

Patch

diff --git a/backport/backport-include/linux/acpi_amd_wbrf.h b/backport/backport-include/linux/acpi_amd_wbrf.h
new file mode 100644
index 000000000000..6946058e05cb
--- /dev/null
+++ b/backport/backport-include/linux/acpi_amd_wbrf.h
@@ -0,0 +1,38 @@ 
+#ifndef __BP_ACPI_AMD_WBRF_H
+#define __BP_ACPI_AMD_WBRF_H
+#include <linux/version.h>
+
+#if LINUX_VERSION_IS_GEQ(6,8,0)
+#include_next <linux/acpi_amd_wbrf.h>
+#else
+
+#include <linux/types.h>
+#include <linux/device.h>
+
+#define MAX_NUM_OF_WBRF_RANGES	11
+#define WBRF_RECORD_ADD		0x0
+#define WBRF_RECORD_REMOVE	0x1
+
+struct freq_band_range {
+	u64		start;
+	u64		end;
+};
+
+struct wbrf_ranges_in_out {
+	u64			num_of_ranges;
+	struct freq_band_range	band_list[MAX_NUM_OF_WBRF_RANGES];
+};
+
+static inline
+bool acpi_amd_wbrf_supported_producer(struct device *dev)
+{
+	return false;
+}
+static inline
+int acpi_amd_wbrf_add_remove(struct device *dev, uint8_t action, struct wbrf_ranges_in_out *in)
+{
+	return -ENODEV;
+}
+#endif
+
+#endif /* __BP_ACPI_AMD_WBRF_H */