From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=bob.c.feng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 74B9C2119EBDE for ; Tue, 18 Dec 2018 02:08:25 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2018 02:08:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,367,1539673200"; d="scan'208";a="101545282" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga006.jf.intel.com with ESMTP; 18 Dec 2018 02:08:24 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 18 Dec 2018 02:08:24 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 18 Dec 2018 02:08:24 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.201]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.59]) with mapi id 14.03.0415.000; Tue, 18 Dec 2018 18:08:22 +0800 From: "Feng, Bob C" To: "Gao, Liming" , "edk2-devel@lists.01.org" Thread-Topic: [Patch] edk2 DecSpec: Support the syntax of the structure array for structure PCD Thread-Index: AQHUjE7v9VckPFPNJ0GLwz9qFLZKgqWEWeaA Date: Tue, 18 Dec 2018 10:08:21 +0000 Message-ID: <08650203BA1BD64D8AD9B6D5D74A85D160030417@SHSMSX101.ccr.corp.intel.com> References: <1543982345-13708-1-git-send-email-liming.gao@intel.com> In-Reply-To: <1543982345-13708-1-git-send-email-liming.gao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] edk2 DecSpec: Support the syntax of the structure array for structure PCD X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2018 10:08:25 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Liming, ::=3D "[""]" # A valid C variable= array name. We support multiple dimension array but this format is for one dimension ar= ray. Would you please update this ? Thanks, Bob -----Original Message----- From: Gao, Liming=20 Sent: Wednesday, December 5, 2018 11:59 AM To: edk2-devel@lists.01.org Cc: Feng, Bob C Subject: [Patch] edk2 DecSpec: Support the syntax of the structure array fo= r structure PCD https://bugzilla.tianocore.org/show_bug.cgi?id=3D1292 1. Support the syntax of the structure array for structure PCD 2. Add the s= yntax to initialize structure PCD with C style value Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Bob Feng --- 3_edk_ii_dec_file_format/310_pcd_sections.md | 2 +- .../32_package_declaration_dec_definitions.md | 9 +++++= +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/3_edk_ii_dec_file_format/310_pcd_sections.md b/3_edk_ii_dec_fi= le_format/310_pcd_sections.md index 42beee9..2711788 100644 --- a/3_edk_ii_dec_file_format/310_pcd_sections.md +++ b/3_edk_ii_dec_file_format/310_pcd_sections.md @@ -125,7 +125,7 @@ PCDs listed in `PcdsFeatureFlag` sections must only be = listed in ::=3D {} {} "UINT32" ::=3D ::=3D {} {} "UINT64" - ::=3D = "{" + ::=3D {} {} "{" "}" ::=3D "" diff --git a/3_edk_ii_dec_file_format/32_package_declaration_dec_definition= s.md b/3_edk_ii_dec_file_format/32_package_declaration_dec_definitions.md index a3120f3..bc794fe 100644 --- a/3_edk_ii_dec_file_format/32_package_declaration_dec_definitions.md +++ b/3_edk_ii_dec_file_format/32_package_declaration_dec_definitions.md @@ -87,6 +87,7 @@ DEC file (for example, `` statements are not = permitted). ::=3D (a-zA-Z_) ::=3D * ::=3D # A valid C variable name. + ::=3D "[""]" # A valid C variabl= e array name. ::=3D (0x21 - 0x7E) ::=3D [{0x21} {(0x23 - 0x26)} {(0x28 - 0x5B)} {(0x5D - 0x7E)} {}]* @@ -208,7 += 209,7 @@ DEC file (for example, `` statements are not permitted= ). ::=3D {} {} {} ::=3D "{" {} {[] =20 [ [] ]* } "}" - ::=3D {} {} {}=20 + ::=3D {} {} {} {} ::=3D {}{} {} {} {} ::=3D {} {} {} @@ -216,6 +217,7 @@ DEC file (for example, `` statements are no= t permitted). ::=3D {} {} {} ::=3D {} {} {} ::=3D "GUID(" ")" + ::=3D "CODE(" ")" ::=3D { } {} {} ::=3D "DEVICE_PATH(" ")" @@ -326,6 +328,11 @@ All C data arrays used in PCD value fields must be byt= e arrays. The C format GUID style is a special case that is permitted in s= ome fields that use the `` nomenclature. =20 +**_CData_** + +All C data used in PCD value CODE syntax can be C style value to=20 +initialize C structure or Array in C source code. + **_EOL_** =20 The DOS End Of Line: "0x0D 0x0A" character sequence must be used for all E= DK II -- 2.13.0.windows.1