From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cpsmtpb-ews07.kpnxchange.com (cpsmtpb-ews07.kpnxchange.com [213.75.39.10]) by ml01.01.org (Postfix) with ESMTP id E682521D1E2D9 for ; Fri, 25 Aug 2017 02:05:52 -0700 (PDT) Received: from cpsps-ews04.kpnxchange.com ([10.94.84.171]) by cpsmtpb-ews07.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Fri, 25 Aug 2017 11:08:26 +0200 Received: from CPSMTPM-CMT106.kpnxchange.com ([195.121.3.22]) by cpsps-ews04.kpnxchange.com with Microsoft SMTPSVC(8.5.9600.16384); Fri, 25 Aug 2017 11:08:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; d=kpnmail.nl; s=kpnmail01; c=relaxed/relaxed; t=1503652106; h=mime-version:date:message-id:subject:from:to:content-type; bh=+D1Sm1eJUimA2oLc1mmKsjMPyj/Ha8DfltFUb8h8/a0=; b=tXTLqEAf6mtvWMzSgzyK4osFA0/9pyvA33iFGFUug4eu12TZxmOiDACKa5PPahT+l4MQ+ZzFbPC Kt1OcJPW+pbHLQyi3PZNSjaMy9H6rYgHPDUygWqGHe6qTfd2zEmiVnh68iCZsXF6UVKTCrJRGAIiz m3GqLJamv3avtfN13vU= Received: from Eltsrv03.Eltan.local ([84.85.114.86]) by CPSMTPM-CMT106.kpnxchange.com over TLS secured channel with Microsoft SMTPSVC(8.5.9600.16384); Fri, 25 Aug 2017 11:08:26 +0200 Received: from Eltsrv03.Eltan.local (192.168.100.3) by Eltsrv03.Eltan.local (192.168.100.3) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 25 Aug 2017 11:07:43 +0200 Received: from Eltsrv03.Eltan.local ([fe80::24e7:1cc6:a76a:a3a8]) by Eltsrv03.Eltan.local ([fe80::24e7:1cc6:a76a:a3a8%12]) with mapi id 15.00.0847.040; Fri, 25 Aug 2017 11:07:43 +0200 From: Wim Vervoorn To: "Bi, Dandan" , "edk2-devel@lists.01.org" Thread-Topic: HiiSetToDefaults behavior Thread-Index: AdMdeQr9ye2D90TlRY+Njw5NLMjVMAABOHbwAADeNfA= Date: Fri, 25 Aug 2017 09:07:42 +0000 Message-ID: References: <3C0D5C461C9E904E8F62152F6274C0BB3B956C2A@shsmsx102.ccr.corp.intel.com> In-Reply-To: <3C0D5C461C9E904E8F62152F6274C0BB3B956C2A@shsmsx102.ccr.corp.intel.com> Accept-Language: nl-NL, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.100.108] MIME-Version: 1.0 X-OriginalArrivalTime: 25 Aug 2017 09:08:26.0571 (UTC) FILETIME=[B60601B0:01D31D81] X-RcptDomain: lists.01.org Subject: Re: HiiSetToDefaults behavior X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2017 09:05:53 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Dandan, Thanks for the clarification. So I assume there is no way that will cause this call to leave certain fiel= ds as they are. Is this correct? Best Regards, Wim Vervoorn Eltan B.V. Ambachtstraat 23 5481 SM Schijndel The Netherlands T : +31-(0)73-594 46 64 E : wvervoorn@eltan.com W : http://www.eltan.com "THIS MESSAGE CONTAINS CONFIDENTIAL INFORMATION. UNLESS YOU ARE THE INTENDE= D RECIPIENT OF THIS MESSAGE, ANY USE OF THIS MESSAGE IS STRICTLY PROHIBITED= . IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE IMMEDIATELY NOTIFY THE= SENDER BY TELEPHONE +31-(0)73-5944664 OR REPLY EMAIL, AND IMMEDIATELY DELE= TE THIS MESSAGE AND ALL COPIES."=A0 -----Original Message----- From: Bi, Dandan [mailto:dandan.bi@intel.com]=20 Sent: Friday, August 25, 2017 10:57 AM To: Wim Vervoorn ; edk2-devel@lists.01.org Subject: RE: HiiSetToDefaults behavior Hi Wim Vervoorn, Current behavior of HiiSetToDefaults(): 1. For Question has the specified type default value, will set the default = value to storage for the Question. 2. For Question without the specified type default, other type default val= ue can be shared.(such as: standard default doesn't exit, but Manufacturing= Default exits, Manufacturing Default value can =20 be shared with standard default) 3. For Question without any types of default value, current implementation = will=20 (a) set first option value as the default value of oneof (b) set minimum value as the default value of numeric .... Thanks, Dandan =20 -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Wim = Vervoorn Sent: Friday, August 25, 2017 4:13 PM To: edk2-devel@lists.01.org Subject: [edk2] HiiSetToDefaults behavior Hello, I have a question about the expect behavior of HiiSetToDefaults(). So far I= haven't been able to find a clear definition of what this should do. What I expect is that this call would only touch the items that have a defa= ult defined. So what I would think is that Test2OfValue below would become = 1 and Test1OfValue would be untouched as long as it's value is either 0 or = 1 and become 1 if this is not the case. What seems to happen is that for Test1OfValue the first item is used as the= default. oneof name =3D Test1OneOf, // Define referenc= e name for Question varid =3D lIfrNVData.Test1OfValue, = // Use "DataStructure.Member" to reference Buffer Storage prompt =3D STRING_TOKEN(STR_TEST1_PROMPT), help =3D STRING_TOKEN(STR_TEST1_HELP), // // Define an option (EFI_IFR_ONE_OF_OPTION) // option text =3D STRING_TOKEN(STR_ENABLE), value =3D 1, flags =3D 0; option text =3D STRING_TOKEN(STR_DISABLE), value =3D 0, flags =3D 0; = endoneof; oneof name =3D Test2OneOf, // Define referenc= e name for Question varid =3D lIfrNVData.Test2OfValue, = // Use "DataStructure.Member" to reference Buffer Storage prompt =3D STRING_TOKEN(STR_TEST2_PROMPT), help =3D STRING_TOKEN(STR_TEST2_HELP), // // Define an option (EFI_IFR_ONE_OF_OPTION) // option text =3D STRING_TOKEN(STR_ENABLE), value =3D 1, flags =3D DEFA= ULT; option text =3D STRING_TOKEN(STR_DISABLE), value =3D 0, flags =3D 0; = endoneof; Best Regards, Wim Vervoorn Eltan B.V. Ambachtstraat 23 5481 SM Schijndel The Netherlands T : +31-(0)73-594 46 64 E : wvervoorn@eltan.com W : http://www.eltan.com "THIS MESSAGE CONTAINS CONFIDENTIAL INFORMATION. UNLESS YOU ARE THE INTENDE= D RECIPIENT OF THIS MESSAGE, ANY USE OF THIS MESSAGE IS STRICTLY PROHIBITED= . IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE IMMEDIATELY NOTIFY THE= SENDER BY TELEPHONE +31-(0)73-5944664 OR REPLY EMAIL, AND IMMEDIATELY DELE= TE THIS MESSAGE AND ALL COPIES." _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel