From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out03.mta.xmission.com (out03.mta.xmission.com [166.70.13.233]) by mx.groups.io with SMTP id smtpd.web11.1494.1587434692815409981 for ; Mon, 20 Apr 2020 19:04:52 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: bsdio.com, ip: 166.70.13.233, mailfrom: rebecca@bsdio.com) Received: from in02.mta.xmission.com ([166.70.13.52]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQiHL-0001xb-Qm; Mon, 20 Apr 2020 20:04:51 -0600 Received: from mta4.zcs.xmission.com ([166.70.13.68]) by in02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jQiHJ-00075p-FL; Mon, 20 Apr 2020 20:04:51 -0600 Received: from localhost (localhost [127.0.0.1]) by mta4.zcs.xmission.com (Postfix) with ESMTP id 4C6835003A5; Mon, 20 Apr 2020 20:04:49 -0600 (MDT) X-Amavis-Modified: Mail body modified (using disclaimer) - mta4.zcs.xmission.com Received: from mta4.zcs.xmission.com ([127.0.0.1]) by localhost (mta4.zcs.xmission.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id u29ANPNV7tMK; Mon, 20 Apr 2020 20:04:49 -0600 (MDT) Received: from photon.int.bluestop.org (muon.bluestop.org [65.103.231.193]) by mta4.zcs.xmission.com (Postfix) with ESMTPSA id D1564500324; Mon, 20 Apr 2020 20:04:48 -0600 (MDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Leif Lindholm , Michael Kinney , Andrew Fish , Rebecca Cran Date: Mon, 20 Apr 2020 20:04:35 -0600 Message-Id: <20200421020441.34175-3-rebecca@bsdio.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200421020441.34175-1-rebecca@bsdio.com> References: <20200421020441.34175-1-rebecca@bsdio.com> MIME-Version: 1.0 X-XM-SPF: eid=1jQiHJ-00075p-FL;;;mid=<20200421020441.34175-3-rebecca@bsdio.com>;;;hst=in02.mta.xmission.com;;;ip=166.70.13.68;;;frm=rebecca@bsdio.com;;;spf=pass X-SA-Exim-Connect-IP: 166.70.13.68 X-SA-Exim-Mail-From: rebecca@bsdio.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa01.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.2 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE autolearn=disabled version=3.4.2 X-Spam-Virus: No X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 1397; IP=ok Body=1 Fuz1=1] [Fuz2=1] X-Spam-DCC: XMission; sa01 1397; IP=ok Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;devel@edk2.groups.io X-Spam-Relay-Country: X-Spam-Timing: total 577 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 4.2 (0.7%), b_tie_ro: 2.9 (0.5%), parse: 1.42 (0.2%), extract_message_metadata: 16 (2.8%), get_uri_detail_list: 1.79 (0.3%), tests_pri_-1000: 19 (3.3%), tests_pri_-950: 1.46 (0.3%), tests_pri_-900: 1.10 (0.2%), tests_pri_-90: 89 (15.4%), check_bayes: 87 (15.0%), b_tokenize: 13 (2.3%), b_tok_get_all: 9 (1.5%), b_comp_prob: 2.6 (0.5%), b_tok_touch_all: 59 (10.2%), b_finish: 0.77 (0.1%), tests_pri_0: 326 (56.5%), check_dkim_signature: 0.45 (0.1%), check_dkim_adsp: 2.6 (0.5%), poll_dns_idle: 98 (17.0%), tests_pri_10: 1.73 (0.3%), tests_pri_500: 113 (19.6%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH v2 2/8] BhyvePkg: Add BhyveFwCtlLibNull X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Content-Transfer-Encoding: 8bit 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/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.c new file mode 100644 index 000000000000..f040119d34a9 --- /dev/null +++ b/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.c @@ -0,0 +1,53 @@ +/** @file + + Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.
+ Copyright (C) 2013, Red Hat, Inc. + Copyright (c) 2015, Nahanni Systems. + + This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#include "Uefi.h" +#include +#include +#include +#include +#include +#include +#include + + +/** + Front end to the internal GET_LEN and GET protocols + **/ +RETURN_STATUS +EFIAPI +BhyveFwCtlGet ( + IN CONST CHAR8 *Name, + OUT VOID *Item, + IN OUT UINTN *Size + ) +{ + return RETURN_UNSUPPORTED; +} + + +/** + Library initialization. Probe the host to see if the f/w ctl + interface is supported. + **/ +RETURN_STATUS +EFIAPI +BhyveFwCtlInitialize ( + VOID + ) +{ + return RETURN_SUCCESS; +} diff --git a/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf b/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf new file mode 100644 index 000000000000..143dd536d613 --- /dev/null +++ b/BhyvePkg/Library/BhyveFwCtlLibNull/BhyveFwCtlLibNull.inf @@ -0,0 +1,39 @@ +## @file +# +# Copyright (C) 2015 Nahanni Systems +# Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.
+# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = BhyveFwCtlLibNull + FILE_GUID = D391FFD6-95FA-4143-9F15-F41076F11A05 + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = BhyveFwCtlLib|PEIM DXE_DRIVER DXE_RUNTIME_DRIVER + + CONSTRUCTOR = BhyveFwCtlInitialize + +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = X64 +# + +[Sources] + BhyveFwCtlLibNull.c + +[Packages] + MdePkg/MdePkg.dec + BhyvePkg/BhyvePkg.dec + + -- 2.20.1