1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2022 Intel Corporation. All rights reserved.
4  */
5 
6 #ifndef _ADSP_STDDEF_H_
7 #define _ADSP_STDDEF_H_
8 
9 #include <stddef.h>
10 #include <stdint.h>
11 #include <user/trace.h>
12 #include <rtos/string.h>
13 
14 #ifdef __ZEPHYR__
15 #include <zephyr/sys/util.h>
16 #endif /* __ZEPHYR__ */
17 
18 #ifdef __XTENSA__
19   #define RESTRICT __restrict
20 #else
21   #define RESTRICT
22 #endif
23 
24 /*! Log level priority enumeration. */
25 typedef enum log_priority {
26 	/*! Critical message. */
27 	L_CRITICAL = LOG_LEVEL_CRITICAL,
28 	/*! Error message. */
29 	L_ERROR = LOG_LEVEL_ERROR,
30 	/*! High importance log level. */
31 	L_HIGH = LOG_LEVEL_ERROR,
32 	/*! Warning message. */
33 	L_WARNING = LOG_LEVEL_WARNING,
34 	/*! Medium importance log level. */
35 	L_MEDIUM = LOG_LEVEL_WARNING,
36 	/*! Low importance log level. */
37 	L_LOW = LOG_LEVEL_INFO,
38 	/*! Information. */
39 	L_INFO = LOG_LEVEL_INFO,
40 	/*! Verbose message. */
41 	L_VERBOSE = LOG_LEVEL_VERBOSE,
42 	L_DEBUG   = LOG_LEVEL_DEBUG,
43 	L_MAX     = LOG_LEVEL_DEBUG,
44 } AdspLogPriority,
45 	log_priority_e;
46 struct AdspLogHandle;
47 typedef struct AdspLogHandle AdspLogHandle;
48 
49 #ifdef __cplusplus
50 namespace intel_adsp
51 {
52 struct ModulePlaceholder {};
53 }
new(size_t size,intel_adsp::ModulePlaceholder * placeholder)54 inline void *operator new(size_t size, intel_adsp::ModulePlaceholder * placeholder) throw()
55 {
56 	(void)size;
57 	return placeholder;
58 }
59 #endif /* #ifdef __cplusplus */
60 
61 #endif /*_ADSP_STDDEF_H_ */
62