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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Miri Korenblit <miriam.rachel.korenblit@xxxxxxxxx>

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@xxxxxxxxx>
Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 .../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 --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 */
-- 
2.45.1





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux