Repository navigation
Expand file tree
/
Copy pathnotification.h
More file actions
58 lines (49 loc) · 1.85 KB
/
Copy pathnotification.h
File metadata and controls
58 lines (49 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2021 Intel Corporation. All rights reserved.
*/
/*
* This file contains structures that are exact copies of an existing ABI used
* by IOT middleware. They are Intel specific and will be used by one middleware.
*
* Some of the structures may contain programming implementations that makes them
* unsuitable for generic use and general usage.
*
* This code is mostly copied "as-is" from existing C++ interface files hence the use of
* different style in places. The intention is to keep the interface as close as possible to
* original so it's easier to track changes with IPC host code.
*/
/**
* \file include/ipc4/notification.h
* \brief IPC4 notification definitions
*/
#ifndef __IPC4_NOTIFICATION_H__
#define __IPC4_NOTIFICATION_H__
#include <stdint.h>
#include <ipc/header.h>
/* ipc4 notification msg */
enum sof_ipc4_notification_type {
SOF_IPC4_NOTIFY_PHRASE_DETECTED = 4,
SOF_IPC4_NOTIFY_RESOURCE_EVENT = 5,
SOF_IPC4_NOTIFY_LOG_BUFFER_STATUS = 6,
SOF_IPC4_NOTIFY_TIMESTAMP_CAPTURED = 7,
SOF_IPC4_NOTIFY_FW_READY = 8,
SOF_IPC4_FW_AUD_CLASS_RESULT = 9,
SOF_IPC4_EXCEPTION_CAUGHT = 10,
SOF_IPC4_MODULE_NOTIFICATION = 12,
SOF_IPC4_UAOL_RSVD_ = 13,
SOF_IPC4_PROBE_DATA_AVAILABLE = 14,
SOF_IPC4_WATCHDOG_TIMEOUT = 15,
SOF_IPC4_MANAGEMENT_SERVICE = 16,
};
#define SOF_IPC4_GLB_NOTIFY_DIR_MASK BIT(29)
#define SOF_IPC4_REPLY_STATUS_MASK 0xFFFFFF
#define SOF_IPC4_GLB_NOTIFY_TYPE_SHIFT 16
#define SOF_IPC4_GLB_NOTIFY_MSG_TYPE_SHIFT 24
#define SOF_IPC4_FW_READY \
(((SOF_IPC4_NOTIFY_FW_READY) << (SOF_IPC4_GLB_NOTIFY_TYPE_SHIFT)) |\
((SOF_IPC4_GLB_NOTIFICATION) << (SOF_IPC4_GLB_NOTIFY_MSG_TYPE_SHIFT)))
#define SOF_IPC4_NOTIF_HEADER(notif_type) \
((notif_type) << (SOF_IPC4_GLB_NOTIFY_TYPE_SHIFT) | \
((SOF_IPC4_GLB_NOTIFICATION) << (SOF_IPC4_GLB_NOTIFY_MSG_TYPE_SHIFT)))
#endif