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=0151623386=gilbert.chen@hpe.com) Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by groups.io with SMTP; Wed, 04 Sep 2019 18:24:44 -0700 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 x851LTZk001465 for ; Thu, 5 Sep 2019 01:24:43 GMT Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0a-002e3701.pphosted.com with ESMTP id 2ut7enqgch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 05 Sep 2019 01:24:42 +0000 Received: from G1W8108.americas.hpqcorp.net (g1w8108.austin.hp.com [16.193.72.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g9t5008.houston.hpe.com (Postfix) with ESMTPS id 1098A56 for ; Thu, 5 Sep 2019 01:24:42 +0000 (UTC) Received: from G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) by G1W8108.americas.hpqcorp.net (2002:10c1:483c::10c1:483c) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 5 Sep 2019 01:24:41 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (15.241.52.12) by G4W9121.americas.hpqcorp.net (16.210.21.16) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 5 Sep 2019 01:24:41 +0000 Received: from TU4PR8401MB1056.NAMPRD84.PROD.OUTLOOK.COM (10.169.47.148) by TU4PR8401MB1294.NAMPRD84.PROD.OUTLOOK.COM (10.169.48.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2220.21; Thu, 5 Sep 2019 01:24:38 +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.2220.022; Thu, 5 Sep 2019 01:24:38 +0000 From: "Gilbert Chen" To: "devel@edk2.groups.io" Subject: [PATCH 04/15] [platforms/devel-riscv-v2]: RiscV/Include: Initial version of header files in RISC-V platform package Thread-Topic: [PATCH 04/15] [platforms/devel-riscv-v2]: RiscV/Include: Initial version of header files in RISC-V platform package Thread-Index: AdVjiK4pHaBxPyLjRgumtqH7OZQiGg== Date: Thu, 5 Sep 2019 01:24:38 +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: 5b10d512-eb09-41d4-c600-08d7319fd1ba 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:TU4PR8401MB1294; x-ms-traffictypediagnostic: TU4PR8401MB1294: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 015114592F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(136003)(376002)(39860400002)(396003)(366004)(189003)(199004)(53376002)(55016002)(2501003)(52536014)(305945005)(7736002)(256004)(486006)(478600001)(9686003)(53936002)(66556008)(25786009)(66446008)(5640700003)(64756008)(99286004)(66476007)(5660300002)(316002)(66946007)(6306002)(6436002)(8936002)(74316002)(81166006)(1730700003)(966005)(76116006)(81156014)(186003)(6506007)(3846002)(6116002)(102836004)(476003)(8676002)(2906002)(33656002)(66066001)(14454004)(26005)(71200400001)(6916009)(7696005)(2351001)(71190400001)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:TU4PR8401MB1294;H:TU4PR8401MB1056.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: s25fw4Ts/Knvi5Z3C1P4WQIlN3PwhTOyF2Mo5Trj6/bj1b5trCu+cpt0cdCaSIBLpx9q5kioOpGCTvjCwFBPC2nyfLtQeYnoxo0IPQGqCXNsiI6dy2p4nPsVSy0BcaFgn85YElsV8pYMehvUvFrLijie5eQyfh33Cbddvrfwe1cDldJK6Xlwfa0yTKmF3rLspEV9CjWiqemXm48tyYpHFZVEVtvRbHpU4/joKwpkgoorjlhJNyTPg4+0cZPA8tVnEYTiX1n6f2Nwyp0KUg+lLIbhB+X93lW4Lh5eu7K+LspbaY4DT++prfZNiVsaKST7q5cvKfp4ah8tFD5C89Uayb/MiVtRSFvSM/zuAYpD7lu8tXWUnNlw90J9wuBBC1mc3j55ZWpB5oXbT4A28wEyHW5RFhERPhcd5QF3E8sqtW4= x-ms-exchange-transport-forked: True arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MmvoCzpVoWrtqsBWAStejTMA4ISkCy5Bppu1jmu2Wo+PmCptwx+wVN4ubDCj5/frZM5snPS6Ym+GDQW94gjQeXHTUNsooX5NsX2dJA5OiUklv81w4oGarcHA18IzTqP6VC+T5BOnVdrN5d94eEm3qzGAxkTVBcP/lSc7qYYu1cJBbfNTz1mZc0tDA8eW66n+eBsN59JpLOU75zrB0DdaiYqAbwknlxhpej1VYGkvO4ODztb5mS7Yk3AzPQUGGOQTjy7b+6Akuu4ibDzXISN1/gjB0evu89WYs3AfoyMQ9H1I4JeCsOslj3Ci3gCMBcm2Vs8dXyTin7KsdvcecROCWg== 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=H+GMvPOOPaey5O4DWn799PH77h6NUt4Oe4y3r5WbCnk=; b=UZc8eIkhgjUabb+G/ctoX/4bzo+NxcJ5xkQ2bCsK09HFTsgBur9QIwtqr4KdiQlukdZulD83J9kHO3E7qt3+4iBA/NQcVTKg/bZ2pfajgSE1YU2tX/aD0TRcU056o+FZqoDhKHXsNxfLXUDYJFB873HW0s8DmM/BUS1p4PfT9rjokjTW5lm1/3mkX1YjWQZ5vq92HKUOxU/VOfFz/BJQBp/va6jD9Fy2Tso5Cb2pTuDM6bRxY1hwyPi4pVkwM4fcJ1PTAhAMJW2dcEpCvMET6KDSDrpfWaj2fgzkIcwZyMBF6elQak20pHkjBi/5EsT/RXL/EaS9rmvpL9z/o2YzHA== 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: 5b10d512-eb09-41d4-c600-08d7319fd1ba x-ms-exchange-crosstenant-originalarrivaltime: 05 Sep 2019 01:24:38.3094 (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: lTudWuliiwI0qSWrHKUXSNFgVDeFpqSlt2ntkakg2KQmzWvQX5EXo3VTSs1ysX0aY4YhXxXk347Q0v+pgUWNlg== x-ms-exchange-transport-crosstenantheadersstamped: TU4PR8401MB1294 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.70,1.0.8 definitions=2019-09-05_01:2019-09-04,2019-09-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 bulkscore=0 clxscore=1015 mlxscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 malwarescore=0 spamscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1906280000 definitions=main-1909050012 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