1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2020 Mellanox Technologies, Ltd
7 #include <rte_string_fns.h>
8 #include <rte_eal_memconfig.h>
12 /* The functions below are not implemented on Windows,
13 * but need to be defined for compilation purposes
18 rte_pci_map_device(struct rte_pci_device *dev __rte_unused)
20 /* This function is not implemented on Windows.
21 * We really should short-circuit the call to these functions by
22 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
23 * in the rte_pci_driver flags.
28 /* Unmap pci device */
30 rte_pci_unmap_device(struct rte_pci_device *dev __rte_unused)
32 /* This function is not implemented on Windows.
33 * We really should short-circuit the call to these functions by
34 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
35 * in the rte_pci_driver flags.
40 pci_update_device(const struct rte_pci_addr *addr __rte_unused)
42 /* This function is not implemented on Windows.
43 * We really should short-circuit the call to these functions by
44 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
45 * in the rte_pci_driver flags.
50 /* Read PCI config space. */
52 rte_pci_read_config(const struct rte_pci_device *dev __rte_unused,
53 void *buf __rte_unused, size_t len __rte_unused,
54 off_t offset __rte_unused)
56 /* This function is not implemented on Windows.
57 * We really should short-circuit the call to these functions by
58 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
59 * in the rte_pci_driver flags.
64 /* Write PCI config space. */
66 rte_pci_write_config(const struct rte_pci_device *dev __rte_unused,
67 const void *buf __rte_unused, size_t len __rte_unused,
68 off_t offset __rte_unused)
70 /* This function is not implemented on Windows.
71 * We really should short-circuit the call to these functions by
72 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
73 * in the rte_pci_driver flags.
79 pci_device_iova_mode(const struct rte_pci_driver *pdrv __rte_unused,
80 const struct rte_pci_device *pdev __rte_unused)
82 /* This function is not implemented on Windows.
83 * We really should short-circuit the call to these functions by
84 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
85 * in the rte_pci_driver flags.
91 rte_pci_ioport_map(struct rte_pci_device *dev __rte_unused,
92 int bar __rte_unused, struct rte_pci_ioport *p __rte_unused)
94 /* This function is not implemented on Windows.
95 * We really should short-circuit the call to these functions by
96 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
97 * in the rte_pci_driver flags.
104 rte_pci_ioport_read(struct rte_pci_ioport *p __rte_unused,
105 void *data __rte_unused, size_t len __rte_unused,
106 off_t offset __rte_unused)
108 /* This function is not implemented on Windows.
109 * We really should short-circuit the call to these functions by
110 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
111 * in the rte_pci_driver flags.
116 rte_pci_ioport_unmap(struct rte_pci_ioport *p __rte_unused)
118 /* This function is not implemented on Windows.
119 * We really should short-circuit the call to these functions by
120 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
121 * in the rte_pci_driver flags.
127 pci_device_iommu_support_va(const struct rte_pci_device *dev __rte_unused)
129 /* This function is not implemented on Windows.
130 * We really should short-circuit the call to these functions by
131 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
132 * in the rte_pci_driver flags.
138 rte_pci_ioport_write(struct rte_pci_ioport *p __rte_unused,
139 const void *data __rte_unused, size_t len __rte_unused,
140 off_t offset __rte_unused)
142 /* This function is not implemented on Windows.
143 * We really should short-circuit the call to these functions by
144 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
145 * in the rte_pci_driver flags.
150 /* remap the PCI resource of a PCI device in anonymous virtual memory */
152 pci_uio_remap_resource(struct rte_pci_device *dev __rte_unused)
154 /* This function is not implemented on Windows.
155 * We really should short-circuit the call to these functions by
156 * clearing the RTE_PCI_DRV_NEED_MAPPING flag
157 * in the rte_pci_driver flags.
162 * Scan the contents of the PCI bus
163 * and add all network class devices into the devices list.