summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6065355)
probe and close both don't modify the rte_pci_addr structure
that is passed.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
* the driver of the devive.
*/
int
* the driver of the devive.
*/
int
-rte_eal_pci_probe_one(struct rte_pci_addr *addr)
+rte_eal_pci_probe_one(const struct rte_pci_addr *addr)
{
struct rte_pci_device *dev = NULL;
int ret = 0;
{
struct rte_pci_device *dev = NULL;
int ret = 0;
* the driver of the devive.
*/
int
* the driver of the devive.
*/
int
-rte_eal_pci_close_one(struct rte_pci_addr *addr)
+rte_eal_pci_close_one(const struct rte_pci_addr *addr)
{
struct rte_pci_device *dev = NULL;
int ret = 0;
{
struct rte_pci_device *dev = NULL;
int ret = 0;
* Negative on addr is less than addr2, or error.
*/
static inline int
* 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;
{
uint64_t dev_addr, dev_addr2;
* - 0 on success.
* - Negative on error.
*/
* - 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.
/**
* Close the single PCI device.
* - 0 on success.
* - Negative on error.
*/
* - 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 */
/**
#endif /* RTE_LIBRTE_EAL_HOTPLUG */
/**