From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 77803D8042C for ; Tue, 9 Apr 2024 06:16:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=L68pyunCW9KzuT1Vz6hv1/xI6z2lWn/nUPKIVN34AtM=; c=relaxed/simple; d=groups.io; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20240206; t=1712643391; v=1; b=YR+V9KQVroCoXUfM6CXdCVRKIBOSh21uVn2bIH/qu3y5unBqsnP56SULt15MyCfaLCi2p1QW ox2o2kXhLMO5AzS8ul8e0KKeCF2IRaNW588x7501YpPa5h6nHjqQy5BjqVZWgJdTXRBIjMWscg5 /IXCJ/7t4ZkK7XoqRUoFEj9nbescjn5CvzV/Hc+XlKpjCAI2ugAMnK4Ot0JdotQ6cXqT2tOIKxY 5LbAVnDPwp8n39QoUcIimvi6wu8dXqrQ/QfDekRjcqUYpQotwPgOJ9H5xEGJR8PlXXd4SBsM1hp GaHQQtrtShs+NstL1DVPyvM/eguy3gIwuvOL4vDCl29vg== X-Received: by 127.0.0.2 with SMTP id kpePYY7687511xxvsq0m4wx8; Mon, 08 Apr 2024 23:16:31 -0700 X-Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web11.130031.1712643389760730747 for ; Mon, 08 Apr 2024 23:16:30 -0700 X-Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id F0C71DDA78A for ; Tue, 9 Apr 2024 14:16:27 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id EC43DDDA788 for ; Tue, 9 Apr 2024 14:16:27 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by cxsh.intel-email.com (Postfix) with SMTP id 2539EDDA7D4 for ; Tue, 9 Apr 2024 14:16:25 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Tue, 09 Apr 2024 14:16:22 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: "'Qingyu'" , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" , "'Gahan Saraiya'" References: In-Reply-To: Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIOWbnuWkjTogW1BBVENIXSBNZGVQa2c6IFVwZGF0ZSB0aGUgY29tbWVudHMgb2YgR2V0SW5mb3JtYXRpb24gZnVuY3Rpb24=?= Date: Tue, 9 Apr 2024 14:16:23 +0800 Message-ID: <002e01da8a45$7222f100$5668d300$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQGD9ZYwV9ltMepdKkxRJUJWURmNqwEYyh18sgPZUQA= Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 08 Apr 2024 23:16:30 -0700 Resent-From: gaoliming@byosoft.com.cn Reply-To: devel@edk2.groups.io,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: w7HmaxFGPatMeKesp7IsurzCx7686176AA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=YR+V9KQV; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Qingyu > =B7=A2=CB=CD=CA=B1=BC=E4: 2024=C4=EA4=D4=C28=C8=D5 17:28 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Liming Gao ; Michael D Kinney > ; Zhiguang Liu ; > Gahan Saraiya > =D6=F7=CC=E2: [PATCH] MdePkg: Update the comments of GetInformation funct= ion >=20 > Refer to Uefi spec 2.10 section 11.11.2, add a new retval > EFI_NOT_FOUND to > EFI_ADAPTER_INFORMATION_PROTOCOL.GetInformation(). > Reference: [mantis #1866] - GetInfo() of Adapter Information > Protocol should have a provision for IHV to return no data. >=20 > Cc: Liming Gao > Cc: Michael D Kinney > Cc: Zhiguang Liu > Signed-off-by: Qingyu > Signed-off-by: Gahan Saraiya > --- > MdePkg/Include/Protocol/AdapterInformation.h | 5 ++++- > MdePkg/Library/DxeHstiLib/HstiAip.c | 5 ++++- > 2 files changed, 8 insertions(+), 2 deletions(-) >=20 > diff --git a/MdePkg/Include/Protocol/AdapterInformation.h > b/MdePkg/Include/Protocol/AdapterInformation.h > index ed19e5736c3c..8e4448eb0f87 100644 > --- a/MdePkg/Include/Protocol/AdapterInformation.h > +++ b/MdePkg/Include/Protocol/AdapterInformation.h > @@ -140,7 +140,9 @@ typedef struct { >=20 > This function returns information of type InformationType from the > adapter. > If an adapter does not support the requested informational type, then > - EFI_UNSUPPORTED is returned. > + EFI_UNSUPPORTED is returned. If an adapter does not contain > Information for > + the requested InformationType, it fills InformationBlockSize with 0 an= d > + returns EFI_NOT_FOUND. >=20 > @param[in] This A pointer to the > EFI_ADAPTER_INFORMATION_PROTOCOL instance. > @param[in] InformationType A pointer to an EFI_GUID that > defines the contents of InformationBlock. > @@ -150,6 +152,7 @@ typedef struct { >=20 > @retval EFI_SUCCESS The InformationType > information was retrieved. > @retval EFI_UNSUPPORTED The InformationType is not > known. > + @retval EFI_NOT_FOUND Information is not available for > the requested information type. > @retval EFI_DEVICE_ERROR The device reported an error. > @retval EFI_OUT_OF_RESOURCES The request could not be > completed due to a lack of resources. > @retval EFI_INVALID_PARAMETER This is NULL. > diff --git a/MdePkg/Library/DxeHstiLib/HstiAip.c > b/MdePkg/Library/DxeHstiLib/HstiAip.c > index a2454ffeaa7a..523a712e6f6e 100644 > --- a/MdePkg/Library/DxeHstiLib/HstiAip.c > +++ b/MdePkg/Library/DxeHstiLib/HstiAip.c > @@ -12,7 +12,9 @@ >=20 > This function returns information of type InformationType from the > adapter. > If an adapter does not support the requested informational type, then > - EFI_UNSUPPORTED is returned. > + EFI_UNSUPPORTED is returned. If an adapter does not contain > Information for > + the requested InformationType, it fills InformationBlockSize with 0 an= d > + returns EFI_NOT_FOUND. >=20 > @param[in] This A pointer to the > EFI_ADAPTER_INFORMATION_PROTOCOL instance. > @param[in] InformationType A pointer to an EFI_GUID that > defines the contents of InformationBlock. > @@ -22,6 +24,7 @@ >=20 > @retval EFI_SUCCESS The InformationType > information was retrieved. > @retval EFI_UNSUPPORTED The InformationType is not > known. > + @retval EFI_NOT_FOUND Information is not available for > the requested information type. > @retval EFI_DEVICE_ERROR The device reported an error. > @retval EFI_OUT_OF_RESOURCES The request could not be > completed due to a lack of resources. > @retval EFI_INVALID_PARAMETER This is NULL. > -- > 2.39.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117535): https://edk2.groups.io/g/devel/message/117535 Mute This Topic: https://groups.io/mt/105417121/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-