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.26294.1604289075858191514 for ; Sun, 01 Nov 2020 19:51:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=RKdXoLXa; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=05758cf7e4=nickle.wang@hpe.com) Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A23mhe6002044 for ; Mon, 2 Nov 2020 03:51:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=Db84e10PruiyvGhJ8JiukHw1DVjIcKqQVBpAmAbeBM8=; b=RKdXoLXakKf07QhQL00MK6ObEz00BDTW13D32XO+R0xADezM1kAGf+YXi0lojkRI9PTP /mNUeAT739RDKttkS++RLBtG7loiyeWdwqWpkZ8kaVRQZVPygd/pr/4kRpyVkWdmIW/A BPEiKtDn15dtbRFDt7qr6G1kNcISUqk4Ee5L3yFF+RSjajoCwCwtN9hc0ohBiqYmj8fh d74I6nf4kvgSibtjhNe2DUwFUYAV7FECw8bLZVroEqt3hNioH1la83mT1/0iL5NsD8G5 mA4540JEB+U59gUYYmH+cq3TCw7PtHsPWuRZwYH1WSbcD6Q5BJt02bOUAUHoxBD85rwa aw== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0a-002e3701.pphosted.com with ESMTP id 34hht569d6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 02 Nov 2020 03:51:15 +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 g4t3425.houston.hpe.com (Postfix) with ESMTPS id 9CCC19A for ; Mon, 2 Nov 2020 03:51:14 +0000 (UTC) Received: from G4W9325.americas.hpqcorp.net (16.208.32.94) by G2W6311.americas.hpqcorp.net (16.197.64.53) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 2 Nov 2020 03:51:14 +0000 Received: from G9W9210.americas.hpqcorp.net (2002:10dc:429b::10dc:429b) by G4W9325.americas.hpqcorp.net (2002:10d0:205e::10d0:205e) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 2 Nov 2020 03:51:14 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (15.241.52.10) by G9W9210.americas.hpqcorp.net (16.220.66.155) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 2 Nov 2020 03:51:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XL/yfaqB/+iW+zvIz1GmCfn8cqlxIYMiGnYxUIL9zvqiLJBD52uCayM4ki4fzB4xpT9ctaUgnU4ttoGD8n2n158lN6rIQcp4FpOTKjUf2gCkPtnmJT2Y8DKB69n1hNgmPCAXkFP1CDlv9+7+6IaWUDFCX9s9M4Zw4lm7QwrBWh/5ujRkHjsmCBrUdQORPRsZU0uaDkSJg3wW6C2O/JhaEyKVM9vzHAfPX6f21UltEMSG2jm03rkKPyiU7/mjyP1EuR1gP44z5QBECOA1EOwGerPrJIjlR1LzIF4F2P9aF6dK3W2ztWbyGnEuc5tiQUyuBKCu4EgWNVaWgVp9k5O4JQ== 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=Db84e10PruiyvGhJ8JiukHw1DVjIcKqQVBpAmAbeBM8=; b=IgvGsK+6fSinVJLHyMkO4rnZiuIGFC4DWsHeeoBTuydnKLp4M3I8t6Dc+5b2cSmS1rlPm86InymadEkdOO9OqjNHNBx6UrjYC/5qexQX+cgZMBpOXrR86Jvoc4zXII26Xoqj6oG9AbApnNtBZsXHjpEuJt9Qdo10KrXxhDezkwuxU/w+NK+DEEkS95Euk1QkoQURNvjRjPB2hTCvvl2cy+hpqII+L9PQVtEYKQWOAMMKwCvISOYWcBEKtOyml26zK4gyzOzuvHKheE/vnNpdYuFDcrr9M6u6QNNvbTSIBcTgjZOH05xb7jHaPUknzowqrqTrBCdBOCmu0MqeAYlVEA== 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 DF4PR8401MB1001.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7612::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.29; Mon, 2 Nov 2020 03:51:11 +0000 Received: from DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c9cf:9c73:a8a5:331b]) by DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c9cf:9c73:a8a5:331b%12]) with mapi id 15.20.3499.030; Mon, 2 Nov 2020 03:51:11 +0000 From: "Nickle Wang" To: "Chang, Abner (HPS SW/FW Technologist)" , "devel@edk2.groups.io" CC: Jiaxin Wu , Siyuan Fu , Fan Wang , Jiewen Yao Subject: Re: [EFI Redfish Host Interface PATCH v2 3/6] RedfishPkg/PlatformHostInterfaceLib: Platform NULL lib Thread-Topic: [EFI Redfish Host Interface PATCH v2 3/6] RedfishPkg/PlatformHostInterfaceLib: Platform NULL lib Thread-Index: AQHWrqoYjGfzLHKLH0iME9VK0NwVMqm0OWLg Date: Mon, 2 Nov 2020 03:51:10 +0000 Message-ID: References: <20201030100209.9954-1-abner.chang@hpe.com> <20201030100209.9954-4-abner.chang@hpe.com> In-Reply-To: <20201030100209.9954-4-abner.chang@hpe.com> Accept-Language: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: hpe.com; dkim=none (message not signed) header.d=none;hpe.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [61.231.93.25] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: fc229853-604f-48f9-7b4a-08d87ee289f6 x-ms-traffictypediagnostic: DF4PR8401MB1001: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: o3lFU7fHmU5USTifM3t8kUXiIP30zX62roqkRuqdDJIRHiqMGH2vLsdkRbd3+mbV4Men9F6w2UJkrgHP5kGGS1DOYXMj6s9Rbt2JYQLUDtKBKc12EUuKkhG7D4hQ1Yezc7JBXWi9UfzXNoQVMOrun7gOY7/2wkkywf8w+1hYqLGrg3//DCj3NDUE54UndUVtjlv4SAcjA+Bp9RieZnXJD4KO5UvoUytYrIIO0PAwNjKmFXfWHif0LGsBiBV5kQ5DWiWLX6+oK4sCdF9u9h5w3yJ50mOxGpfTnn+bdL3rVHBxli0f9kf0WpKd1leoR4SsAifMuO/SNtKzREpGJP4F5g== 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:(346002)(39860400002)(366004)(376002)(136003)(396003)(5660300002)(478600001)(86362001)(186003)(26005)(52536014)(7696005)(71200400001)(8936002)(8676002)(2906002)(9686003)(316002)(66556008)(110136005)(76116006)(4326008)(66446008)(54906003)(66946007)(64756008)(33656002)(55016002)(6506007)(53546011)(83380400001)(66476007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: uIDLaNCCOnFHvJH3eLYRoj8fYMnISjYP8NRWdg7MzemOxkT6/pDgpa1D2Iq/qRcFHcfb/m67VRje0+UjK3dUaXRhcNcsuGa74HrtdBK5p5S+8YqykejaHpkqKA92a1C5PaS2dj+tpXarWKNAzuUiYVo/4Fv1D+oUVOW0fNiTF3gW3dHb9kAuihHtaFatzfkfcda61+ZxdWzOQ+AfM0IeEfHHZjRdVYxxLO+rixobzRJ6+h7mrc6qW0HbLzt9fKaggJPOSPyHP6KX3+x/4WweMNgFLjLpj1A7w6WmlL/gAr4r+t1bM/1vS3cupxw/4oWwIhl+fZ23DWUah3sGyB2bhT8imRiEQ84wrlze0FpxaOcfWKZFYwBuQEwz90zzu09YvLz+/xobvKvzmhtF9rLxCzYN5DUgkFVg4uXBhb5kmTaX9wzuJiAUlRkDgQj5I3nsMu3PDlC8oDxpC0UU8cYOp+n7AcKmEcPmyUDnpTZ1m3fRV6NDiDwr/UJHzI0Uu+P/hesDdoWpU9zY/gYumna/EK3x1yQ2BlmWaPupAn6eXnJBBcz23XGpXks0R9tqcGOfoj9bG8JBsx0eiChg5Dhi//aF8uE6RMPOXKBMinod/L3D1DkSLbtxDHuEActdUcMgkfNJk2Pt9bLxIHLM1KKSUg== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: fc229853-604f-48f9-7b4a-08d87ee289f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2020 03:51:11.0358 (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: muu3c5UMGz904vPFHc4AH6+SdAkGjM1SoC9X9qaoBnVv7427TUrAkmvTqkm91fJXGc05tZmU3QhuxPmYbq40ag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB1001 X-OriginatorOrg: hpe.com X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-02_01:2020-10-30,2020-11-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011020029 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Nickle Wang > -----Original Message----- > From: Chang, Abner (HPS SW/FW Technologist) > Sent: Friday, October 30, 2020 6:02 PM > To: devel@edk2.groups.io > Cc: Jiaxin Wu ; Siyuan Fu ; Fan > Wang ; Jiewen Yao ; Wang, > Nickle (HPS SW) > Subject: [EFI Redfish Host Interface PATCH v2 3/6] > RedfishPkg/PlatformHostInterfaceLib: Platform NULL lib >=20 > NULL instance of PlatformHostInterfaceLib. >=20 > Signed-off-by: Abner Chang >=20 > Cc: Jiaxin Wu > Cc: Siyuan Fu > Cc: Fan Wang > Cc: Jiewen Yao > Cc: Nickle Wang > --- > .../PlatformHostInterfaceLibNull.c | 52 +++++++++++++++++++ > .../PlatformHostInterfaceLibNull.inf | 33 ++++++++++++ > 2 files changed, 85 insertions(+) > create mode 100644 > RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLibN > ull.c > create mode 100644 > RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLibN > ull.inf >=20 > diff --git > a/RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLi > bNull.c > b/RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLi > bNull.c > new file mode 100644 > index 0000000000..5c93a003e3 > --- /dev/null > +++ b/RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterf > +++ aceLibNull.c > @@ -0,0 +1,52 @@ > +/** @file > + NULL instace of RedfishPlatformHostInterfaceLib > + > + (C) Copyright 2020 Hewlett Packard Enterprise Development LP
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > +#include > +#include > +#include > +#include > + > +/** > + Get platform Redfish host interface device descriptor. > + > + @param[in] DeviceType Pointer to retrieve device type. > + @param[out] DeviceDescriptor Pointer to retrieve > REDFISH_INTERFACE_DATA, caller has to free > + this memory using FreePool(). > + > + @retval EFI_NOT_FOUND No Redfish host interface descriptor provided > on this platform. > + > +**/ > +EFI_STATUS > +RedfishPlatformHostInterfaceDeviceDescriptor ( > + IN UINT8 *DeviceType, > + OUT REDFISH_INTERFACE_DATA **DeviceDescriptor > +) > +{ > + return EFI_NOT_FOUND; > +} > +/** > + Get platform Redfish host interface protocol data. > + Caller should pass NULL in ProtocolRecord to retrive the first protoco= l > record. > + Then continuously pass previous ProtocolRecord for retrieving the next > ProtocolRecord. > + > + @param[in, out] ProtocolRecord Pointer to retrieve the first or the n= ext > protocol record. > + caller has to free the new protocol re= cord returned from > + this function using FreePool(). > + @param[in] IndexOfProtocolData The index of protocol data. > + > + @retval EFI_NOT_FOUND No more protocol records. > + > +**/ > +EFI_STATUS > +RedfishPlatformHostInterfaceProtocolData ( > + IN OUT MC_HOST_INTERFACE_PROTOCOL_RECORD **ProtocolRecord, > + IN UINT8 IndexOfProtocolData > +) > +{ > + return EFI_NOT_FOUND; > +} > diff --git > a/RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLi > bNull.inf > b/RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLi > bNull.inf > new file mode 100644 > index 0000000000..b42e5335ee > --- /dev/null > +++ b/RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterf > +++ aceLibNull.inf > @@ -0,0 +1,33 @@ > +## @file > +# NULL instance of RedfishPlatformHostInterfaceLib # # (C) Copyright > +2020 Hewlett Packard Enterprise Development LP
# # > +SPDX-License-Identifier: BSD-2-Clause-Patent # ## > + > +[Defines] > + INF_VERSION =3D 0x0001000b > + BASE_NAME =3D RedfishPlatformHostInterfaceLibNull > + FILE_GUID =3D 851229BF-4D8B-30F3-DD0D-20AFAF99A77= B > + MODULE_TYPE =3D DXE_DRIVER > + VERSION_STRING =3D 1.0 > + LIBRARY_CLASS =3D RedfishPlatformHostInterfaceLib > + > +# > +# VALID_ARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +# > + > +[Sources] > + PlatformHostInterfaceLibNull.c > + > +[Packages] > + MdePkg/MdePkg.dec > + MdeModulePkg/MdeModulePkg.dec > + RedfishPkg/RedfishPkg.dec > + > +[LibraryClasses] > + UefiLib > + BaseLib > + > -- > 2.17.1