From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smic.int.bsdio.com (smic.int.bsdio.com [65.103.231.193]) by mx.groups.io with SMTP id smtpd.web11.796.1586992283516328041 for ; Wed, 15 Apr 2020 16:11:23 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: smic.int.bsdio.com, ip: 65.103.231.193, mailfrom: bcran@smic.int.bsdio.com) Received: from smic.int.bsdio.com (localhost [127.0.0.1]) by smic.int.bsdio.com (8.15.2/8.15.2) with ESMTPS id 03FNA50h052393 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 15 Apr 2020 17:10:05 -0600 (MDT) (envelope-from bcran@smic.int.bsdio.com) Received: (from bcran@localhost) by smic.int.bsdio.com (8.15.2/8.15.2/Submit) id 03FNA5FN052035; Wed, 15 Apr 2020 17:10:05 -0600 (MDT) (envelope-from bcran) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Rebecca Cran Subject: [PATCH 03/13] BhyvePkg: Add BhyveFwCtlLibNull Date: Wed, 15 Apr 2020 17:09:29 -0600 Message-Id: X-Mailer: git-send-email 2.26.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Add a null implementation of BhyveFwCtlLib, to support building AcpiPlatformDxe for Qemu/Xen. Signed-off-by: Rebecca Cran --- .../BhyveFwCtlLibNull/BhyveFwCtlLibNull.c | 53 +++++++++++++++++++ .../BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf | 39 ++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.c create mode 100644 BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf diff --git a/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.c b/Bhyve= Pkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.c new file mode 100644 index 0000000000..f040119d34 --- /dev/null +++ b/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.c @@ -0,0 +1,53 @@ +/** @file=0D +=0D + Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.
=0D + Copyright (C) 2013, Red Hat, Inc.=0D + Copyright (c) 2015, Nahanni Systems.=0D +=0D + This program and the accompanying materials=0D + are licensed and made available under the terms and conditions of the BS= D License=0D + which accompanies this distribution. The full text of the license may b= e found at=0D + http://opensource.org/licenses/bsd-license.php=0D +=0D + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,=0D + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED.=0D +=0D +**/=0D +=0D +#include "Uefi.h"=0D +#include =0D +#include =0D +#include =0D +#include =0D +#include =0D +#include =0D +#include =0D +=0D +=0D +/**=0D + Front end to the internal GET_LEN and GET protocols=0D + **/=0D +RETURN_STATUS=0D +EFIAPI=0D +BhyveFwCtlGet (=0D + IN CONST CHAR8 *Name,=0D + OUT VOID *Item,=0D + IN OUT UINTN *Size=0D + )=0D +{=0D + return RETURN_UNSUPPORTED;=0D +}=0D +=0D +=0D +/**=0D + Library initialization. Probe the host to see if the f/w ctl=0D + interface is supported.=0D + **/=0D +RETURN_STATUS=0D +EFIAPI=0D +BhyveFwCtlInitialize (=0D + VOID=0D + )=0D +{=0D + return RETURN_SUCCESS;=0D +}=0D diff --git a/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf b/Bhy= vePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf new file mode 100644 index 0000000000..143dd536d6 --- /dev/null +++ b/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf @@ -0,0 +1,39 @@ +## @file=0D +#=0D +# Copyright (C) 2015 Nahanni Systems=0D +# Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
= =0D +#=0D +# This program and the accompanying materials=0D +# are licensed and made available under the terms and conditions of the B= SD License=0D +# which accompanies this distribution. The full text of the license may b= e found at=0D +# http://opensource.org/licenses/bsd-license.php=0D +#=0D +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,=0D +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED.=0D +#=0D +##=0D +=0D +[Defines]=0D + INF_VERSION =3D 0x00010005=0D + BASE_NAME =3D BhyveFwCtlLibNull=0D + FILE_GUID =3D D391FFD6-95FA-4143-9F15-F41076F11A05= =0D + MODULE_TYPE =3D BASE=0D + VERSION_STRING =3D 1.0=0D + LIBRARY_CLASS =3D BhyveFwCtlLib|PEIM DXE_DRIVER DXE_RUN= TIME_DRIVER=0D +=0D + CONSTRUCTOR =3D BhyveFwCtlInitialize=0D +=0D +#=0D +# The following information is for reference only and not required by the = build tools.=0D +#=0D +# VALID_ARCHITECTURES =3D X64=0D +#=0D +=0D +[Sources]=0D + BhyveFwCtlLibNull.c=0D +=0D +[Packages]=0D + MdePkg/MdePkg.dec=0D + BhyvePkg/BhyvePkg.dec=0D +=0D +=0D --=20 2.26.1