From nobody Wed Apr 24 23:10:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+66213+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66213+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1602672896; cv=none; d=zohomail.com; s=zohoarc; b=V5rXxr/ksgG22uwSCEotX+M9npZ45ge1qqT9x0YU1ZuM04GerEYjvoh+QkF3oo+bGmfNisAtReCMIhljimxHc8AHh6n14UmpezMRQemBp9MgOrDg47Lhul+v0jDgYNFk46vrB0etITzYLfIQBQ0biMVkBJNuBEYg4ai1WP8MrO4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602672896; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=g5VJMjxSHV/dBUNeY+0skyPoV+exCPShlLlV1uzuV2A=; b=oLY9Gy8qeZppqxn7qU9+/DsV5pN3dIF60naFdkVzgndl+Cjy/lhP6QV2af6PKlC+RhWQpsaMGLW0YijQWPmhTW7pqJCXduB5ii/DY7bb43/RB6zoi8btSFmuQLv2p2e4hGgJp+2I0aAGW6GrXEypF8vJoMG9AHCRFc/DxzHv4E8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66213+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1602672896822952.2712172352082; Wed, 14 Oct 2020 03:54:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6n1bYY1788612xeF0ozraQWx; Wed, 14 Oct 2020 03:54:55 -0700 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.9306.1602672894493651408 for ; Wed, 14 Oct 2020 03:54:54 -0700 X-Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09EAoJKE017745; Wed, 14 Oct 2020 10:54:53 GMT X-Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 345weuhcyb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Oct 2020 10:54:53 +0000 X-Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id D270D8B; Wed, 14 Oct 2020 10:54:52 +0000 (UTC) X-Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 025E536; Wed, 14 Oct 2020 10:54:51 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Jiewen Yao , Nickle Wang Subject: [edk2-devel] [Rest Ex Definition PATCH v2 2/2] RedfishPkg/Include: PCD definitions of Host Interface EFI device path Date: Wed, 14 Oct 2020 18:10:09 +0800 Message-Id: <20201014101009.7737-3-abner.chang@hpe.com> In-Reply-To: <20201014101009.7737-1-abner.chang@hpe.com> References: <20201014101009.7737-1-abner.chang@hpe.com> X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: imNJsjq20gIs0tqTYuqjFAUWx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1602672895; bh=UKE+2kgiPXeVZJHTu/pIyr7JmoqXz/5NqmBhU7M65bM=; h=Cc:Date:From:Reply-To:Subject:To; b=UEYaVUhqh/VM38OkhXpcBUIZkxfWgK3CKEO+I/KXxSqSjAk+lTS52e5bAyCeN7c/EIt hMYA3zCxwTRG0glkJ61W/Qa409qkhtuErNt9GIqwIzGDM1jgw6uJF1oIKeI6BzsrFGcl/ b+8h45iCmWf7qA0M2PJwb0qTxqbtRq99+U8= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The definitions of Host Interface EFI device path structure PCD. Signed-off-by: Jiaxin Wu Signed-off-by: Siyuan Fu Signed-off-by: Fan Wang Signed-off-by: Abner Chang Cc: Jiewen Yao Cc: Nickle Wang Reviewed-by: Jiaxin Wu Reviewed-by: Nickle Wang --- .../Include/Pcd/RestExServiceDevicePath.h | 38 +++++++++++++++++++ RedfishPkg/RedfishPkg.dec | 3 ++ 2 files changed, 41 insertions(+) create mode 100644 RedfishPkg/Include/Pcd/RestExServiceDevicePath.h diff --git a/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h b/RedfishPkg/= Include/Pcd/RestExServiceDevicePath.h new file mode 100644 index 0000000000..89de3b1a21 --- /dev/null +++ b/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h @@ -0,0 +1,38 @@ +/** @file + This library defines the UEFI device path data of network device for REST + service to decide which should be used as the Redfish host interface. + + Copyright (c) 2019, Intel Corporation. All rights reserved.
+ (C) Copyright 2020 Hewlett Packard Enterprise Development LP
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef REST_EX_SERVICE_DEVICE_PATH_H_ +#define REST_EX_SERVICE_DEVICE_PATH_H_ + +#include + +typedef enum { + DEVICE_PATH_MATCH_MAC_NODE =3D 1, + DEVICE_PATH_MATCH_PCI_NODE =3D 2, + DEVICE_PATH_MATCH_MODE_MAX +} DEVICE_PATH_MATCH_MODE; + +typedef struct { + UINT32 DevicePathMatchMode; + UINT32 DevicePathNum; + // + // Example: + // {DEVICE_PATH("PciRoot(0)/Pci(0,0)/MAC(005056C00002,0x1)")} + // DevicePath will be parsed as below: + // {0x02,0x01,0x0c,0x00,0xd0,0x41,0x03,0x0a,0x00,0x00,0x00,0x00, + // 0x01,0x01,0x06,0x00,0x00,0x00, + // 0x03,0x0b,0x25,0x00,0x00,0x50,0x56,0xc0,0x00,0x02,0x00,0x00,0x00,0= x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0= x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, + // 0x7f,0xff,0x04,0x00} + // + EFI_DEVICE_PATH_PROTOCOL DevicePath[]; +} REST_EX_SERVICE_DEVICE_PATH_DATA; + +#endif diff --git a/RedfishPkg/RedfishPkg.dec b/RedfishPkg/RedfishPkg.dec index e95ec5fe10..de3611252e 100644 --- a/RedfishPkg/RedfishPkg.dec +++ b/RedfishPkg/RedfishPkg.dec @@ -13,6 +13,9 @@ PACKAGE_GUID =3D c432b76e-5232-11e7-9010-005056c00008 PACKAGE_VERSION =3D 1.0 =20 +[Includes] + Include + [Guids] gEfiRedfishPkgTokenSpaceGuid =3D { 0x4fdbccb7, 0xe829, 0x4b4c, { 0x= 88, 0x87, 0xb2, 0x3f, 0xd7, 0x25, 0x4b, 0x85 }} =20 --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#66213): https://edk2.groups.io/g/devel/message/66213 Mute This Topic: https://groups.io/mt/77502692/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-