diff mbox series

[RFC,v1,138/256] cl8k: add power_table.h

Message ID 20210617160223.160998-139-viktor.barna@celeno.com (mailing list archive)
State RFC
Delegated to: Kalle Valo
Headers show
Series wireless: cl8k driver for Celeno IEEE 802.11ax devices | expand

Commit Message

Viktor Barna June 17, 2021, 4 p.m. UTC
From: Viktor Barna <viktor.barna@celeno.com>

(Part of the split. Please, take a look at the cover letter for more
details).

Signed-off-by: Viktor Barna <viktor.barna@celeno.com>
---
 .../net/wireless/celeno/cl8k/power_table.h    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 drivers/net/wireless/celeno/cl8k/power_table.h

--
2.30.0
diff mbox series

Patch

diff --git a/drivers/net/wireless/celeno/cl8k/power_table.h b/drivers/net/wireless/celeno/cl8k/power_table.h
new file mode 100644
index 000000000000..ba2c45f8d408
--- /dev/null
+++ b/drivers/net/wireless/celeno/cl8k/power_table.h
@@ -0,0 +1,25 @@ 
+/* SPDX-License-Identifier: MIT */
+/* Copyright(c) 2019-2021, Celeno Communications Ltd. */
+
+#ifndef CL_POWER_TABLE_H
+#define CL_POWER_TABLE_H
+
+#include <linux/types.h>
+
+#define NUM_POWER_WORDS 256
+
+struct cl_power_table_data {
+       u8 conv_table[NUM_POWER_WORDS];
+};
+
+struct cl_power_table_info {
+       struct cl_power_table_data *data;
+       u32 dma_addr;
+};
+
+struct cl_hw;
+
+int cl_power_table_alloc(struct cl_hw *cl_hw);
+void cl_power_table_free(struct cl_hw *cl_hw);
+
+#endif /* CL_POWER_TABLE_H */