MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_pci_map_device

Function rte_pci_map_device

dpdk/drivers/bus/pci/bsd/pci.c:51–70  ·  view source on GitHub ↗

Map pci device */

Source from the content-addressed store, hash-verified

49
50/* Map pci device */
51int
52rte_pci_map_device(struct rte_pci_device *dev)
53{
54 int ret = -1;
55
56 /* try mapping the NIC resources */
57 switch (dev->kdrv) {
58 case RTE_PCI_KDRV_NIC_UIO:
59 /* map resources for devices that use uio */
60 ret = pci_uio_map_resource(dev);
61 break;
62 default:
63 RTE_LOG(DEBUG, EAL,
64 " Not managed by a supported kernel driver, skipped\n");
65 ret = 1;
66 break;
67 }
68
69 return ret;
70}
71
72/* Unmap pci device */
73void

Callers 7

virtio_read_capsFunction · 0.50
virtio_remap_pciFunction · 0.50
virtio_read_capsFunction · 0.50
nfp_vdpa_vfio_setupFunction · 0.50
ifcvf_vfio_setupFunction · 0.50
sfc_vdpa_vfio_setupFunction · 0.50
rte_pci_probe_one_driverFunction · 0.50

Calls 1

pci_uio_map_resourceFunction · 0.85

Tested by

no test coverage detected