From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0142e2c9bd=gilbert.chen@hpe.com) Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by groups.io with SMTP; Mon, 26 Aug 2019 23:25:59 -0700 Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7R6M2TW019447 for ; Tue, 27 Aug 2019 06:25:58 GMT Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com with ESMTP id 2umx24gg7u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Aug 2019 06:25:58 +0000 Received: from G1W8106.americas.hpqcorp.net (g1w8106.austin.hp.com [16.193.72.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2352.austin.hpe.com (Postfix) with ESMTPS id 587BE62 for ; Tue, 27 Aug 2019 06:25:57 +0000 (UTC) Received: from G4W9325.americas.hpqcorp.net (16.208.32.94) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 27 Aug 2019 06:25:57 +0000 Received: from G1W8106.americas.hpqcorp.net (16.193.72.61) by G4W9325.americas.hpqcorp.net (16.208.32.94) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 27 Aug 2019 06:25:56 +0000 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (15.241.52.13) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 27 Aug 2019 06:25:56 +0000 Received: from TU4PR8401MB1056.NAMPRD84.PROD.OUTLOOK.COM (10.169.47.148) by TU4PR8401MB0624.NAMPRD84.PROD.OUTLOOK.COM (10.169.44.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Tue, 27 Aug 2019 06:25:55 +0000 Received: from TU4PR8401MB1056.NAMPRD84.PROD.OUTLOOK.COM ([fe80::cc02:a574:b9e3:cf1e]) by TU4PR8401MB1056.NAMPRD84.PROD.OUTLOOK.COM ([fe80::cc02:a574:b9e3:cf1e%8]) with mapi id 15.20.2199.021; Tue, 27 Aug 2019 06:25:55 +0000 From: "Chen, Gilbert" To: "devel@edk2.groups.io" CC: "Chen, Gilbert" Subject: [PATCH 04/15] [platforms/devel-riscv]: RiscV/Include: Initial version of header files in RISC-V platform package Thread-Topic: [PATCH 04/15] [platforms/devel-riscv]: RiscV/Include: Initial version of header files in RISC-V platform package Thread-Index: AdVcoEbqXNMYgyGnSWa+gOdkfJIl3g== Date: Tue, 27 Aug 2019 06:25:55 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [16.242.247.133] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7f312619-1dc5-46cb-8b8a-08d72ab76aa7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:TU4PR8401MB0624; x-ms-traffictypediagnostic: TU4PR8401MB0624: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 0142F22657 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(366004)(136003)(376002)(396003)(346002)(199004)(189003)(86362001)(316002)(6436002)(2351001)(2501003)(7736002)(6306002)(478600001)(55016002)(102836004)(3846002)(9686003)(6116002)(476003)(53936002)(26005)(256004)(76116006)(486006)(2906002)(66946007)(64756008)(5640700003)(66476007)(5660300002)(66446008)(66556008)(186003)(71200400001)(71190400001)(966005)(8936002)(66066001)(14454004)(6916009)(53376002)(52536014)(74316002)(8676002)(1730700003)(81166006)(81156014)(25786009)(6506007)(305945005)(99286004)(33656002)(4326008)(7696005);DIR:OUT;SFP:1102;SCL:1;SRVR:TU4PR8401MB0624;H:TU4PR8401MB1056.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ut58y64zYjEY0ZrKcPJB4gaucmgeJwfvEZ5RMeFiHe7WLwAej+hIFy+ddpdKUQP9y/rAroGr6oNmPHYwK1YFGCMGAcoSiZxtCF6iQs5hoDLh0Z6Iht/i1SJqJ++UMak/624zOOEMRQBaUQmfTURwQOD35uOr6RZPa9erl9gezzN0q4eEBuIa3za1JozUR6W8Mi39UWVoL6BvZgAaLYbal3ldLvVMA8FEXOp0NRJhiXgJYiZihfTkE9ZlpOkRZiVDiGnRSxZFwDNiClbrdmbpbQFiKDyeQ9EU7cClMErTAmNbG1bojmPdx+1rwt23doGg7zSW/Rfo5xWIHEuwMeRmPPBlNqyWEoLJ1/O/Ig3vQS0ada9FH8jLnW3A2GTPmCA7MgGrfIopcjR+m6mDH4LhpKVnEw7NbsoeFGbXxOZXlAo= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fWrEogPCgRUyuJPW1R13xJDymC+ZK7+HWmUJ5wQH76ylmKKnQSds1NTnjQlR3JXSxiksGeyNBrkvRK5al3BtxAVI11cDoavJoSWGbskwJfTw/amaH/3eoSYdAIm+UJAqg3L7LIbj9nZqf1nZN5M3frEYO5kg0qF/Bw8oyGLeHvRwAJOYandbQxPpV8XFWDKNJUR8Lxg/KJMJ6cqz3QHN2YApHnxyUQrF0Qlj/jfSW5ehYwuyg4jl/xEW1+z29skbLAT1JpWiljN/QJHwirGpW3j93cUCPNiJR7TdGoF9kxnSQP+cYls0CfrUbAB280dxnHY2dnDSxgWlIoNSAa1x5w== 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=wYc3yciAty0ALXajn+os408MtO4qgNde98ub5YWD6q0=; b=QFjfZDj5FYCwNsQ8pINIHNnTPZe2mBGb8qDo6lpodWGTmT87PJVKIjL0l7fD1D/sS4372+E0jPeeDz8nhqnhdCLA4y0aqL5I4bAZV/nIgbyfBIAeDkACdSqjD9SWCjSCVoMlh2d8lwmvg6YUfjntywfhP43plIr7VRXodS+rb9ue0Ge+U1/0L3ABTg7fImRK+Ku2EnP90Sn6NM9mBJRXNQcSczTBCT/LRhAck30fi+AJAgqXxpwBso6QKjBrLhHiSxqEpqjp8Q4+5fvcUUNaGXYyjVQRYmnm+XXA3My3R3Sc/9JUB5pSzhDkT1O20VShHJjGpMZhUHR3rRiU/FQZPw== 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 x-ms-exchange-crosstenant-network-message-id: 7f312619-1dc5-46cb-8b8a-08d72ab76aa7 x-ms-exchange-crosstenant-originalarrivaltime: 27 Aug 2019 06:25:55.2401 (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: NC0dpP2kO5hC/EMddZwR/Yqh8aDzYKqcKXY18nxQ0nteWSBtn1Z9lTpNTDOwoYLyBqRd+HRFfAF1QuaQ/FBnmQ== x-ms-exchange-transport-crosstenantheadersstamped: TU4PR8401MB0624 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:5.22.84,1.0.8 definitions=2019-08-26_08:2019-08-26,2019-08-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 impostorscore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1906280000 definitions=main-1908270070 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable FirmwareContextProcessorSpecificLib.h - The difinitions of Firmware Context EDK2 implementaion based on RISC-V Op= enSBI. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gilbert Chen --- .../Library/FirmwareContextProcessorSpecificLib.h | 47 ++++++++++++++++++= ++++ 1 file changed, 47 insertions(+) create mode 100644 Platform/RiscV/Include/Library/FirmwareContextProcessor= SpecificLib.h diff --git a/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecifi= cLib.h b/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib= .h new file mode 100644 index 0000000..3bfd39f --- /dev/null +++ b/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib.h @@ -0,0 +1,47 @@ + +/** @file + Firmware Context Processor-specific common library + + Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All right= s reserved.
+ + This program and the accompanying materials are licensed and made availa= ble under + the terms and conditions of the BSD License that accompanies this distri= bution. + The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php. + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. + +**/ +#ifndef __FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H__ +#define __FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H__ + +#include + +/** + Build up common firmware context processor-specific information + + @param FirmwareContextHartSpecific Pointer to EFI_RISCV_FIRMWARE_CONTE= XT_HART_SPECIFIC + @param ParentProcessorGuid Pointer to GUID of Processor which = contains this core + @param ParentProcessorUid Unique ID of pysical processor whic= h owns this core. + @param CoreGuid Pointer to GUID of core + @param HartId Hart ID of this core. + @param IsBootHart This is boot hart or not + @param ProcessorSpecDataHob Pointer to RISC_V_PROCESSOR_SPECIFI= C_DATA_HOB + + @return EFI_STATUS + +**/ +EFI_STATUS +EFIAPI +CommonFirmwareContextHartSpecificInfo ( + EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC *FirmwareContextHartSpecific, + EFI_GUID *ParentProcessorGuid, + UINTN ParentProcessorUid, + EFI_GUID *CoreGuid, + UINTN HartId, + BOOLEAN IsBootHart, + RISC_V_PROCESSOR_SPECIFIC_DATA_HOB *ProcessorSpecDataHob + ); + +#endif -- 2.7.4