1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.
10 #include <rte_bus_pci.h>
12 #define SYSFS_PCI_DEVICES "/sys/bus/pci/devices"
13 #define PROC_MODULES "/proc/modules"
15 int ccp_check_pci_uio_module(void);
17 int ccp_parse_pci_addr_format(const char *buf, int bufsize, uint16_t *domain,
18 uint8_t *bus, uint8_t *devid, uint8_t *function);
20 int ccp_pci_parse_sysfs_value(const char *filename, unsigned long *val);
22 int ccp_pci_parse_sysfs_resource(const char *filename,
23 struct rte_pci_device *dev);
25 int ccp_find_uio_devname(const char *dirname);
27 #endif /* _CCP_PCI_H_ */