Sound Open Firmware
Loading...
Searching...
No Matches
pm.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2018 Intel Corporation. All rights reserved.
4 *
5 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
6 * Keyon Jie <yang.jie@linux.intel.com>
7 */
8
15
16#ifndef __IPC_PM_H__
17#define __IPC_PM_H__
18
19#include <ipc/header.h>
20#include <ipc/stream.h>
21#include <stdint.h>
22
23/*
24 * PM
25 */
26
27/* PM context element */
30 uint32_t type;
31 uint32_t size;
32 uint64_t addr;
33} __attribute__((packed, aligned(4)));
34
35/*
36 * PM context - SOF_IPC_PM_CTX_SAVE, SOF_IPC_PM_CTX_RESTORE,
37 * SOF_IPC_PM_CTX_SIZE
38 */
42 uint32_t num_elems;
43 uint32_t size;
44
45 /* reserved for future use */
46 uint32_t reserved[8];
47
49} __attribute__((packed, aligned(4)));
50
51/* enable or disable cores - SOF_IPC_PM_CORE_ENABLE */
54 uint32_t enable_mask;
55} __attribute__((packed, aligned(4)));
56
59 uint32_t flags;
60
61 /* reserved for future use */
62 uint32_t reserved[5];
63} __attribute__((packed, aligned(4)));
64
65#define SOF_PM_PG_RSVD BIT(0)
66
68#define SOF_PM_PG_STREAMING BIT(1)
69
71#define SOF_PM_PPG BIT(2)
72
74#define SOF_PM_PCG BIT(3)
75
77#define SOF_PM_NO_TRACE BIT(4)
78
79#endif /* __IPC_PM_H__ */
IPC command header.
IPC definitions for streams.
Command Header - Header for all IPC commands.
Definition header.h:357
Structure Header - Header for all IPC structures except command structs.
Definition header.h:347
Definition stream.h:63
Definition pm.h:52
struct sof_ipc_cmd_hdr hdr
Definition pm.h:53
uint32_t enable_mask
Definition pm.h:54
Definition pm.h:28
uint64_t addr
Definition pm.h:32
uint32_t type
Definition pm.h:30
uint32_t size
Definition pm.h:31
struct sof_ipc_hdr hdr
Definition pm.h:29
Definition pm.h:39
struct sof_ipc_cmd_hdr hdr
Definition pm.h:40
struct sof_ipc_pm_ctx_elem elems[]
Definition pm.h:48
uint32_t size
Definition pm.h:43
uint32_t num_elems
Definition pm.h:42
uint32_t reserved[8]
Definition pm.h:46
struct sof_ipc_host_buffer buffer
Definition pm.h:41
Definition pm.h:57
uint32_t flags
Definition pm.h:59
uint32_t reserved[5]
Definition pm.h:62
struct sof_ipc_cmd_hdr hdr
Definition pm.h:58