From nobody Sun Apr 28 10:09:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1520904548428942.1692047681138; Mon, 12 Mar 2018 18:29:08 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B9753224488AD; Mon, 12 Mar 2018 18:22:45 -0700 (PDT) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A3DB0224872BF for ; Mon, 12 Mar 2018 18:22:43 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2018 18:29:04 -0700 Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.158.46]) by orsmga001.jf.intel.com with ESMTP; 12 Mar 2018 18:29:03 -0700 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,463,1515484800"; d="scan'208";a="38214938" From: Star Zeng To: edk2-devel@lists.01.org Date: Tue, 13 Mar 2018 09:29:02 +0800 Message-Id: <1520904542-98184-1-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 Subject: [edk2] [PATCH] SecurityPkg OpalPasswordDxe: Move OPAL request variable definition X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chao Zhang , Jiewen Yao , Eric Dong , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Move OPAL request variable definition from OpalHiiFormValues.h to OpalHii.h. Cc: Jiewen Yao Cc: Eric Dong Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Jiewen.yao@intel.com --- SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.h | 11 +++++++++++ SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h | 8 -------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.h b/SecurityPkg/Tcg/= Opal/OpalPassword/OpalHii.h index a1b1131c1380..906106b3f5e8 100644 --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.h +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.h @@ -26,8 +26,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHE= R EXPRESS OR IMPLIED. 0x0d510a4f, 0xa81b, 0x473f, { 0x87, 0x07, 0xb7, 0xfd, 0xfb, 0xc0, 0x45= , 0xba } \ } =20 +#define OPAL_REQUEST_VARIABLE_NAME L"OpalRequest" + #pragma pack(1) =20 +// +// Request for one device. +// +typedef struct { + UINT32 Length; + OPAL_REQUEST OpalRequest; + //EFI_DEVICE_PATH_PROTOCOL OpalDevicePath; +} OPAL_REQUEST_VARIABLE; + typedef struct { UINT16 Id: HII_KEY_ID_BITS; UINT16 Index: HII_KEY_INDEX_BITS; diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h b/Securi= tyPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h index 3ff7d4726d5e..a2313fed290b 100644 --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h @@ -20,8 +20,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER= EXPRESS OR IMPLIED. #define FORMID_VALUE_MAIN_MENU 0x01 #define FORMID_VALUE_DISK_INFO_FORM_MAIN 0x02 =20 -#define OPAL_REQUEST_VARIABLE_NAME L"OpalRequest" - #pragma pack(1) typedef struct { UINT16 Lock:1; @@ -48,12 +46,6 @@ typedef struct { UINT8 EnableBlockSid; } OPAL_HII_CONFIGURATION; =20 -typedef struct { - UINT32 Length; - OPAL_REQUEST OpalRequest; - //EFI_DEVICE_PATH_PROTOCOL OpalDevicePath; -} OPAL_REQUEST_VARIABLE; - #pragma pack() =20 /* Action Flags */ --=20 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel