From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [51.163.158.102]) by mx.groups.io with SMTP id smtpd.web11.10936.1594885593286974675 for ; Thu, 16 Jul 2020 00:46:33 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=bWsxX5OV; spf=pass (domain: suse.com, ip: 51.163.158.102, mailfrom: glin@suse.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1594885590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UXkAlq2lc0R9VRlqWjE2WabjihusdkTwSssnGBc97ok=; b=bWsxX5OV/9tRcgkMtRqwYqmR4gTB1MXRtWIJ+mhAgoe+oA9X7ayvn42xD+fSykA5IsgImk CCI1OwY1CAtXH2VHlhLXklwRid3N5NDJRz/4XaRE9DKxoY602ZnJ9qEQvnm5KOtBPaZ7xh Kjo4E13x6nqpt3l5T55H8dgPv4mVkdY= Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04lp2057.outbound.protection.outlook.com [104.47.14.57]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-25-cQYpMdPSOpOOmHQVQzXR4A-2; Thu, 16 Jul 2020 09:46:28 +0200 X-MC-Unique: cQYpMdPSOpOOmHQVQzXR4A-2 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XNdu7M3VZS5EMYCghBIj9gT61FgDDIQ0ym5LwayVfQe2ANztAtN1XP+KdPbY86+UVJjBMrvkj3HIKhtZ0cjcmTkHwY2lhKHaV77jKqLfqUU/17a6m5aR1/Ncq0L34dGK51EpgPYtRAiqFyzWGkf2Y3Lc+/BJKRICAmlymvWRG5ixOccbFwiwKNuCwWTun641LWIHSpUtm3WslKCHC4Y+dh+O7hljlLKQCsalz0siGW7R2WgTr1vELzWEKlqituhzOwJGj4nlc5rrAP6NbdSdhYuA6Hyal6isDrS4lkoRiPkVZzpZD+Mmg/Ildd4Y5XS/dlLm2W53op6Fp0/PilGSmg== 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=UXkAlq2lc0R9VRlqWjE2WabjihusdkTwSssnGBc97ok=; b=a3bE/RaFF2rbS53Nt3pGLp5AZzylACoe51wbLEJ3Zbl95H049Wi0j1ERcl7klxKRhbQ6vkMJ3bshx/xhFbmE690TE9uGWYjEfyjLtEAOma+cqM2C+tg47UMKfWXNJS23RBKaFBVQsagZuWRXYeyDBMyI+81p1riUW1/L7t35Z/mBFB/YFLcDZAvwYCNwoxyNz4wX/9CBJ96eFPpGvch17gozlHK9wX+meD065AGJQQPqKVo4+mWNrBHzuvP7/sRrdN8kMIIVAUvSCn31AVslznpy5qW1F5sux5ccTwGuFsQPpXsSwtitSPNUqscO0yLULp1Lkx7S81jKIJPfOrQxtw== 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 AM0PR04MB5122.eurprd04.prod.outlook.com (2603:10a6:208:ca::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.25; Thu, 16 Jul 2020 07:46:27 +0000 Received: from AM0PR0402MB3809.eurprd04.prod.outlook.com ([fe80::a14c:d441:c8a9:77ba]) by AM0PR0402MB3809.eurprd04.prod.outlook.com ([fe80::a14c:d441:c8a9:77ba%6]) with mapi id 15.20.3174.026; Thu, 16 Jul 2020 07:46:27 +0000 From: "Gary Lin" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel Subject: [PATCH v2 01/12] OvmfPkg/LsiScsiDxe: Create the empty driver Date: Thu, 16 Jul 2020 15:45:56 +0800 Message-Id: <20200716074607.18048-2-glin@suse.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200716074607.18048-1-glin@suse.com> References: <20200716074607.18048-1-glin@suse.com> X-ClientProxiedBy: AM3PR07CA0118.eurprd07.prod.outlook.com (2603:10a6:207:7::28) 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 AM3PR07CA0118.eurprd07.prod.outlook.com (2603:10a6:207:7::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Thu, 16 Jul 2020 07:46:25 +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: 66576a17-3fca-4b3c-b6ad-08d8295c585b X-MS-TrafficTypeDiagnostic: AM0PR04MB5122: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /7gwgRj2iiicKBS0CCgM/KA7BDorLB0C+5DeJIQIkNSKnGsY8KryNOXrU1qCmqB1LkSRqCZTPOs6XZkm1vW8sDJL6QaPtjJEVe27xA4kIvht/AsygeQStdhNLdk7Hx6P+22JCWZ+4o8FxdQuJOjxqviKd/6S6WJuuuSq7+weGFTb+xgIgRKrq4A23WdA9Q2PI9M858nVtFb3tSBW/cJskaxWD+leo0MnlPoYavET+iumYgwebiLWuSnRxwpVfihYE/ZD6lM3Y2aP0YwwEg5UdzwK4ULkIbRE+HgCtzV+knjwcs4ltDrFtQxvDL/VbcarxYEW6GYcUe3VUqjSRYxHBg== 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:(376002)(396003)(366004)(39860400002)(346002)(136003)(19627235002)(55236004)(6506007)(4326008)(8936002)(6512007)(86362001)(83380400001)(8676002)(6486002)(1076003)(52116002)(6916009)(36756003)(66946007)(66556008)(956004)(478600001)(5660300002)(6666004)(26005)(2616005)(316002)(54906003)(66476007)(16526019)(2906002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: BsAybVZnXXj+mUKtVfFBT1zO4Ws+9oh/ms4TFWZWsI1u5yZZ2b9Aqq08ky0woXyA0tr7Z01F7c0ILHhNU0CSefxxj01yu6hEDfN6+ADpq1J8qZ8uPlMtFRCtVUc61D7xPP8WqcEYdgU+vrtCBzMJid1ma6ypqHMN1AhFVF1SrkoRIDbZa7n+XdHkm+1yZJaUWgw2ZOFacX6sHccwwKYDuuqLQKBaXNfwWLAQQKkqO81Q0NJwH7gXXoXTnIO0pdDgodvS1kUVy82Be2pfG4zKGZeuWgD7iVLjgJbZhOc0H5OX7f8gOr5gw6YodiKQXQyQgsigDeYErsdKeAzZ3oViowlTp9Ozdxo9u5Q1840wmpq5kk6cQSEKsuvX9IahESscyCjHuUmf0mrCYY6u2AnjY+6PCidsZYc5XSq50pP7kOIMwpoueOOYvwnj2Wu8/XsW6eYKJMdFuSmZho9RI+aVlnDcoGodYMsGF62mVPC0J3o= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66576a17-3fca-4b3c-b6ad-08d8295c585b X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3809.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2020 07:46:27.4337 (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: J7HxxF7OBFF1W7qPB/c4B6Rc9ZMwjRnuGQIrSk6Vu8dDYu20AfryImoYdM3gJNHe X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5122 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. v2: Fix the mixed-case GUID string Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Signed-off-by: Gary Lin Reviewed-by: Laszlo Ersek --- 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..8b6dccaff3eb --- /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