diff --git a/src/include/sof/alloc.h b/src/include/sof/alloc.h index e470b797f..2254262be 100644 --- a/src/include/sof/alloc.h +++ b/src/include/sof/alloc.h @@ -38,6 +38,7 @@ #include #include #include +#include struct sof; diff --git a/src/include/sof/debug.h b/src/include/sof/debug.h index 7f6b1c23c..02ce77c89 100644 --- a/src/include/sof/debug.h +++ b/src/include/sof/debug.h @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/include/uapi/ipc/header.h b/src/include/uapi/ipc/header.h index 2e1bf073a..c58455e70 100644 --- a/src/include/uapi/ipc/header.h +++ b/src/include/uapi/ipc/header.h @@ -139,34 +139,8 @@ #define SOF_IPC_MSG_MAX_SIZE 384 /* - * SOF panic codes */ -#define SOF_IPC_PANIC_MAGIC 0x0dead000 -#define SOF_IPC_PANIC_MAGIC_MASK 0x0ffff000 -#define SOF_IPC_PANIC_CODE_MASK 0x00000fff -#define SOF_IPC_PANIC_MEM (SOF_IPC_PANIC_MAGIC | 0x0) -#define SOF_IPC_PANIC_WORK (SOF_IPC_PANIC_MAGIC | 0x1) -#define SOF_IPC_PANIC_IPC (SOF_IPC_PANIC_MAGIC | 0x2) -#define SOF_IPC_PANIC_ARCH (SOF_IPC_PANIC_MAGIC | 0x3) -#define SOF_IPC_PANIC_PLATFORM (SOF_IPC_PANIC_MAGIC | 0x4) -#define SOF_IPC_PANIC_TASK (SOF_IPC_PANIC_MAGIC | 0x5) -#define SOF_IPC_PANIC_EXCEPTION (SOF_IPC_PANIC_MAGIC | 0x6) -#define SOF_IPC_PANIC_DEADLOCK (SOF_IPC_PANIC_MAGIC | 0x7) -#define SOF_IPC_PANIC_STACK (SOF_IPC_PANIC_MAGIC | 0x8) -#define SOF_IPC_PANIC_IDLE (SOF_IPC_PANIC_MAGIC | 0x9) -#define SOF_IPC_PANIC_WFI (SOF_IPC_PANIC_MAGIC | 0xa) -/* - * SOF memory capabilities, add new ones at the end - */ -#define SOF_MEM_CAPS_RAM (1 << 0) -#define SOF_MEM_CAPS_ROM (1 << 1) -#define SOF_MEM_CAPS_EXT (1 << 2) /**< external */ -#define SOF_MEM_CAPS_LP (1 << 3) /**< low power */ -#define SOF_MEM_CAPS_HP (1 << 4) /**< high performance */ -#define SOF_MEM_CAPS_DMA (1 << 5) /**< DMA'able */ -#define SOF_MEM_CAPS_CACHE (1 << 6) /**< cacheable */ -#define SOF_MEM_CAPS_EXEC (1 << 7) /**< executable */ /* * Command Header - Header for all IPC. Identifies IPC message. diff --git a/src/include/uapi/ipc/topology.h b/src/include/uapi/ipc/topology.h index a28f62fef..1c8924c2a 100644 --- a/src/include/uapi/ipc/topology.h +++ b/src/include/uapi/ipc/topology.h @@ -86,6 +86,18 @@ struct sof_ipc_comp { * Component Buffers */ +/* + * SOF memory capabilities, add new ones at the end + */ +#define SOF_MEM_CAPS_RAM (1 << 0) +#define SOF_MEM_CAPS_ROM (1 << 1) +#define SOF_MEM_CAPS_EXT (1 << 2) /**< external */ +#define SOF_MEM_CAPS_LP (1 << 3) /**< low power */ +#define SOF_MEM_CAPS_HP (1 << 4) /**< high performance */ +#define SOF_MEM_CAPS_DMA (1 << 5) /**< DMA'able */ +#define SOF_MEM_CAPS_CACHE (1 << 6) /**< cacheable */ +#define SOF_MEM_CAPS_EXEC (1 << 7) /**< executable */ + /* create new component buffer - SOF_IPC_TPLG_BUFFER_NEW */ struct sof_ipc_buffer { struct sof_ipc_comp comp; diff --git a/src/include/uapi/ipc/trace.h b/src/include/uapi/ipc/trace.h index 519226d94..5828e2f80 100644 --- a/src/include/uapi/ipc/trace.h +++ b/src/include/uapi/ipc/trace.h @@ -67,6 +67,24 @@ struct sof_ipc_dma_trace_posn { * Commom debug */ +/* + * SOF panic codes + */ +#define SOF_IPC_PANIC_MAGIC 0x0dead000 +#define SOF_IPC_PANIC_MAGIC_MASK 0x0ffff000 +#define SOF_IPC_PANIC_CODE_MASK 0x00000fff +#define SOF_IPC_PANIC_MEM (SOF_IPC_PANIC_MAGIC | 0x0) +#define SOF_IPC_PANIC_WORK (SOF_IPC_PANIC_MAGIC | 0x1) +#define SOF_IPC_PANIC_IPC (SOF_IPC_PANIC_MAGIC | 0x2) +#define SOF_IPC_PANIC_ARCH (SOF_IPC_PANIC_MAGIC | 0x3) +#define SOF_IPC_PANIC_PLATFORM (SOF_IPC_PANIC_MAGIC | 0x4) +#define SOF_IPC_PANIC_TASK (SOF_IPC_PANIC_MAGIC | 0x5) +#define SOF_IPC_PANIC_EXCEPTION (SOF_IPC_PANIC_MAGIC | 0x6) +#define SOF_IPC_PANIC_DEADLOCK (SOF_IPC_PANIC_MAGIC | 0x7) +#define SOF_IPC_PANIC_STACK (SOF_IPC_PANIC_MAGIC | 0x8) +#define SOF_IPC_PANIC_IDLE (SOF_IPC_PANIC_MAGIC | 0x9) +#define SOF_IPC_PANIC_WFI (SOF_IPC_PANIC_MAGIC | 0xa) + /* panic info include filename and line number */ struct sof_ipc_panic_info { char filename[SOF_TRACE_FILENAME_SIZE];