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

Function rt_pci_device_register

components/drivers/pci/pci.c:908–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908rt_err_t rt_pci_device_register(struct rt_pci_device *pdev)
909{
910 rt_err_t err;
911 RT_ASSERT(pdev != RT_NULL);
912
913 if ((err = rt_bus_add_device(&pci_bus, &pdev->parent)))
914 {
915 return err;
916 }
917
918 return RT_EOK;
919}
920
921static rt_bool_t pci_match(rt_driver_t drv, rt_device_t dev)
922{

Callers 1

Calls 1

rt_bus_add_deviceFunction · 0.85

Tested by

no test coverage detected