From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.61]) by mx.groups.io with SMTP id smtpd.web11.175711.1672203601883543420 for ; Tue, 27 Dec 2022 21:00:02 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=DUKwYw4+; 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.93.61, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gdebsjTIsjchA/F5XGKwUDTwSELj3xMBey19wP2ky62BbRrlEh7/8rl6AsoFGsCCHJgTnkHs2L+I6F0VDyj7xZAJ/JfT30jL/0VQR28yo4yfTHsY2zb5Ismh3XKmbqt1XYEqU57e7g1a1OnPn3AFVjbT5A8/nQam2V9XgdKnKTuYktvA2yB+G62DRxB3B6OabzL0xrwvtgqcijsL7NJZeFWxAR71T8A/bM5pLSrV4vQ1+vEC+DyOpCFiWXLNVj7oKqeX+Hra6kicVb2Sm3/gN04DAURroLqPaYCEz9v43bMKahCrxoRnMSx/gPckThM4XOZ76nlkQlJGeSK265X0jg== 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=pB1IZn+OIP57SOzg3QkIZp36Z07vXoqdWr5xVQRH5Ak=; b=gQSnplUkiAmEhRfCVp5Rj9Ji7qdNP1vfcWOUyA7fmtgR9qaoPV1Fyc1ZgyFDj+7/ATTBGzqMOHmeUYhwv32qZLNVDkPsrcfZfvisR3N9NxG5yRF1ons3A+lWxxJiU9W1piwG3fzsd0fMaBBxUfshyaYDLULbaFCY4IIY6uH6rICiUQXDPEurJECqNpbymM9c2qzUiITKGKK/CfKB3HSgGqSBGkYqlF85ja1DiRXD0qabbl+uyuqFJo4qXzV3LdtqENAi5XmNVRxBtS442eMsS94Ot3Doj0b9hpFWP9tMvFeyYQliTO390l4UyuPkg1wZK6s7YxShMy9K0rmThEXShA== 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=pB1IZn+OIP57SOzg3QkIZp36Z07vXoqdWr5xVQRH5Ak=; b=DUKwYw4+osn5VAybIRwtek82Ocu2B5s4uCi4o8UVraJsg+KqnOXvgio5dflc1+goxum0z/44wlgobksePz400g2ZuFxxClHpqY2+tT1152pv7qBsXJytXiPmTj7pQIrj2u60xogfhcZ+0joTZJimIH+RnyDWR10Z6gFqKaYv2+k= Received: from BN9PR03CA0211.namprd03.prod.outlook.com (2603:10b6:408:f8::6) by BN9PR12MB5084.namprd12.prod.outlook.com (2603:10b6:408:135::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.16; Wed, 28 Dec 2022 05:00:00 +0000 Received: from BN8NAM11FT060.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f8:cafe::59) by BN9PR03CA0211.outlook.office365.com (2603:10b6:408:f8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.17 via Frontend Transport; Wed, 28 Dec 2022 04:59:59 +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 BN8NAM11FT060.mail.protection.outlook.com (10.13.177.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5966.17 via Frontend Transport; Wed, 28 Dec 2022 04:59:59 +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; Tue, 27 Dec 2022 22:59:57 -0600 From: "Chang, Abner" To: CC: Jian J Wang , Liming Gao , Nickle Wang , Igor Kulchytskyy , Isaac Oram , Nate DeSimone Subject: [PATCH 0/3] Add NULL IpmiCommandLib instance Date: Wed, 28 Dec 2022 12:59:09 +0800 Message-ID: <20221228045912.1677-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: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT060:EE_|BN9PR12MB5084:EE_ X-MS-Office365-Filtering-Correlation-Id: 056087d9-be02-4412-89bf-08dae8905f57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O3hiahewKkr/tyzejs9Lo541rHe/vPwUDy+vGU0ecR4gEn72rM3dv9EbbSv1uppcp31Jc6nGtNE7cXu7PdWLDjVB0aBzmm6WTvjwEPUHXT2EkbViEymamVNZThZ3qraF3c4WZV1sF3Kh1DVKBEg/MS/tcSVU0otKabMo4VZuSefXNtPMp2MW0N0yrIL1xw0FbNebqYJAGuAHBEfPW3w+y58QQ02R2hMIi5Md+igBnHRjgrGkIiqLBJzrRzNo8R53QKIOaCYQN4Md2f8VNj6xwZR04yfBGyxR8V9az+/ysnMAt+czKP0WKHlMCao8UAB7g6PFiOSsyE3QjvEEsx/eYq5YTiJ+607+ySnpSOJ90FucfuSaUJwwAv89NDd47u7SRm3Ssn4AuKVGGx2+FZpjTOoEHADHfemprX9iHYT5hPu3Mzyt31R+6gwJb8D2GDWLhpHYv9tzJkq1ygP2dQ4gVeTIhWld/YE2dAAENM90AGL7WEkJTdO8QkYzDW2TGqlaiH2ZkNQ5Jy+Io8dg9qyoePsyGuD0fPe1lYQ5SU3lJrgIwsJa5nHFOq+98nGpWRNRrD+aM9tn4V1HCkkmD3AdFFW/tfDEsR7G5RPeYxDCb6+lV/q8c3jQc7bJFaS5nL8C2738wvERoQzTa3Q1R9IxrQkqCZhADa/MEOhiusi4azqZ+M96ovfBgLjHR003g6xgPFuFhirfpbSKXoAZRzd7Vy7q5bZOWKmc2k+m3Y+GrtI= 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)(39860400002)(396003)(136003)(376002)(346002)(451199015)(40470700004)(36840700001)(46966006)(36756003)(40480700001)(86362001)(26005)(40460700003)(7696005)(186003)(478600001)(16526019)(41300700001)(6666004)(4326008)(8936002)(8676002)(70586007)(5660300002)(70206006)(2876002)(6916009)(2906002)(316002)(54906003)(36860700001)(82310400005)(356005)(82740400003)(2616005)(426003)(336012)(1076003)(47076005)(81166007)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Dec 2022 04:59:59.8541 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 056087d9-be02-4412-89bf-08dae8905f57 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: BN8NAM11FT060.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5084 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang BZ# 4231 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 | 4 + MdeModulePkg/MdeModulePkg.dsc | 2 + .../BaseIpmiCommandLibNull.inf | 32 + MdeModulePkg/Include/Library/IpmiCommandLib.h | 683 ++++++++++++++++++ .../IpmiCommandLibNetFnApp.c | 252 +++++++ .../IpmiCommandLibNetFnChassis.c | 123 ++++ .../IpmiCommandLibNetFnStorage.c | 248 +++++++ .../IpmiCommandLibNetFnTransport.c | 100 +++ 8 files changed, 1444 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