From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [62.140.7.102]) by mx.groups.io with SMTP id smtpd.web10.14122.1593576337268223442 for ; Tue, 30 Jun 2020 21:05:37 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: suse.com, ip: 62.140.7.102, mailfrom: glin@suse.com) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02lp2050.outbound.protection.outlook.com [104.47.4.50]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-24-sfU8uiZsNUOt2G0-2ZDX8w-1; Wed, 01 Jul 2020 06:05:32 +0200 X-MC-Unique: sfU8uiZsNUOt2G0-2ZDX8w-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cg2vdx4oriqVgA0aSLPTquGaroClbcPkwRExBRy5mpzO3daz5Nbyf4W1cyyMPx4V7wKqzQ+1Te8ScnjSFTK7INpYf129K+2ye2azOyg94fMyV4oQYdcToixlqVp87MSNbyWi0dr3JB0OLHnxZl2aALOidZi2bzIEIh1imhjxa7rGqdra4Z93QnBLcGveIQwlCr5sytMW2h+uollxlU1nSY0JUGcX7RkrpEIOuvdmuhN48YRtJK6Lb0nVAxlhvbDlvI+WE59HEwlxHc5DG4qeYIP231J8owzkfOtuD/Qu3ZffsEkjBTXoQIaXjOU96O5PvOir6spRWBy1rLk4D72yug== 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=s8IbTNOWavjw2y13p829pA+2qKKFcYY/FaIzZU+CDv8=; b=OhBdjSHMEPSGiusiET92o8IwvV2DhHO7Hv3vLoYe+ztohq8ch8vdiBHrspZNUujy5uCj6yptWxeDlA8iLHNyQSlKcH4B7mvkwx0Rd10kzQmqd+buRwoJSJWxYSvp4orccnwhcgz7efOMP8Oghz8g0g1btq4kn7yvtQtUiEAsN/v+h68GxaXh9/XngjgaVWfJvwS7cSeIYuGgY710nyfMeRhM/AS+/lJdrNbECpTKKljOz6Mko3Lz7GM319hqS+DX09di7Jtnfv5Sw3evVINXMPqRout3Ap8xARFsJkLAJdkX3emIo/5Z5sbdmPDAn/49CneLBAjULNCWTH/7JSDKKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=suse.com; Received: from AM0PR0402MB3809.eurprd04.prod.outlook.com (2603:10a6:208:10::30) by AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Wed, 1 Jul 2020 04:05:32 +0000 Received: from AM0PR0402MB3809.eurprd04.prod.outlook.com ([fe80::8806:715f:1409:8c6b]) by AM0PR0402MB3809.eurprd04.prod.outlook.com ([fe80::8806:715f:1409:8c6b%7]) with mapi id 15.20.3153.021; Wed, 1 Jul 2020 04:05:32 +0000 From: "Gary Lin" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel Subject: [PATCH 01/11] OvmfPkg/LsiScsiDxe: Create the empty driver Date: Wed, 1 Jul 2020 12:04:38 +0800 Message-Id: <20200701040448.14871-2-glin@suse.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200701040448.14871-1-glin@suse.com> References: <20200701040448.14871-1-glin@suse.com> X-ClientProxiedBy: AM0PR10CA0047.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::27) To AM0PR0402MB3809.eurprd04.prod.outlook.com (2603:10a6:208:10::30) Return-Path: glin@suse.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from GaryWorkstation.suse.cz (60.251.47.115) by AM0PR10CA0047.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21 via Frontend Transport; Wed, 1 Jul 2020 04:05:30 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [60.251.47.115] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a802cae7-2619-4260-6fcd-08d81d73ff8a X-MS-TrafficTypeDiagnostic: AM0PR04MB4481: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 04519BA941 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: anZjmUrwCHOZsUnch2SlBwAn1Pxz67hx6hbu7LokQAM/P2nLREzkuZD+ASMiiBIoQ4gRgkWSq9SFgSHbWQ9hiD2NRZuqmg4ATbMN//XO7Cc3X3isldtQyWo2qvTDwQ7zUl5HmtLHspYRrAqwkmBYbq5dGBAhL9K42vZbn5ZGIVFZUd5rbQTyPJzO+yif5BeIHvydj9F/lcGedf9mH4SKewSqhabhScM/Hf6S/4jFDnFYp1EbYLl/9wrSAEFYzdVE+msWZICl3lkgo5b0ysTHC1Kp3/IcLc7/RpxxUKFh0ksvDzem72PfpT+EZAMMPiv8rll7Jg2ig7mstqb+gH6rCQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR0402MB3809.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(366004)(136003)(376002)(39860400002)(396003)(346002)(2616005)(83380400001)(26005)(54906003)(4326008)(16526019)(1076003)(956004)(86362001)(19627235002)(6506007)(186003)(66476007)(66556008)(8936002)(6486002)(52116002)(6916009)(5660300002)(8676002)(36756003)(66946007)(55236004)(316002)(6512007)(478600001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 67D8lr598D2kjFyqMQK6y9kJudXlmk5ju99n5ETmmeIKdah77axyF+AvSZUQqrTzJOpy9HjlcMQwPRXoQYq9CbfYSaaN9W9+ugUCMiJcJlI2lL212BndsARwhqSnXnTPYKHZiq28XFw6BJBaHNf+XyBaw8bU3TUQOTkhrcVmFu5vvfpB+W+WVvhMaYrimzpdhGz0XLi8QmaT8rkmci7KLlvot3RaKpW+8PxOWkd0BgqXti76xyblebvz/9TuOZqOkxeP5ggeKEjAtwMh9wc9RxP3L22/1hhZjcAoBjuPgugV+xmurw2jyfOy6S2Uk8PNAOYHDBI+U8wfhJN4tTjTCRC0pDFm6pV+p1UG5n3mtMpI+0W3CJ3OmGheAa1+ECowTceFgeVjDA6I/sbX7sQTnpQaQQL5FxDohV6UtFKDzEtZ4ruZ9+FwEHh+RrZHv3GcjH7gU41QI+wfjDU0E6RYvPk68o5dVvPDLFTXVp92MR0= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: a802cae7-2619-4260-6fcd-08d81d73ff8a X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3809.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2020 04:05:32.2060 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XM0h7wI8a2xqIUbh43NaP2mc8aafbtt+K/OTq5Yfs+oRfa6VUcErCVnWW1y8aR9Q X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4481 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Create the driver with only a dummy LsiScsiEntryPoint() for the further implementation of the driver for LSI 53C895A SCSI controller. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Gary Lin --- OvmfPkg/LsiScsiDxe/LsiScsi.c | 25 +++++++++++++++++++++++++ OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf | 26 ++++++++++++++++++++++++++ OvmfPkg/OvmfPkgIa32.dsc | 4 ++++ OvmfPkg/OvmfPkgIa32.fdf | 3 +++ OvmfPkg/OvmfPkgIa32X64.dsc | 4 ++++ OvmfPkg/OvmfPkgIa32X64.fdf | 3 +++ OvmfPkg/OvmfPkgX64.dsc | 4 ++++ OvmfPkg/OvmfPkgX64.fdf | 3 +++ 8 files changed, 72 insertions(+) create mode 100644 OvmfPkg/LsiScsiDxe/LsiScsi.c create mode 100644 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf diff --git a/OvmfPkg/LsiScsiDxe/LsiScsi.c b/OvmfPkg/LsiScsiDxe/LsiScsi.c new file mode 100644 index 000000000000..9c90941688ed --- /dev/null +++ b/OvmfPkg/LsiScsiDxe/LsiScsi.c @@ -0,0 +1,25 @@ +/** @file=0D +=0D + This driver produces Extended SCSI Pass Thru Protocol instances for=0D + LSI 53C895A SCSI devices.=0D +=0D + Copyright (C) 2020, SUSE LLC.=0D +=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#include =0D +=0D +//=0D +// Entry point of this driver=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +LsiScsiEntryPoint (=0D + IN EFI_HANDLE ImageHandle,=0D + IN EFI_SYSTEM_TABLE *SystemTable=0D + )=0D +{=0D + return EFI_UNSUPPORTED;=0D +}=0D diff --git a/OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf b/OvmfPkg/LsiScsiDxe/LsiScsi= Dxe.inf new file mode 100644 index 000000000000..55b483c2fa20 --- /dev/null +++ b/OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf @@ -0,0 +1,26 @@ +## @file=0D +# This driver produces Extended SCSI Pass Thru Protocol instances for=0D +# LSI 53C895A SCSI devices.=0D +#=0D +# Copyright (C) 2020, SUSE LLC.=0D +#=0D +# SPDX-License-Identifier: BSD-2-Clause-Patent=0D +#=0D +##=0D +=0D +[Defines]=0D + INF_VERSION =3D 1.29=0D + BASE_NAME =3D LsiScsiDxe=0D + FILE_GUID =3D EB4EB21f-5A3D-40BE-8BD2-F1B0E38E5744= =0D + MODULE_TYPE =3D UEFI_DRIVER=0D + VERSION_STRING =3D 1.0=0D + ENTRY_POINT =3D LsiScsiEntryPoint=0D +=0D +[Sources]=0D + LsiScsi.c=0D +=0D +[Packages]=0D + MdePkg/MdePkg.dec=0D +=0D +[LibraryClasses]=0D + UefiDriverEntryPoint=0D diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index b4ee7376791b..9178ffeb71cb 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -50,6 +50,7 @@ [Defines] #=0D DEFINE PVSCSI_ENABLE =3D TRUE=0D DEFINE MPT_SCSI_ENABLE =3D TRUE=0D + DEFINE LSI_SCSI_ENABLE =3D FALSE=0D =0D #=0D # Flash size selection. Setting FD_SIZE_IN_KB on the command line direct= ly to=0D @@ -771,6 +772,9 @@ [Components] !endif=0D !if $(MPT_SCSI_ENABLE) =3D=3D TRUE=0D OvmfPkg/MptScsiDxe/MptScsiDxe.inf=0D +!endif=0D +!if $(LSI_SCSI_ENABLE) =3D=3D TRUE=0D + OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf=0D !endif=0D MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf=0D MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntim= eDxe.inf=0D diff --git a/OvmfPkg/OvmfPkgIa32.fdf b/OvmfPkg/OvmfPkgIa32.fdf index e2b759aa8d05..2b9a6b58015f 100644 --- a/OvmfPkg/OvmfPkgIa32.fdf +++ b/OvmfPkg/OvmfPkgIa32.fdf @@ -236,6 +236,9 @@ [FV.DXEFV] !if $(MPT_SCSI_ENABLE) =3D=3D TRUE=0D INF OvmfPkg/MptScsiDxe/MptScsiDxe.inf=0D !endif=0D +!if $(LSI_SCSI_ENABLE) =3D=3D TRUE=0D +INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf=0D +!endif=0D =0D !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE=0D INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootCon= figDxe.inf=0D diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index ed68b080f2a2..a665f78f0dc7 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -49,6 +49,7 @@ [Defines] #=0D DEFINE PVSCSI_ENABLE =3D TRUE=0D DEFINE MPT_SCSI_ENABLE =3D TRUE=0D + DEFINE LSI_SCSI_ENABLE =3D FALSE=0D =0D #=0D # Flash size selection. Setting FD_SIZE_IN_KB on the command line direct= ly to=0D @@ -785,6 +786,9 @@ [Components.X64] !endif=0D !if $(MPT_SCSI_ENABLE) =3D=3D TRUE=0D OvmfPkg/MptScsiDxe/MptScsiDxe.inf=0D +!endif=0D +!if $(LSI_SCSI_ENABLE) =3D=3D TRUE=0D + OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf=0D !endif=0D MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf=0D MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntim= eDxe.inf=0D diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf index bfca1eff9e83..83ff6aef2e8c 100644 --- a/OvmfPkg/OvmfPkgIa32X64.fdf +++ b/OvmfPkg/OvmfPkgIa32X64.fdf @@ -237,6 +237,9 @@ [FV.DXEFV] !if $(MPT_SCSI_ENABLE) =3D=3D TRUE=0D INF OvmfPkg/MptScsiDxe/MptScsiDxe.inf=0D !endif=0D +!if $(LSI_SCSI_ENABLE) =3D=3D TRUE=0D +INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf=0D +!endif=0D =0D !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE=0D INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootCon= figDxe.inf=0D diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index cb7e8068a3d8..17f345acf4ee 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -49,6 +49,7 @@ [Defines] #=0D DEFINE PVSCSI_ENABLE =3D TRUE=0D DEFINE MPT_SCSI_ENABLE =3D TRUE=0D + DEFINE LSI_SCSI_ENABLE =3D FALSE=0D =0D #=0D # Flash size selection. Setting FD_SIZE_IN_KB on the command line direct= ly to=0D @@ -781,6 +782,9 @@ [Components] !endif=0D !if $(MPT_SCSI_ENABLE) =3D=3D TRUE=0D OvmfPkg/MptScsiDxe/MptScsiDxe.inf=0D +!endif=0D +!if $(LSI_SCSI_ENABLE) =3D=3D TRUE=0D + OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf=0D !endif=0D MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf=0D MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntim= eDxe.inf=0D diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf index bfca1eff9e83..83ff6aef2e8c 100644 --- a/OvmfPkg/OvmfPkgX64.fdf +++ b/OvmfPkg/OvmfPkgX64.fdf @@ -237,6 +237,9 @@ [FV.DXEFV] !if $(MPT_SCSI_ENABLE) =3D=3D TRUE=0D INF OvmfPkg/MptScsiDxe/MptScsiDxe.inf=0D !endif=0D +!if $(LSI_SCSI_ENABLE) =3D=3D TRUE=0D +INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf=0D +!endif=0D =0D !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE=0D INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootCon= figDxe.inf=0D --=20 2.25.1