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.web12.15220.1601219774099671313 for ; Sun, 27 Sep 2020 08:16:14 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@hpe.com header.s=pps0720 header.b=db8QgKIN; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=05397b83fd=abner.chang@hpe.com) Received: from pps.filterd (m0134422.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08RFGCYY018665; Sun, 27 Sep 2020 15:16:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pps0720; bh=XOI79hLP0MXFXA0zyzKZ8DCc315/ianrK4DhjUd7Eq4=; b=db8QgKINsbhPqVGhv9njfP5eM0kr5ROGxVNT7Pkt+Kf3oJsBum6ms0EJ8LrG949zZySg HGKvWy5qPoMiQMqxUOYHFbnq0rMF8e0asQE2FnuVoBMYeJEmzXrTq83Y2yW1kjGh0Sgl q1w2KnnizxYsiCAGBwdUEt4nxD8VXnoyGv5Ls3OuIASVqI/H3yr5fbAxA9XD9Fsbt1Uq rSyRL94i1ZLcWxqSF/yHTstRa4VxMc2Y7xPGnWvbfYrHOcZibZzdEn1QtZlJdon+YHJ/ R28q7wliERHdh2gpP8OuTttSrofgtzh/1H+XAVpYUA2fHn3A4QlCVr77dE9jddVFqRZ1 Rw== Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0b-002e3701.pphosted.com with ESMTP id 33sy1geffm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 27 Sep 2020 15:16:12 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id EB44855; Sun, 27 Sep 2020 15:16:08 +0000 (UTC) Received: from SAC2XFT1JT.asiapacific.hpqcorp.net (sac2xft1jt.asiapacific.hpqcorp.net [10.43.42.132]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 5167C46; Sun, 27 Sep 2020 15:16:07 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Jiaxin Wu , Siyuan Fu , Fan Wang , Jiewen Yao , Nickle Wang Subject: [edk2-staging/RedfishHostInterfaceDxe PATCH 2/5] RedfishPkg/Include: RedfishHostInterfaceLib header file Date: Sun, 27 Sep 2020 23:16:05 +0800 Message-Id: <20200927151605.461540-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.21.0.windows.1 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.235,18.0.687 definitions=2020-09-27_12:2020-09-24,2020-09-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=812 clxscore=1015 mlxscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 phishscore=0 adultscore=0 impostorscore=0 spamscore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009270146 X-MIME-Autoconverted: from 8bit to quoted-printable by mx0b-002e3701.pphosted.com id 08RFGCYY018665 Content-Type: text/plain; charset=unknown-8bit Content-Transfer-Encoding: quoted-printable https://bugzilla.tianocore.org/show_bug.cgi?id=3D2912 Signed-off-by: Abner Chang Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Fan Wang Cc: Jiewen Yao Cc: Nickle Wang --- .../Library/BZ2912RedfishHostInterfaceLib.h | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 RedfishPkg/Include/Library/BZ2912RedfishHostInterface= Lib.h diff --git a/RedfishPkg/Include/Library/BZ2912RedfishHostInterfaceLib.h b= /RedfishPkg/Include/Library/BZ2912RedfishHostInterfaceLib.h new file mode 100644 index 00000000000..213f90b3e36 --- /dev/null +++ b/RedfishPkg/Include/Library/BZ2912RedfishHostInterfaceLib.h @@ -0,0 +1,52 @@ +=EF=BB=BF/** @file + Definitinos of RedfishHostInterfaceDxe driver. + + (C) Copyright 2020 Hewlett Packard Enterprise Development LP
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ +#ifndef REDFISH_HOST_INTERFACE_LIB_H_ +#define REDFISH_HOST_INTERFACE_LIB_H_ + +#include +#include +#include + +#include + +/** + Get platform Redfish host interface device descriptor. + + @param[out] DeviceType Pointer to retrieve device type. + @param[out] DeviceDescriptor Pointer to retrieve REDFISH_INTERFACE_DA= TA, caller has to free + this memory using FreePool(). + @retval EFI_SUCCESS Device descriptor is returned successfully in = DeviceDescriptor. + @retval EFI_NOT_FOUND No Redfish host interface descriptor provided = on this platform. + @retval Others Fail to get device descriptor. +**/ +EFI_STATUS +RedfishPlatformHostInterfaceDeviceDescriptor ( + IN UINT8 *DeviceType, + IN REDFISH_INTERFACE_DATA **DeviceDescriptor +); +/** + 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_SUCESS Protocol records are all returned. + @retval EFI_NOT_FOUND No more protocol records. + @retval Others Fail to get protocol records. +**/ +EFI_STATUS +RedfishPlatformHostInterfaceProtocolData ( + IN MC_HOST_INTERFACE_PROTOCOL_RECORD **ProtocolRecord, + IN UINT8 IndexOfProtocolData +); +#endif --=20 2.21.0.windows.1