new file mode 100644
@@ -0,0 +1,39 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) [2022-2025] Renesas Electronics Corporation and/or its affiliates.
+ */
+
+#ifndef RA6W_Q_H
+#define RA6W_Q_H
+
+#include <linux/kernel.h>
+#include <linux/circ_buf.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+#include <linux/completion.h>
+
+struct ra6w_q {
+ size_t max_count;
+ unsigned long head;
+ unsigned long tail;
+ spinlock_t lock;
+ void **buf;
+};
+
+struct ra6w_q_event {
+ atomic_t condition;
+ wait_queue_head_t wait_queue;
+ u32 timeout;
+};
+
+int ra6w_q_init(struct ra6w_q *q, size_t max_count, size_t buf_size);
+bool ra6w_q_empty(struct ra6w_q *q);
+int ra6w_q_push(struct ra6w_q *q, void *buf);
+void *ra6w_q_pop(struct ra6w_q *q);
+void ra6w_q_event_set(struct ra6w_q_event *event, int event_val);
+bool ra6w_q_event_condition(const struct ra6w_q_event *event, int event_mask, int *ret_event);
+int ra6w_q_wait(struct ra6w_q_event *event, int event_mask);
+int ra6w_q_wait_timeout(struct ra6w_q_event *event, int event_mask);
+void ra6w_q_deinit(struct ra6w_q *q);
+
+#endif /* RA6W_Q_H */