Skip to content

Commit 0accb0e

Browse files
committed
helper
1 parent 0e8aa7d commit 0accb0e

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* SPDX-License-Identifier: BSD-3-Clause
2+
*
3+
* Copyright(c) 2025 Intel Corporation. All rights reserved.
4+
*
5+
* Author: Jaroslaw Stelter <jaroslaw.stelter@intel.com>
6+
* Author: Adrian Warecki <adrian.warecki@intel.com>
7+
*/
8+
9+
#ifndef __SOF_AUDIO_USERSPACE_PROXY_H__
10+
#define __SOF_AUDIO_USERSPACE_PROXY_H__
11+
12+
#if CONFIG_USERSPACE
13+
#include <stdint.h>
14+
#include <stdbool.h>
15+
16+
#include <zephyr/kernel.h>
17+
18+
/* Processing module structure fields needed for user mode */
19+
struct userspace_context {
20+
struct k_mem_domain *comp_dom; /* Module specific memory domain */
21+
};
22+
23+
#endif /* CONFIG_USERSPACE */
24+
25+
#endif /* __SOF_AUDIO_USERSPACE_PROXY_H__ */

zephyr/lib/userspace_helper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616

1717
#include <rtos/alloc.h>
1818
#include <rtos/userspace_helper.h>
19+
#include <sof/audio/module_adapter/module/generic.h>
20+
#include <sof/audio/module_adapter/library/userspace_proxy.h>
1921

2022
#define DRV_HEAP_CACHED CONFIG_SOF_ZEPHYR_HEAP_CACHED
2123

2224
/* Zephyr includes */
25+
#include <version.h>
2326
#include <zephyr/kernel.h>
2427

2528
#if CONFIG_USERSPACE

0 commit comments

Comments
 (0)