From: Jie Zhou Date: Tue, 29 Jun 2021 20:50:16 +0000 (-0700) Subject: eal/windows: add device event stubs X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3d2fcb0e0aec;p=dpdk.git eal/windows: add device event stubs Add device event stubs in eal_dev.c for Windows Signed-off-by: Jie Zhou Acked-by: Tal Shnaiderman Acked-by: Dmitry Kozlyuk --- 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',