| 41 | } |
| 42 | |
| 43 | static rt_err_t host_bridge_pm_suspend(const struct rt_device *device, rt_uint8_t mode) |
| 44 | { |
| 45 | struct host_bridge_pm_status status; |
| 46 | struct rt_pci_device *pdev = rt_container_of(device, struct rt_pci_device, parent); |
| 47 | |
| 48 | status.mode = mode; |
| 49 | status.enable = RT_FALSE; |
| 50 | rt_pci_enum_device(pdev->bus, pci_device_pm_ops, &status); |
| 51 | |
| 52 | return RT_EOK; |
| 53 | } |
| 54 | |
| 55 | static void host_bridge_pm_resume(const struct rt_device *device, rt_uint8_t mode) |
| 56 | { |
nothing calls this directly
no test coverage detected