X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_pci.h;h=223d3cd29cae94a095032ea50feaa29d63cfa0f2;hb=d6a9090d48146a2c2cabf5fe66ef1d1db885abc0;hp=62449d709f3a84f1a178b6b91ba082132bd98c18;hpb=6065355a03fc743234d4c11fc8e17093bf072617;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 62449d709f..223d3cd29c 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -292,7 +292,8 @@ eal_parse_pci_DomBDF(const char *input, struct rte_pci_addr *dev_addr) * Negative on addr is less than addr2, or error. */ static inline int -rte_eal_compare_pci_addr(struct rte_pci_addr *addr, struct rte_pci_addr *addr2) +rte_eal_compare_pci_addr(const struct rte_pci_addr *addr, + const struct rte_pci_addr *addr2) { uint64_t dev_addr, dev_addr2; @@ -348,7 +349,7 @@ int rte_eal_pci_probe(void); * - 0 on success. * - Negative on error. */ -int rte_eal_pci_probe_one(struct rte_pci_addr *addr); +int rte_eal_pci_probe_one(const struct rte_pci_addr *addr); /** * Close the single PCI device. @@ -363,7 +364,7 @@ int rte_eal_pci_probe_one(struct rte_pci_addr *addr); * - 0 on success. * - Negative on error. */ -int rte_eal_pci_close_one(struct rte_pci_addr *addr); +int rte_eal_pci_close_one(const struct rte_pci_addr *addr); #endif /* RTE_LIBRTE_EAL_HOTPLUG */ /**