summaryrefslogtreecommitdiff
path: root/drivers/bus/pci/private.h
AgeCommit message (Collapse)Author
2018-10-15bus/pci: support hot-unplug handlerJeff Guo
This patch implements the ops to handle hot-unplug on the PCI bus. For UIO PCI, it could avoids BARs read/write errors by creating a new dummy memory to remap the memory where the failure is. For VFIO or other kernel driver, it could specific implement function to handle hot-unplug case by case. Signed-off-by: Jeff Guo <jia.guo@intel.com> Acked-by: Shaopeng He <shaopeng.he@intel.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2018-10-11eal: add bus pointer in device structureThomas Monjalon
When a device is added with a devargs (hotplug or whitelist), the bus pointer can be retrieved via its devargs. But there is no such devargs.bus in case of standard scan. A pointer to the rte_bus handle is added to rte_device. When a device is allocated (during a scan), the pointer to its bus is assigned. It will make possible to remove a rte_device, using the function pointer from its bus. The function rte_bus_find_by_device() becomes useless, and may be removed later. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
2018-10-03bus/pci: implement device iterationGaetan Rivet
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2018-06-27bus/pci: remove unused function to detach by addressRami Rosen
The function rte_pci_detach() is private to PCI and is not used anywhere in current code base. Remove dead code. Signed-off-by: Rami Rosen <rami.rosen@intel.com>
2018-06-27bus/pci: remove unused function to probe by addressStephen Hemminger
The function rte_pci_probe_one is private to PCI and is not used anywhere in current code base. Remove dead code. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2018-06-27bus/pci: remove unused unbind function prototypeStephen Hemminger
Prototype for pci_unbind_kernel_driver exists but no code. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2018-06-27bus/pci: make remove function staticStephen Hemminger
Only used in one file, and therefore can be made static. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2018-02-01bus/pci: use SPDX tags in 6WIND copyrighted filesOlivier Matz
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net>
2017-10-26pci: introduce library and driverGaetan Rivet
The PCI lib defines the types and methods allowing to use PCI elements. The PCI bus implements a bus driver for PCI devices by constructing rte_bus elements using the PCI lib. Move the relevant code out of the EAL to its expected place. Libraries, drivers, unit tests and applications are updated to use the new rte_bus_pci.h header when necessary. Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>