From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.6927.1614066112633030596 for ; Mon, 22 Feb 2021 23:41:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=pGurwPIo; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=06885caa36=nickle.wang@hpe.com) Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11N7bWaP032590 for ; Tue, 23 Feb 2021 07:41:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=EjqtVV3nEhgt02l3p/78apBSrlFhhXUM+OW/GdyI404=; b=pGurwPIoxokEMrRh3QM+CgH8Ee1xB3swESKliAT/Ztl4ywx3Gjaf3QebszcKDVCueW82 Le55uudwJfW7hTsU0Asvi851O88hEFKRCubHrEt/IeW/xOqksY/qSpAqPuAElBIBmbZJ F0u9dhoAs55KVTU/SnbG9zkKn6lKi/kEVG2NUm+YXLDOnpmGGa+tCqzDI47BxAW+r4ls JSv6UcKf7sIj5xZhzrhJeLlO2z1kxdYrY2KTpyNK9/odfi0OznAcW0jxFUr2OUMjaX2V v/RKY36dyP8zRjm8yh1mXAglotELFJ3UtcedP+qgTiUkxlE6AghsohJtpwGer8rhU6Ko Tw== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 36ubrkfcsg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 23 Feb 2021 07:41:52 +0000 Received: from G2W6311.americas.hpqcorp.net (g2w6311.austin.hp.com [16.197.64.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2353.austin.hpe.com (Postfix) with ESMTPS id 81AF184 for ; Tue, 23 Feb 2021 07:41:51 +0000 (UTC) Received: from G9W8674.americas.hpqcorp.net (16.220.49.0) by G2W6311.americas.hpqcorp.net (16.197.64.53) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 23 Feb 2021 07:41:51 +0000 Received: from G4W10204.americas.hpqcorp.net (2002:10cf:5210::10cf:5210) by G9W8674.americas.hpqcorp.net (2002:10dc:3100::10dc:3100) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 23 Feb 2021 07:41:51 +0000 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (15.241.52.12) by G4W10204.americas.hpqcorp.net (16.207.82.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 23 Feb 2021 07:41:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bRd9Lu+xVYkVFB1fjwGAm8wDybqqwxVjxBYul5mP54JsVIMdvDPQLOWtqzPhLH8/Sl4MuohRDYDBJedNra3AOjQo7HGyjhRPaepaL6wFz4afiI55UjlpTUMj7WBZl8X95uGbGNli4Q5f0tyw914yEubQ7X6+9eOiyUlvD5uf+4SeE4mUbWzC5LYJ1DK2C5gPN0cUr5jdWI9xJslQOUHrMnAhoELrIxYdtH06KLH+/X0MNp+jmaq7qzyJ7estrv6hwHP028ELx7FZfIqZ3OGgux26FSjVybUBEi9Uv9c/8GoiBmvph0Ed7hxp01/GK3C6ygkL/8mp9i3O5RfXH3W5hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R1jORd8P5JjmQzTf1HZt/3tF6czN4QxEIIKGy2OvYpE=; b=Oqq0/oJ2KTHTiHDgkPsI8bi3xn7oPpQhD1dl18/ypNd6kNWIOh+HoK1EZL2UTDkURUQbLMJSKOuQPT588uI3R5O9+5mmoQdLRx3OGMVmr3gl2+NjjqHGI7fJSzmp2cHaMJj9zs5BpwQ876KuL5h9oy1MjD9OPSDThb9aeVdPPcj8tqBglTPMXLYsJ/Ci+RUwQY4ZTuitd7EhAZfo9wQMOFJvD5H0W5ODc87Mk6PCaKnqDxP01ac9eUtuOr45oydsdHer62+56QxrHzKnYyxzmasUgG5LPXEIjQBSF5NWJaebYlRmv/wfRVtk4k0eCWMIeDprl3rKn+ObRXXGwsvBjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::7) by DF4PR8401MB0715.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.29; Tue, 23 Feb 2021 07:41:49 +0000 Received: from DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c1ae:b73d:dbaa:9a6e]) by DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c1ae:b73d:dbaa:9a6e%9]) with mapi id 15.20.3868.033; Tue, 23 Feb 2021 07:41:49 +0000 From: "Nickle Wang" To: "devel@edk2.groups.io" , "Chang, Abner (HPS SW/FW Technologist)" Subject: Re: [edk2-devel] [PATCH] RedfishPkg/Include: EDKII Redfish Config Handler Protocol header file Thread-Topic: [edk2-devel] [PATCH] RedfishPkg/Include: EDKII Redfish Config Handler Protocol header file Thread-Index: AQHW7UjInlaKbZ9nUU6gZcMVZPAYIqpllBJQ Date: Tue, 23 Feb 2021 07:41:49 +0000 Message-ID: References: <165B356104B7F9C2.3867@groups.io> In-Reply-To: <165B356104B7F9C2.3867@groups.io> Accept-Language: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; x-originating-ip: [16.242.247.139] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 395f32d5-c399-451b-ca99-08d8d7ce7aee x-ms-traffictypediagnostic: DF4PR8401MB0715: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:88; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ANjTOXBfVyOti2cWYef/aKZaAjI6ZPEC1pjvGCvpjbznWep7eegbrwqrG/10sd83Wk5oOemrnOWq9rOcSB0uur9HkTzpkcal1TJA308SkWeNsLlU95Vy+sNix1Yeswp33258+/2lYauqG8MVzgc5i7XnAXjNAlYdzH6+H83/sNXK244Ixwx5byUyBOY6M1BA5cEFPPZeAzqUEUoVLzADYeyj80mcsWiJMp7diSQ0HOAZ3qFibf9F2k1RLtBCNVwMS1kNcOyRwL5SwDRJE8pYQsDBm66k8eakdxA+XYq5DbOsMVlh3kityPA8RdAaCLkWklDWeyRbKXLVlEnYWlPt7BSJk8Lag/Or4RsthS2pzXfZNIOIQzUp8pRp6LHMzyLzBzcEqCOxiOLIUiM2YXypy6r5Sp6nlc8ubV5DNcEVYWc+z5L1TJamsNTO4Hy8ayTXJrX3YZWEPtBv+iCdA/FVQSf0ShGgbgHqca4sPA8iaNW57AErgcOJwGXTlmq5j+tFRsA9fDV1yAdZHoXBMWVafa9qrXuP75hKtJAZyToax+UEL4mBgkANEkH9xvKhFViK0czygivh5rLdWloniNiV7pNAfloLuc5uNLnJ/Ym9kNg= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(39860400002)(136003)(366004)(376002)(396003)(346002)(76116006)(55016002)(64756008)(86362001)(66476007)(66946007)(8936002)(66556008)(26005)(9686003)(186003)(110136005)(19627235002)(6636002)(316002)(5660300002)(33656002)(83380400001)(8676002)(478600001)(66446008)(966005)(71200400001)(53546011)(52536014)(6506007)(2906002)(7696005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?q2OJibkgtj9QDILXd0pOqnHyZrxVqx6m7ubItDtPoSCv1V1hqAVhVx3dXXA/?= =?us-ascii?Q?LFOkZz8RqxV64VfHLijFgLpB6Doctti04SWwDVSpwt14cIQBYytAKxLrXPmt?= =?us-ascii?Q?lCmgbSwcVbcPp9kSRBFMeeT/LJ6Lh2V4jHXMHWBmHmylf4/FqX4+9LCzb39k?= =?us-ascii?Q?xnZtYnM0l05sbRZNy0CZHgHCsZp1OSrtu5K7J1rryO5oRFzBxRDz23yQ1cTv?= =?us-ascii?Q?+goqiej3noBg9kpJEaodD0pG0GYBH3aeM1TTu154ZUR/kYeajKWWojH2dYhR?= =?us-ascii?Q?0z99ss+QJ1bGdQdazEBWswaS7xUsSWJgxXhO7fIzTsa+NkI336Sq/aNHnw98?= =?us-ascii?Q?QiL6eiH/DkSsWuUib5CzwlYNudGTaf5aVYEZyTRRxS8xdsGTnQ1NNTfoG/GU?= =?us-ascii?Q?WYRDFYCUesp74uQ/M1075pJh+rE+qOw0Xpumu1knhhGLaRw4e14z5a2Kli+H?= =?us-ascii?Q?h8D5AgfYBr1Z/315XialJTQJAeB/hdl6eO5zfBa2nJykIrjvCRAQpbAkUCST?= =?us-ascii?Q?B7VfiX3cKty+h4pYeNAH8UgnZYENb1e293NY42tl7plt/4oM31j5eT78CPbG?= =?us-ascii?Q?JW9aFLYO+a/v/X4ycU1hvE8aPkEUqm+uiVFT41/yx3PzKkmpt69RPqmzM5ME?= =?us-ascii?Q?6IMNeQTSVkkqqS2M+9jDQYnEEaPwE3wM0MZXWi+8pRSc8+qn3c3z/oYNu6l+?= =?us-ascii?Q?Gcl5deveN98+nGMaXI2TNiTmNKoaApCuFJHSZ+X14ebgNnfXSWo+tI/N+yEt?= =?us-ascii?Q?BptgWkkfmmJssC94xjo7vfYRh3hLwAaqRuwG8nBS8BF0Q3m9GyHM9LLgou5X?= =?us-ascii?Q?/PFA1PcaOS5raxf0ItgF0lxqiY8TXrrv4KDFZLkwgd9OLW37Fc6CP70rzuYn?= =?us-ascii?Q?CpRdwgzXXQ5PW9PhQte2DxOY4Uq9Bp4lxZ99bB5C6/rzpxyU+oDEVwDPRXud?= =?us-ascii?Q?4GKajkZ1txa9zGU2hTNUD1JHp6wsVNfFx3v4iRJJpNWeSfh5ac9rPFo8ZKed?= =?us-ascii?Q?zOepMt2fAe9/1zUPRigvcdqHifrRSRxos52kfFsDY+1plQKA7CIXChy+3+bw?= =?us-ascii?Q?HIjpgur0KalZzI+HZgzfaPpDfeNqjHh/SgQXixfh/Sm8Hvx8XDQFyEt0dUe7?= =?us-ascii?Q?ipM9F7ppGykmjwLood4sc/Ku+ASOCOk0+sfAn6CgwKLEfgDfzT9gwWzvvqzt?= =?us-ascii?Q?d9RoV2mZ3Wby7ANhHU+ls2Q1YFO8jAswRW+oyA4pryZwUOtXmOD4xzb3AJW5?= =?us-ascii?Q?3hGsEMbmFCLulE0iFvNN2CsZJq1vQbYFEtFyopHKj3w7Q685bjnsQSiJk4wg?= =?us-ascii?Q?2EQzf4pEyCE7DCKZDtsVnc5d?= X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 395f32d5-c399-451b-ca99-08d8d7ce7aee X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2021 07:41:49.7000 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: i0TCOEVQsyaCvl81vb7bvqwCj2kXIRcUlzz6COaGmHB84scudV/gvM/FZaOutbL9xF4B3ywum+KvTWqCbmQ7Hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0715 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-02-23_02:2021-02-22,2021-02-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxlogscore=999 spamscore=0 phishscore=0 mlxscore=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 adultscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102230064 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Nickle Wang Thanks, Nickle > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Chang, > Abner (HPS SW/FW Technologist) > Sent: Monday, January 18, 2021 10:31 AM > To: devel@edk2.groups.io > Cc: Wang, Nickle (HPS SW) > Subject: [edk2-devel] [PATCH] RedfishPkg/Include: EDKII Redfish Config > Handler Protocol header file >=20 > BZ:2911 >=20 > This is the header file of EDKII Redfish config handler protocol, > which is used by EDKII Redfish feature driver in order to > manipulate Redfish properties based on the Redfish schema. >=20 > Signed-off-by: Jiaxin Wu > Signed-off-by: Siyuan Fu > Signed-off-by: Fan Wang > Signed-off-by: Abner Chang >=20 > Cc: Nickle Wang > --- > RedfishPkg/RedfishPkg.dec | 3 + > .../Protocol/EdkIIRedfishConfigHandler.h | 78 +++++++++++++++++++ > 2 files changed, 81 insertions(+) > create mode 100644 > RedfishPkg/Include/Protocol/EdkIIRedfishConfigHandler.h >=20 > diff --git a/RedfishPkg/RedfishPkg.dec b/RedfishPkg/RedfishPkg.dec > index 2985676b60..b8ff98eb13 100644 > --- a/RedfishPkg/RedfishPkg.dec > +++ b/RedfishPkg/RedfishPkg.dec > @@ -64,6 +64,9 @@ > ## Include/Protocol/EdkIIRedfishCredential.h > gEdkIIRedfishCredentialProtocolGuid =3D { 0x8804377, 0xaf7a, 0x4496, = { 0x8a, > 0x7b, 0x17, 0x59, 0x0, 0xe9, 0xab, 0x46 } } >=20 > + ## Include/Protocol/Edk2RedfishConfigHandler.h > + gEdkIIRedfishConfigHandlerProtocolGuid =3D { 0xbc0fe6bb, 0x2cc9, 0x46= 3e, > { 0x90, 0x82, 0xfa, 0x11, 0x76, 0xfc, 0x67, 0xde } } > + > [Guids] > gEfiRedfishPkgTokenSpaceGuid =3D { 0x4fdbccb7, 0xe829, 0x4b4c, {= 0x88, > 0x87, 0xb2, 0x3f, 0xd7, 0x25, 0x4b, 0x85 }} >=20 > diff --git a/RedfishPkg/Include/Protocol/EdkIIRedfishConfigHandler.h > b/RedfishPkg/Include/Protocol/EdkIIRedfishConfigHandler.h > new file mode 100644 > index 0000000000..bbd60ed6bd > --- /dev/null > +++ b/RedfishPkg/Include/Protocol/EdkIIRedfishConfigHandler.h > @@ -0,0 +1,78 @@ > +/** @file > + This file defines the EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL > interface. > + > + Copyright (c) 2019, Intel Corporation. All rights reserved.
> + (C) Copyright 2021 Hewlett Packard Enterprise Development LP
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > + > +#ifndef EDKII_REDFISH_CONFIG_HANDLER_H_ > +#define EDKII_REDFISH_CONFIG_HANDLER_H_ > + > +typedef struct _EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL > EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL; > + > +#define EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL_GUID \ > + { \ > + 0xbc0fe6bb, 0x2cc9, 0x463e, { 0x90, 0x82, 0xfa, 0x11, 0x76, 0xfc,= 0x67, > 0xde } \ > + } > + > +typedef struct { > + EFI_HANDLE RedfishServiceRestExHandle; ///< REST EX EFI handle > associated with this Redfish service. > + UINTN RedfishServiceVersion; ///< Redfish service ve= rsion. > + CHAR16 *RedfishServiceLocation; ///< Redfish service lo= cation. > + CHAR16 *RedfishServiceUuid; ///< Redfish service UU= ID. > + CHAR16 *RedfishServiceOs; ///< Redfish service OS= . > + CHAR16 *RedfishServiceOsVersion; ///< Redfish service OS= version. > + CHAR16 *RedfishServiceProduct; ///< Redfish service pr= oduct > name. > + CHAR16 *RedfishServiceProductVer; ///< Redfish service pr= oduct > version. > + BOOLEAN RedfishServiceUseHttps; ///< Redfish service us= es HTTPS. > +} REDFISH_CONFIG_SERVICE_INFORMATION; > + > +/** > + Initialize a configure handler of EDKII Redfish feature driver. > + > + This function will be called by the EDKII Redfish config handler driv= er to > + initialize the configure handler of each EDKII Redfish feature driver= . > + > + @param[in] This Pointer to > EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL instance. > + @param[in] RedfishServiceinfo Redfish service information. > + > + @retval EFI_SUCCESS The handler has been initialized= successfully. > + @retval EFI_DEVICE_ERROR Failed to create or configure th= e REST EX > protocol instance. > + @retval EFI_ALREADY_STARTED This handler has already been > initialized. > + @retval Other Error happens during the initial= ization. > + > +**/ > +typedef > +EFI_STATUS > +(EFIAPI *EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL_INIT) ( > + IN EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL *This, > + IN REDFISH_CONFIG_SERVICE_INFORMATION *RedfishServiceinfo > + ); > + > +/** > + Stop a Redfish configure handler of EDKII Redfish feature driver. > + > + @param[in] This Pointer to > EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL instance. > + > + @retval EFI_SUCCESS This handler has been stoped success= fully. > + @retval Others Some error happened. > + > +**/ > +typedef > +EFI_STATUS > +(EFIAPI *EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL_STOP) ( > + IN EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL *This > + ); > + > +struct _EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL { > + EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL_INIT Init; > + EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL_STOP Stop; > +}; > + > + > +extern EFI_GUID gdkIIRedfishConfigHandlerProtocolGuid; > + > +#endif > -- > 2.17.1 >=20 >=20 >=20 >=20 >=20