From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.89]) by mx.groups.io with SMTP id smtpd.web10.79908.1673589825578154934 for ; Thu, 12 Jan 2023 22:03:45 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=4qa34EU3; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.244.89, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XiPyf8yO11GxTfcYioT5AK/Mz1h1uFOnjPgT2/7tzJwhHHT9SmrwBaWh9JoxhI7uNDuGLHdRm0DU0gDvtxKaKejkB3mArhv6pYZWqxqskF1urQnu1jMCgz3UlqQgPK+qMcjg9HU627eNtiRTW/Xc9gWmFyZK5cXuVjVXIy3432mEXc0j4dcTyKZZ4q2nuPX4/HoLAc6RoBeC/CFEQ68p3lRd8jfPYWrRn6OR3O6JzGJIwr0lGdKzHmQgOhSzpjnebt1ji9q4mC+ZrJm+yKSvFgnSVI6zpDGrM5xDR1yHkyfGHsvuPnLhoTvYaTTui6j2XB3u1stsj4/Fn7PG7gQrxg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xK/mBpkbRH9lEcAiOcJEY1atKEJahCwsl5KKOovT0Ao=; b=oPRw/R5XsLvqVDOpZpHm0go0ajNDZHqN374XXb1wAtCXcRcpSgr+/W5Vk+V2Xb/l6eh9bRPkxr1UmBOGfyX1bZNTwVdgm28Ycv5fJY69VUFU6pHLJNYxf2QDgW/Tv+mZKFgMRMduFbiuOR0ov+wtNOnz6K572PHLR2flRmuvniKY/UYd49x29cjVRdRBjLhzXE2FK+eo1gDpm04SV2B5UC3oyRK31MwPyMueyizuhIiwbX4zugxU161As+cvsDli1hRrEptGyCI1QsKXRTkTNEyvRBnNImG6z8afZHG8Ff9+5ShKiM9RTab8j5lDMVZZE3RqKASi+GuVh5KCDgiXug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xK/mBpkbRH9lEcAiOcJEY1atKEJahCwsl5KKOovT0Ao=; b=4qa34EU3SVqNUMSJz8QCkfZ7g9+LMSFvyFjcObryTewi8dFMbe8GXVHf6zcVkpcHyGlAIpYlZoXTvgWWwTwvbyl5pi+UAWSVetl+fz3adOjqUWkI6OPAmCYbzU/NybKVl6YzfY2oGfMbDORr+yNRjToDxf0Vj0ekMYSj4AIZTfo= Received: from BN1PR10CA0021.namprd10.prod.outlook.com (2603:10b6:408:e0::26) by CO6PR12MB5396.namprd12.prod.outlook.com (2603:10b6:303:139::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Fri, 13 Jan 2023 06:03:43 +0000 Received: from BN8NAM11FT026.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e0:cafe::59) by BN1PR10CA0021.outlook.office365.com (2603:10b6:408:e0::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.16 via Frontend Transport; Fri, 13 Jan 2023 06:03:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT026.mail.protection.outlook.com (10.13.177.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6002.13 via Frontend Transport; Fri, 13 Jan 2023 06:03:42 +0000 Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 13 Jan 2023 00:03:38 -0600 From: "Chang, Abner" To: CC: Jian J Wang , Liming Gao , Nickle Wang , Igor Kulchytskyy , Isaac Oram , Nate DeSimone Subject: [PATCH V2 0/3] Add NULL IpmiCommandLib instance Date: Fri, 13 Jan 2023 14:03:15 +0800 Message-ID: <20230113060318.610-1-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT026:EE_|CO6PR12MB5396:EE_ X-MS-Office365-Filtering-Correlation-Id: 01fce770-70bf-411e-fa84-08daf52bec89 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SYFX+1d9ZYZpKJBVajLqCdJXtTtn1BZBLAFLZ2R0ms9y94InJhpItvRhAM12OZYHsVs8XjUdQk6DXJdtMiCXQ9Fr7ni9jd3eW3KVDDDBln3Ybcw1eHj6r7Pa78CsX8/tjcy7Z6cpUrFSBY5h6n8zyDDMGJIq9tgyLtNyrMliLoBkReXUSpOzpGRMafMjJKy6ps8r2BvaIcXrJCh9IZpTviKbmZ4OQX++Dr+azd0DP0lpa12hvIptn8IByScPV2lBsgdPlIYvB1y4dLglWJBj8TMR8Pc1ba1oQxl7b6y83h+9WJiC+77KAFsoIj2YvwBHx5vU08XqUk9pqCQ9tpXW8v98tcFe/PsFCDDkWI1tM8sBPYJm3UkVtXYGWd5tKLSnr8NnycCaHdkp8WMoNSnI0EmZq1zeeHyOjtCxbV0bNUgX3uiasshKsWnxXHhYrSwU9L9t/++R6/n0N/xMtzHldTrK+2UHHJ+cJizz/dgVQvTPdgi0wRLMtmhyg5ZWv7C/scAVt4gmpCqTIOKsVkcc42qph7lBEyLsZ6IH60jcIWBxyqPW456+gewiKaYBsbmkaq8YPKSoLDV6qQdyiWwliqqeNkVon219qA7enNEa1YKe723wRTCwJko6NiK6EBE8gL1NLEoWUL/O2oKPcq7Kc+J2aed0O3FJxbgf6u7sqxOiD81dewngBCa6KZ0FHjhBQMh22deOGCTm3tLrwkmMEh78OTYL1ouLXtQuXzAmheM= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(346002)(136003)(396003)(451199015)(40470700004)(36840700001)(46966006)(426003)(478600001)(82740400003)(81166007)(356005)(41300700001)(47076005)(1076003)(316002)(54906003)(86362001)(2616005)(40460700003)(16526019)(336012)(70586007)(40480700001)(26005)(186003)(7696005)(82310400005)(36756003)(70206006)(5660300002)(36860700001)(2906002)(6666004)(2876002)(8676002)(6916009)(4326008)(8936002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2023 06:03:42.6117 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01fce770-70bf-411e-fa84-08daf52bec89 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT026.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5396 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang BZ# 4231 In V2: Address the typos. This patch adds a NULL instance of IpmiCommandLib to remove the dependence between edk2 and edk2-platform packages. Signed-off-by: Abner Chang Cc: Jian J Wang Cc: Liming Gao Cc: Nickle Wang Cc: Igor Kulchytskyy Cc: Isaac Oram Cc: Nate DeSimone Abner Chang (3): MdeModulePkg/Include: Add IpmiCommandLib header file MdeModulePkg/IpmiCommandLib: Add NULL instance library MdeModulePkg: Add IpmiCommandLib MdeModulePkg/MdeModulePkg.dec | 5 + MdeModulePkg/MdeModulePkg.dsc | 3 + .../BaseIpmiCommandLibNull.inf | 34 + MdeModulePkg/Include/Library/IpmiCommandLib.h | 683 ++++++++++++++++++ .../IpmiCommandLibNetFnApp.c | 252 +++++++ .../IpmiCommandLibNetFnChassis.c | 123 ++++ .../IpmiCommandLibNetFnStorage.c | 248 +++++++ .../IpmiCommandLibNetFnTransport.c | 100 +++ 8 files changed, 1448 insertions(+) create mode 100644 MdeModulePkg/Library/BaseIpmiCommandLibNull/BaseIpmiCom= mandLibNull.inf create mode 100644 MdeModulePkg/Include/Library/IpmiCommandLib.h create mode 100644 MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommand= LibNetFnApp.c create mode 100644 MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommand= LibNetFnChassis.c create mode 100644 MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommand= LibNetFnStorage.c create mode 100644 MdeModulePkg/Library/BaseIpmiCommandLibNull/IpmiCommand= LibNetFnTransport.c --=20 2.37.1.windows.1