RDMA/rtrs: server: Fix some error return code
[linux/fpc-iii.git] / include / sound / sof / pm.h
blob3cf2e0f39d94a7ddc000b285e971a6eeabc5234c
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /*
3 * This file is provided under a dual BSD/GPLv2 license. When using or
4 * redistributing this file, you may do so under either license.
6 * Copyright(c) 2018 Intel Corporation. All rights reserved.
7 */
9 #ifndef __INCLUDE_SOUND_SOF_PM_H__
10 #define __INCLUDE_SOUND_SOF_PM_H__
12 #include <sound/sof/header.h>
15 * PM
18 /* PM context element */
19 struct sof_ipc_pm_ctx_elem {
20 struct sof_ipc_hdr hdr;
21 uint32_t type;
22 uint32_t size;
23 uint64_t addr;
24 } __packed;
27 * PM context - SOF_IPC_PM_CTX_SAVE, SOF_IPC_PM_CTX_RESTORE,
28 * SOF_IPC_PM_CTX_SIZE
30 struct sof_ipc_pm_ctx {
31 struct sof_ipc_cmd_hdr hdr;
32 struct sof_ipc_host_buffer buffer;
33 uint32_t num_elems;
34 uint32_t size;
36 /* reserved for future use */
37 uint32_t reserved[8];
39 struct sof_ipc_pm_ctx_elem elems[];
40 } __packed;
42 /* enable or disable cores - SOF_IPC_PM_CORE_ENABLE */
43 struct sof_ipc_pm_core_config {
44 struct sof_ipc_cmd_hdr hdr;
45 uint32_t enable_mask;
46 } __packed;
48 struct sof_ipc_pm_gate {
49 struct sof_ipc_cmd_hdr hdr;
50 uint32_t flags; /* platform specific */
52 /* reserved for future use */
53 uint32_t reserved[5];
54 } __packed;
56 #endif