MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_pci_host_bridge_remove

Function rt_pci_host_bridge_remove

components/drivers/pci/probe.c:845–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845rt_err_t rt_pci_host_bridge_remove(struct rt_pci_host_bridge *host_bridge)
846{
847 rt_err_t err = RT_EOK;
848
849 if (host_bridge && host_bridge->root_bus)
850 {
851 rt_pci_enum_device(host_bridge->root_bus, pci_remove_bus_device, RT_NULL);
852 host_bridge->root_bus = RT_NULL;
853 }
854 else
855 {
856 err = -RT_EINVAL;
857 }
858
859 return err;
860}
861
862rt_err_t rt_pci_bus_remove(struct rt_pci_bus *bus)
863{

Callers 2

pci_host_common_removeFunction · 0.85
dw_platform_pcie_removeFunction · 0.85

Calls 1

rt_pci_enum_deviceFunction · 0.85

Tested by

no test coverage detected