From f369648e57f140321440dafcea75ef8821cb7bbf Mon Sep 17 00:00:00 2001 From: Pranav Madhu Date: Wed, 18 Sep 2024 15:51:15 +0530 Subject: [PATCH] neoverse-rd/rdv3: rearrange scp_platform module context structure The SCP platform module is implemented across multiple C source files. To ensure the module's context data is accessible to all source files, move the context structure definition from the source file to the header file.Move scp_platform module's context structure from the source file to the header file. Change-Id: I2ffeb382482bcadb25b17352501a7a8f95ae78b6 Signed-off-by: Pranav Madhu --- .../scp_platform/include/internal/scp_platform.h | 13 ++++++++++++- .../rdv3/module/scp_platform/src/mod_scp_platform.c | 11 +---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/product/neoverse-rd/rdv3/module/scp_platform/include/internal/scp_platform.h b/product/neoverse-rd/rdv3/module/scp_platform/include/internal/scp_platform.h index 7a9a2935c..f2074218c 100644 --- a/product/neoverse-rd/rdv3/module/scp_platform/include/internal/scp_platform.h +++ b/product/neoverse-rd/rdv3/module/scp_platform/include/internal/scp_platform.h @@ -1,6 +1,6 @@ /* * Arm SCP/MCP Software - * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2025, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * @@ -15,6 +15,17 @@ #define MOD_NAME "[SCP_PLATFORM]" +/*! + * \brief Module context. + */ +struct scp_platform_ctx { + /* Module config data */ + const struct mod_scp_platform_config *config; + + /* System Information HAL API pointer */ + struct mod_system_info_get_info_api *system_info_api; +}; + /* * RSS communication interface helper functions. */ diff --git a/product/neoverse-rd/rdv3/module/scp_platform/src/mod_scp_platform.c b/product/neoverse-rd/rdv3/module/scp_platform/src/mod_scp_platform.c index 42098b40e..4ff9f60fe 100644 --- a/product/neoverse-rd/rdv3/module/scp_platform/src/mod_scp_platform.c +++ b/product/neoverse-rd/rdv3/module/scp_platform/src/mod_scp_platform.c @@ -1,6 +1,6 @@ /* * Arm SCP/MCP Software - * Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2025, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * @@ -21,15 +21,6 @@ #include #include -/* Module context */ -struct scp_platform_ctx { - /* Module config data */ - const struct mod_scp_platform_config *config; - - /* System Information HAL API pointer */ - struct mod_system_info_get_info_api *system_info_api; -}; - /* Module context data */ struct scp_platform_ctx scp_platform_ctx; -- GitLab