From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 694E4A0A0C; Tue, 29 Jun 2021 22:50:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DCA934121C; Tue, 29 Jun 2021 22:50:31 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id DAA70411F3; Tue, 29 Jun 2021 22:50:26 +0200 (CEST) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 3BFF620B6C14; Tue, 29 Jun 2021 13:50:26 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3BFF620B6C14 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1624999826; bh=GUDdNQFLYGL92GIxkshJd4B2iM5cIKWiG3vyemqtdG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FJ6SOvlWrAHrXAsVZY9yh8cEhD+OtHIydLId7dj5d93QyGkxDezLOrzJM7CM2nSBT JzbmazBpGye1Xtx4yZQkchBj3h3RBtNeC3F2gfmZllJ8lDitFJMcN1wc3ixDPiNYQ5 CRD9NmykhH/0VBqGxNPX1T0KSxO+HqQQz41/63Qk= From: Jie Zhou To: dev@dpdk.org Cc: dmitry.kozliuk@gmail.com, xiaoyun.li@intel.com, roretzla@microsoft.com, talshn@nvidia.com, pallavi.kadam@intel.com, andrew.rybchenko@oktetlabs.ru, thomas@monjalon.net, bruce.richardson@intel.com, ferruh.yigit@intel.com, konstantin.ananyev@intel.com, stable@dpdk.org Date: Tue, 29 Jun 2021 13:50:16 -0700 Message-Id: <1624999822-16149-4-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1624999822-16149-1-git-send-email-jizh@linux.microsoft.com> References: <1624998226-12220-1-git-send-email-jizh@linux.microsoft.com> <1624999822-16149-1-git-send-email-jizh@linux.microsoft.com> Subject: [dpdk-dev] [PATCH v16 3/9] eal/windows: add device event stubs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add device event stubs in eal_dev.c for Windows Signed-off-by: Jie Zhou Acked-by: Tal Shnaiderman Acked-by: Dmitry Kozlyuk --- lib/eal/windows/eal_dev.c | 33 +++++++++++++++++++++++++++++++++ lib/eal/windows/meson.build | 1 + 2 files changed, 34 insertions(+) create mode 100644 lib/eal/windows/eal_dev.c diff --git a/lib/eal/windows/eal_dev.c b/lib/eal/windows/eal_dev.c new file mode 100644 index 0000000000..35191056fd --- /dev/null +++ b/lib/eal/windows/eal_dev.c @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2021 Microsoft Corporation + */ + +#include + +int +rte_dev_event_monitor_start(void) +{ + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); + return -1; +} + +int +rte_dev_event_monitor_stop(void) +{ + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); + return -1; +} + +int +rte_dev_hotplug_handle_enable(void) +{ + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); + return -1; +} + +int +rte_dev_hotplug_handle_disable(void) +{ + RTE_LOG(ERR, EAL, "Device event is not supported for Windows\n"); + return -1; +} diff --git a/lib/eal/windows/meson.build b/lib/eal/windows/meson.build index ff9cbec417..fc12fefd0d 100644 --- a/lib/eal/windows/meson.build +++ b/lib/eal/windows/meson.build @@ -7,6 +7,7 @@ sources += files( 'eal.c', 'eal_alarm.c', 'eal_debug.c', + 'eal_dev.c', 'eal_file.c', 'eal_hugepages.c', 'eal_interrupts.c', -- 2.31.0.vfs.0.1