MdeModulePkg: ArmFfaLib: Move Rx/Tx hob definition to Include/Guid folder

Currently, ArmFfaLib uses an internally defined Guided HOB to pass
information about the Rx/Tx buffer set up by the first executing agent.

However, the GUID definition is solely specified in the DEC file, which
is inconsistent with other GUID definitions in MdeModulePkg. This change
relocates the GUID definition to the Include/Guid folder to ensure
consistency across the package.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
This commit is contained in:
Kun Qin
2025-04-08 10:56:02 -07:00
committed by mergify[bot]
parent be03ceb117
commit 18988ea3e6
5 changed files with 36 additions and 17 deletions

View File

@@ -0,0 +1,31 @@
/** @file
Arm FF-A ns common library Header file
Copyright (c) 2024, Arm Limited. All rights reserved.<BR>
Copyright (c), Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef ARM_FFA_RX_TX_BUFFER_INFO_H_
#define ARM_FFA_RX_TX_BUFFER_INFO_H_
/**
* Guid Hob Data for gArmFfaRxTxBufferInfoGuid Guid Hob.
*/
typedef struct ArmFfaRxTxBuffersInfo {
/// Tx Buffer Address.
VOID *TxBufferAddr;
/// Tx Buffer Size.
UINT64 TxBufferSize;
/// Rx Buffer Address.
VOID *RxBufferAddr;
/// Rx Buffer Size.
UINT64 RxBufferSize;
} ARM_FFA_RX_TX_BUFFER_INFO;
extern EFI_GUID gArmFfaRxTxBufferInfoGuid;
#endif

View File

@@ -28,6 +28,8 @@
#include <IndustryStandard/ArmFfaSvc.h>
#include <Guid/ArmFfaRxTxBufferInfo.h>
#include "ArmFfaCommon.h"
#include "ArmFfaRxTxMap.h"

View File

@@ -29,6 +29,8 @@
#include <IndustryStandard/ArmFfaSvc.h>
#include <Guid/ArmFfaRxTxBufferInfo.h>
#include "ArmFfaCommon.h"
#include "ArmFfaRxTxMap.h"

View File

@@ -17,23 +17,6 @@
#ifndef ARM_FFA_RX_TX_MAP_LIB_H_
#define ARM_FFA_RX_TX_MAP_LIB_H_
/**
* Guid Hob Data for gArmFfaRxTxBufferInfoGuid Guid Hob.
*/
typedef struct ArmFfaRxTxBuffersInfo {
/// Tx Buffer Address.
VOID *TxBufferAddr;
/// Tx Buffer Size.
UINT64 TxBufferSize;
/// Rx Buffer Address.
VOID *RxBufferAddr;
/// Rx Buffer Size.
UINT64 RxBufferSize;
} ARM_FFA_RX_TX_BUFFER_INFO;
/**
Mapping Rx/Tx buffers.
This function is only called in ArmFfaLibConstructor because

View File

@@ -494,6 +494,7 @@
## Include/Guid/DelayedDispatch.h
gEfiDelayedDispatchTableGuid = { 0x4b733449, 0x8eff, 0x488c, { 0x92, 0x1a, 0x15, 0x4a, 0xda, 0x25, 0x18, 0x07 }}
## Include/Guid/ArmFfaRxTxBufferInfo.h
gArmFfaRxTxBufferInfoGuid = { 0x96fd3d26, 0x6fb1, 0x11ef, { 0x8c, 0x11, 0xf3, 0xc9, 0xc5, 0x02, 0x31, 0xab } }
[Ppis]