1@@ -68,60 +68,6 @@ void rte_pci_unmap_device(struct rte_pci_device *dev); 2 */ 3 void rte_pci_dump(FILE *f); 4 5-/** 6- * Check whether this device has a PCI capability list. 7- * 8- * @param dev 9- * A pointer to rte_pci_device structure. 10- * 11- * @return 12- * true/false 13- */ 14-__rte_experimental 15-bool rte_pci_has_capability_list(const struct rte_pci_device *dev); 16- 17-/** 18- * Find device's PCI capability. 19- * 20- * @param dev 21- * A pointer to rte_pci_device structure. 22- * 23- * @param cap 24- * Capability to be found, which can be any from 25- * RTE_PCI_CAP_ID_*, defined in librte_pci. 26- * 27- * @return 28- * > 0: The offset of the next matching capability structure 29- * within the device's PCI configuration space. 30- * < 0: An error in PCI config space read. 31- * = 0: Device does not support it. 32- */ 33-__rte_experimental 34-off_t rte_pci_find_capability(const struct rte_pci_device *dev, uint8_t cap); 35- 36-/** 37- * Find device's PCI capability starting from a previous offset in PCI 38- * configuration space. 39- * 40- * @param dev 41- * A pointer to rte_pci_device structure. 42- * 43- * @param cap 44- * Capability to be found, which can be any from 45- * RTE_PCI_CAP_ID_*, defined in librte_pci. 46- * @param offset 47- * An offset in the PCI configuration space from which the capability is 48- * looked for. 49- * 50- * @return 51- * > 0: The offset of the next matching capability structure 52- * within the device's PCI configuration space. 53- * < 0: An error in PCI config space read. 54- * = 0: Device does not support it. 55- */ 56-__rte_experimental 57-off_t rte_pci_find_next_capability(const struct rte_pci_device *dev, uint8_t cap, off_t offset); 58- 59 /** 60 * Find device's extended PCI capability. 61 * 62@@ -139,7 +85,7 @@ off_t rte_pci_find_next_capability(const struct rte_pci_device *dev, uint8_t cap 63 * = 0: Device does not support it. 64 */ 65 __rte_experimental 66-off_t rte_pci_find_ext_capability(const struct rte_pci_device *dev, uint32_t cap); 67+off_t rte_pci_find_ext_capability(struct rte_pci_device *dev, uint32_t cap); 68 69 /** 70 * Enables/Disables Bus Master for device's PCI command register. 71@@ -153,7 +99,7 @@ off_t rte_pci_find_ext_capability(const struct rte_pci_device *dev, uint32_t cap 72 * 0 on success, -1 on error in PCI config space read/write. 73 */ 74 __rte_experimental 75-int rte_pci_set_bus_master(const struct rte_pci_device *dev, bool enable); 76+int rte_pci_set_bus_master(struct rte_pci_device *dev, bool enable); 77 78 /** 79 * Read PCI config space. 80@@ -189,54 +135,6 @@ int rte_pci_read_config(const struct rte_pci_device *device, 81 int rte_pci_write_config(const struct rte_pci_device *device, 82 const void *buf, size_t len, off_t offset); 83 84-/** 85- * @warning 86- * @b EXPERIMENTAL: this API may change without prior notice. 87- * 88- * Read from a MMIO PCI resource. 89- * 90- * @param device 91- * A pointer to a rte_pci_device structure describing the device 92- * to use. 93- * @param bar 94- * Index of the IO PCI resource we want to access. 95- * @param buf 96- * A data buffer where the bytes should be read into. 97- * @param len 98- * The length of the data buffer. 99- * @param offset 100- * The offset into MMIO space described by @bar. 101- * @return 102- * Number of bytes read on success, negative on error. 103- */ 104-__rte_experimental 105-int rte_pci_mmio_read(const struct rte_pci_device *device, int bar, 106- void *buf, size_t len, off_t offset); 107- 108-/** 109- * @warning 110- * @b EXPERIMENTAL: this API may change without prior notice. 111- * 112- * Write to a MMIO PCI resource. 113- * 114- * @param device 115- * A pointer to a rte_pci_device structure describing the device 116- * to use. 117- * @param bar 118- * Index of the IO PCI resource we want to access. 119- * @param buf 120- * A data buffer containing the bytes should be written. 121- * @param len 122- * The length of the data buffer. 123- * @param offset 124- * The offset into MMIO space described by @bar. 125- * @return 126- * Number of bytes written on success, negative on error. 127- */ 128-__rte_experimental 129-int rte_pci_mmio_write(const struct rte_pci_device *device, int bar, 130- const void *buf, size_t len, off_t offset); 131- 132 /** 133 * Initialize a rte_pci_ioport object for a pci device io resource. 134 * 135