ipc4: add macro for building notification header

Add a macro for building ipc4 notification header based on
specific notification type.

Signed-off-by: Rafal Redzimski <rafal.f.redzimski@intel.com>
This commit is contained in:
Rafal Redzimski 2022-03-30 12:26:52 +02:00 committed by Liam Girdwood
parent 87caf973eb
commit 1918d789bd
1 changed files with 5 additions and 0 deletions

View File

@ -50,4 +50,9 @@ enum sof_ipc4_notification_type {
#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