eal/windows: introduce Windows support
[dpdk.git] / lib / librte_eal / windows / eal / eal_lcore.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5 #include <rte_common.h>
6
7  /* Get the cpu core id value */
8 unsigned int
9 eal_cpu_core_id(unsigned int lcore_id)
10 {
11         /* TODO */
12         /* This is a stub, not the expected result */
13         return lcore_id;
14 }
15
16 /* Check if a cpu is present by the presence of the cpu information for it */
17 int
18 eal_cpu_detected(unsigned int lcore_id __rte_unused)
19 {
20         /* TODO */
21         /* This is a stub, not the expected result */
22         return 1;
23 }
24
25 /* Get CPU socket id (NUMA node) for a logical core */
26 unsigned int
27 eal_cpu_socket_id(unsigned int cpu_id __rte_unused)
28 {
29         /* TODO */
30         /* This is a stub, not the expected result */
31         return 0;
32 }