From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mx.groups.io with SMTP id smtpd.web08.2063.1643139556609473630 for ; Tue, 25 Jan 2022 11:39:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Z2GoFe1l; spf=pass (domain: gmail.com, ip: 209.85.214.178, mailfrom: kuqin12@gmail.com) Received: by mail-pl1-f178.google.com with SMTP id d18so7657550plg.2 for ; Tue, 25 Jan 2022 11:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aLbdBeG2eSjPc9TIpWneY7/AFCAhCH0dixDvZqhXH0c=; b=Z2GoFe1lm/N99GNozUeJoCSO8gAYbt8lT3elrtzPqXWI3QU9fRvIGdG+dCqEcrR1nu Gh9YdGgF9SY7eUAIPLfrxxr7Y4nzt2eTa/buoAfPSLz0elapr8FzaF8upit6X/dJ4IBM IWwMlQrgbZ6CjDxAg8YLWrne7wzwU4aItd9nVxqEPb+3GKMqdqHGcNYJ5gHNDtyc71Yq 4qZQgmnX0wrsCHY5drjxGOBbK/XsRpaHxATQQv9EL1j0T4QrLiu4bhoJkF+t8D4z3GQz AKuzYad2VDEpiqdwIP7OtOGLOxRMZoee4wtFPzYBVOg7j5cLg4usJv+EsiStujHu5ZqU n1TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aLbdBeG2eSjPc9TIpWneY7/AFCAhCH0dixDvZqhXH0c=; b=mQGjY1c8wgyXGUr390FckeVd6H2WzYDfSPxuHFv7ajyLzz2/fD+YyTkCPZ1TWY8oi3 dwO3dzAzSQQLERx/p1MVS1qfkK1iEpaQ1X2FcaNubCSO9/R2SMiwtcNpnemWNog0RfNE OIjdZMZ2bYHuTxluD71tIm1h7qYoqFh1anEF/352ZCHK6EjT/yzirO6igpoOXVd5hP3r kovS+Xu0MVVAtPGF/bgQiRUCQR7AlG2Rg2Y/OhGvCzRLxf1XGbP5Wn6a95oo9vGGfM3+ BgmfjDebkl1vS+GKk2c4i8D2oa7OzYh8GxFCufMswg4I5pREJinHAj1Vre/zQhOco7la ZlMA== X-Gm-Message-State: AOAM531btNWPlnDhcfYQLhRChSpqGnD0U5MArh4byo3eaLdLNYc0DttH Ljy0tve0+ZzW2Os3J24Voq9+Wl6d1rE= X-Google-Smtp-Source: ABdhPJzVE0itNt0sxHIhq1xzeTvMW1OC+KKxJ4bC/iXTJPeWpAUPkja0ytAgLpycIj4I2yvInq0vLQ== X-Received: by 2002:a17:902:e74c:b0:14b:409e:400e with SMTP id p12-20020a170902e74c00b0014b409e400emr12903799plf.61.1643139556066; Tue, 25 Jan 2022 11:39:16 -0800 (PST) Return-Path: Received: from gem-name-lb-02.localdomain ([50.35.74.198]) by smtp.gmail.com with ESMTPSA id v8sm1036929pju.51.2022.01.25.11.39.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 11:39:15 -0800 (PST) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v3 2/6] MdePkg: MmCommunication2: Update MM communicate2 function description Date: Tue, 25 Jan 2022 11:39:05 -0800 Message-Id: <20220125193909.491-3-kuqin12@gmail.com> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20220125193909.491-1-kuqin12@gmail.com> References: <20220125193909.491-1-kuqin12@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Current MM communicate2 function definition described input arguments `CommBufferPhysical`, `CommBufferVirtual` and `CommSize` as input only, which mismatches with the "input and output type" as in PI specification. This change updated function descriptions of MM communite2 definition to match input argument types. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin Reviewed-by: Liming Gao --- Notes: v2: - Newly added v3: - Added reviewed-by tag [Liming] MdePkg/Include/Protocol/MmCommunication2.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/MdePkg/Include/Protocol/MmCommunication2.h b/MdePkg/Include/Protocol/MmCommunication2.h index 3495a7327f76..1b56320c7fff 100644 --- a/MdePkg/Include/Protocol/MmCommunication2.h +++ b/MdePkg/Include/Protocol/MmCommunication2.h @@ -27,12 +27,13 @@ typedef struct _EFI_MM_COMMUNICATION2_PROTOCOL EFI_MM_COMMUNICATION2_PROTOCOL; This function provides a service to send and receive messages from a registered UEFI service. - @param[in] This The EFI_MM_COMMUNICATION_PROTOCOL instance. - @param[in] CommBufferPhysical Physical address of the MM communication buffer - @param[in] CommBufferVirtual Virtual address of the MM communication buffer - @param[in] CommSize The size of the data buffer being passed in. On exit, the size of data - being returned. Zero if the handler does not wish to reply with any data. - This parameter is optional and may be NULL. + @param[in] This The EFI_MM_COMMUNICATION_PROTOCOL instance. + @param[in, out] CommBufferPhysical Physical address of the MM communication buffer + @param[in, out] CommBufferVirtual Virtual address of the MM communication buffer + @param[in, out] CommSize The size of the data buffer being passed in. On exit, the + size of data being returned. Zero if the handler does not + wish to reply with any data. This parameter is optional + and may be NULL. @retval EFI_SUCCESS The message was successfully posted. @retval EFI_INVALID_PARAMETER CommBufferPhysical was NULL or CommBufferVirtual was NULL. -- 2.34.1.windows.1