From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.92.21.15]) by mx.groups.io with SMTP id smtpd.web11.1469.1596784562356475083 for ; Fri, 07 Aug 2020 00:16:02 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@outlook.com header.s=selector1 header.b=keStuR+M; spf=pass (domain: outlook.com, ip: 40.92.21.15, mailfrom: michael.kubacki@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dqEY3iv8x4BM7JG2hiOXZEI1XSS1FPbcB1bvmYZ+iNiOK0DtXUFQPoDg+1N00cGClFrV0rbyPzo1GfeHn7IQs9DICsgH8xM0ujLgSIQPNGEBwo8SetK05/19iRCjNBOMH/xZj8lFhbgwr3OfFFgT0CX7sn9Rujyjbllt4vekuDIykMTKwJyAxcOQlngCLnq8vSP3gx/rL66YPVK1ev1nSQT0uK+M1YbtvEa7mBSCsGdeEi1uIwrITOn5Dj1JGs8uZjS+pH0wSWouNWmr7QUkA/7xqS29p9zN1P+0KQ6NlJZ5rVS3gHi6oonr6fjA9iTVlO5RMI5KYOGUL2MGxFAOCg== 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=askgfTWRYDTgF6jDkxUoqjeGSbN1QxKBoPXrphMqp+o=; b=fICJ8rMNQklNaBfmuq+WsW0aEtWqcOhjYtJRaR+coRuyqcggB3XoyS2qpaUjBkVSg+BnNPDsLOG7XIKG0r22QAfL5hT0vBJQ1LhhFt20A75BCn+jeDcWnTB9emtoPaedZoeDbhdwgdhqGMPEMxTQ4apSl9CQ9FkF7MqhmB8Vi2TnE5icnCOb+MZ5V9OA/vFDg3ZE0As/ecRPJ8ZOSX7Bc96juh1JTz09AjE6ra0pMWTQQyagkV3pFTQxxg0psB6mXIQKMCKqIM0GhVBKPJVcKGHlU8FTTSjR/I7f6ROM8ysjGI4zxFbEUGS7tbeeIejVD4dVOPEKkhdcWVwF5y+Vdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=askgfTWRYDTgF6jDkxUoqjeGSbN1QxKBoPXrphMqp+o=; b=keStuR+M/BcPpennVgnN7ddzACTHMD77aaE668MeMxwcW2ar1Mm/kc/JkSuenAc4waeBSuq1Ic+oNLv2QfqUE5Qi4gSt6/M+PNPFS1PP5sZ0VNY2Pu365TOONez4yd2uYELRFT/qodbjpfUUHdvn7lCFlnM8O7Cvl2B+9UiZcAAZR+wo60cDDISvaZ/BtVvkKwixlgzaVwwDpnOxlg5ubcDiBEGFasFGcGQ73bDHjNwZVlNefZzTMgxxy4suq2690AsrNR0G/JF+IZAckJSqG5iMU4Dt3vlXxInxK303liHnfGPo4v3OrkMrQZaV+Lguh3k5GfqAoeAppA+byRqlKw== Received: from BN8NAM12FT047.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::40) by BN8NAM12HT224.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc66::110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.10; Fri, 7 Aug 2020 07:16:01 +0000 Received: from MWHPR07MB3440.namprd07.prod.outlook.com (2a01:111:e400:fc66::49) by BN8NAM12FT047.mail.protection.outlook.com (2a01:111:e400:fc66::318) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.10 via Frontend Transport; Fri, 7 Aug 2020 07:16:01 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:BDF6A16A0799E2CBEA2ED29CEB5081842981C22FE19A16776F6BD698E3D4DF24;UpperCasedChecksum:8344938B285E3F190F09B66EC4984B09E8C556917B3F74E00AD8732FF17408E0;SizeAsReceived:7777;Count:49 Received: from MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::9856:570e:1735:974e]) by MWHPR07MB3440.namprd07.prod.outlook.com ([fe80::9856:570e:1735:974e%7]) with mapi id 15.20.3261.019; Fri, 7 Aug 2020 07:16:01 +0000 From: "Michael Kubacki" To: devel@edk2.groups.io CC: Liming Gao , Michael D Kinney , Guomin Jiang , Wei6 Xu Subject: [PATCH v1 2/7] FmpDevicePkg: Add LastAttemptStatus.h Date: Fri, 7 Aug 2020 00:15:21 -0700 Message-ID: X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200807071526.1837-1-michael.kubacki@outlook.com> References: <20200807071526.1837-1-michael.kubacki@outlook.com> X-ClientProxiedBy: MWHPR15CA0042.namprd15.prod.outlook.com (2603:10b6:300:ad::28) To MWHPR07MB3440.namprd07.prod.outlook.com (2603:10b6:301:69::28) Return-Path: michael.kubacki@outlook.com X-Microsoft-Original-Message-ID: <20200807071526.1837-3-michael.kubacki@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (2001:4898:80e8:a:adbb:8e69:1fd3:409e) by MWHPR15CA0042.namprd15.prod.outlook.com (2603:10b6:300:ad::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19 via Frontend Transport; Fri, 7 Aug 2020 07:16:00 +0000 X-Mailer: git-send-email 2.28.0.windows.1 X-Microsoft-Original-Message-ID: <20200807071526.1837-3-michael.kubacki@outlook.com> X-TMN: [ZFRG8VmLW2OHddKVZfgobHjkcHRl7dOsExx14g7WvVJUCGUVc4+ZBe9z0hxw6QAM] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b9a59d7d-1182-4059-7d2d-08d83aa1bd11 X-MS-TrafficTypeDiagnostic: BN8NAM12HT224: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JpKVycS9cdTVmUVK8OywntHD7/QTda4myIUNHbxRPFHm2arsZf/zP9DH6ady0sc3dR1lczNPC1mhncv5+7RPmPFfk9HhpH1/8K8yy4GU6+JxARUfHDkw2fV9eWt7Ipke66vE6rfCslf+Liqovv1xmiqu5fYzDASK1eV5lcgi9jcJYtp3x3qb3mzdiO6olJnLU4U5fuSSBx1TAE+Y+pAGVw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR07MB3440.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: 9lampVGDvqLSY86KK5u+oQSmCI69hwHQxJK4f7gopAj1+0BvPTNObqdbY4kETExnj1r2nlFBrLuJYvShEkZBV+oCwnU22RTMlKpTsIDYGWDnYRAOw7Tvg2GsfkPn+0W/z1kyr2sHOj2EtGqf4eJHw6UzsLEZ7pr/vR2HNpqcWQ0tOTulyIZA7xty2XXQt8TtAYn8aO0X6baMQ7AnnSaP8w== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9a59d7d-1182-4059-7d2d-08d83aa1bd11 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2020 07:16:01.0779 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: BN8NAM12FT047.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8NAM12HT224 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Michael Kubacki Introduces a header file to contain Last Attempt Status codes that define granular FmpDevicePkg usage of the UEFI Specification defined vendor range. The vendor range is described in UEFI Specification 2.8A section 23.4. With this change, FmpDevicePkg currently defines three subranges of the Last Attempt Status vendor range: 1. Driver - Codes returned from operations performed by the FmpDxe driver. 2. Dependency - Codes returned from FMP dependency related functionality (e.g. FmpDependencyLib). 3. Library - Codes returned from FmpDeviceLib instances. Cc: Liming Gao Cc: Michael D Kinney Cc: Guomin Jiang Cc: Wei6 Xu Signed-off-by: Michael Kubacki --- FmpDevicePkg/Include/LastAttemptStatus.h | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/FmpDevicePkg/Include/LastAttemptStatus.h b/FmpDevicePkg/Includ= e/LastAttemptStatus.h new file mode 100644 index 000000000000..d39a06090a65 --- /dev/null +++ b/FmpDevicePkg/Include/LastAttemptStatus.h @@ -0,0 +1,31 @@ +/** @file + Defines last attempt status codes used in FmpDevicePkg. + + Copyright (c) Microsoft Corporation.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef __FMP_LAST_ATTEMPT_STATUS_H__ +#define __FMP_LAST_ATTEMPT_STATUS_H__ + +// +// Size of the error code range for FMP driver-specific errors +// +#define LAST_ATTEMPT_STATUS_DRIVER_ERROR_COUNT 0x80 + +// +// Size of the error code range for FMP dependency related errors +// +#define LAST_ATTEMPT_STATUS_DEPENDENCY_ERROR_COUNT 0x20 + +#define LAST_ATTEMPT_STATUS_DRIVER_MAX_ERROR_CODE_VALUE LAST_ATTEMPT_S= TATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MIN + \ + LAST_ATTEMPT_S= TATUS_DRIVER_ERROR_COUNT - 1 + +#define LAST_ATTEMPT_STATUS_DEPENDENCY_MAX_ERROR_CODE_VALUE LAST_ATTEMPT_S= TATUS_DRIVER_MAX_ERROR_CODE_VALUE + \ + LAST_ATTEMPT_S= TATUS_DEPENDENCY_ERROR_COUNT + +#define LAST_ATTEMPT_STATUS_LIBRARY_MAX_ERROR_CODE_VALUE LAST_ATTEMPT_S= TATUS_ERROR_UNSUCCESSFUL_VENDOR_RANGE_MAX - 1 + +#endif --=20 2.28.0.windows.1