-
Notifications
You must be signed in to change notification settings - Fork 349
abi: define debug abi version for user space dbg interfaces #2398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /* SPDX-License-Identifier: BSD-3-Clause | ||
| * | ||
| * Copyright(c) 2020 Intel Corporation. All rights reserved. | ||
| * | ||
| * Author: Marcin Maka <marcin.maka@linux.intel.com> | ||
| */ | ||
|
|
||
| /** | ||
| * \file include/user/abi_dbg.h | ||
| * \brief ABI definitions for debug interfaces accessed by user space apps. | ||
| * \author Marcin Maka <marcin.maka@linux.intel.com> | ||
| * | ||
| * Follows the rules documented in include/user/abi.h. | ||
| */ | ||
|
|
||
| #include <kernel/abi.h> | ||
|
|
||
| #ifndef __USER_ABI_DBG_H__ | ||
| #define __USER_ABI_DBG_H__ | ||
|
|
||
| #define SOF_ABI_DBG_MAJOR 3 | ||
| #define SOF_ABI_DBG_MINOR 14 | ||
| #define SOF_ABI_DBG_PATCH 0 | ||
|
||
|
|
||
| #define SOF_ABI_DBG_VERSION SOF_ABI_VER(SOF_ABI_DBG_MAJOR, \ | ||
| SOF_ABI_DBG_MINOR, \ | ||
| SOF_ABI_DBG_PATCH) | ||
|
|
||
| #endif /* __USER_ABI_DBG_H__ */ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // SPDX-License-Identifier: BSD-3-Clause | ||
| // | ||
| // Copyright(c) 2020 Intel Corporation. All rights reserved. | ||
| // | ||
| // Author: Marcin Maka <marcin.maka@linux.intel.com> | ||
|
|
||
| #include <ipc/info.h> | ||
| #include <user/abi_dbg.h> | ||
|
|
||
| const struct sof_ipc_user_abi_version user_abi_version | ||
| __attribute__((section(".fw_ready_metadata"))) = { | ||
| .ext_hdr = { | ||
| .hdr.cmd = SOF_IPC_FW_READY, | ||
| .hdr.size = sizeof(struct sof_ipc_user_abi_version), | ||
| .type = SOF_IPC_EXT_USER_ABI_INFO, | ||
| }, | ||
| .abi_dbg_version = SOF_ABI_DBG_VERSION, | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like the separating out of this function can be its own patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it were just refactor, then yea. But here you'd have 1 diff to have it changed in another.