summaryrefslogtreecommitdiffstats
path: root/src/vlib/pci/pci.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-03-04 17:37:15 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-04 18:32:21 +0000
commit2060db832a9b77345e6beb9a4dd5b18e8f9427cf (patch)
tree01f269072eb54e9b228675d918b24012d7fd31c1 /src/vlib/pci/pci.h
parent44bcc20fcfaa572f500c8acf1b94dda7d3f5151c (diff)
vlib: map pci region by using vfio FD when vfio is used
Change-Id: Ib94e9e9e9fcdad9cdb0e3402b3de7d78bd644abe Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/pci/pci.h')
-rw-r--r--src/vlib/pci/pci.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vlib/pci/pci.h b/src/vlib/pci/pci.h
index e1bc4172e8b..cf69de49976 100644
--- a/src/vlib/pci/pci.h
+++ b/src/vlib/pci/pci.h
@@ -245,12 +245,12 @@ vlib_pci_bus_master_enable (vlib_pci_dev_handle_t h)
return vlib_pci_write_config_u16 (h, 4, &command);
}
-clib_error_t *vlib_pci_map_resource (vlib_pci_dev_handle_t h, u32 resource,
- void **result);
+clib_error_t *vlib_pci_map_region (vlib_pci_dev_handle_t h, u32 resource,
+ void **result);
-clib_error_t *vlib_pci_map_resource_fixed (vlib_pci_dev_handle_t h,
- u32 resource, u8 * addr,
- void **result);
+clib_error_t *vlib_pci_map_region_fixed (vlib_pci_dev_handle_t h,
+ u32 resource, u8 * addr,
+ void **result);
unformat_function_t unformat_vlib_pci_addr;
format_function_t format_vlib_pci_addr;