Skip to content

Commit

Permalink
pci
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzhuzhus committed Sep 14, 2024
1 parent 2f94cc0 commit 61b9fd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions components/drivers/include/drivers/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ const struct rt_pci_device_id *rt_pci_match_ids(struct rt_pci_device *pdev,

rt_err_t rt_pci_driver_register(struct rt_pci_driver *pdrv);
rt_err_t rt_pci_device_register(struct rt_pci_device *pdev);
rt_ubase_t rt_pci_get_addr(struct rt_pci_device* pdev,rt_ubase_t flags);

#define RT_PCI_DRIVER_EXPORT(driver) RT_DRIVER_EXPORT(driver, pci, BUILIN)

Expand Down
3 changes: 0 additions & 3 deletions components/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,6 @@ rt_ubase_t rt_pci_get_addr(struct rt_pci_device *pdev, rt_ubase_t flags)
{
for (int i = 0; i < RT_PCI_BAR_NR_MAX; i++)
{
if (!pdev->resource[i].base)
break;

if (pdev->resource[i].flags == flags)
return pdev->resource[i].base;
}
Expand Down

0 comments on commit 61b9fd6

Please sign in to comment.