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 37e99d9 commit 488065b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/drivers/include/drivers/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +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);
struct rt_pci_bus_resource *rt_pci_get_addr(struct rt_pci_device* pdev,rt_ubase_t flags);
struct rt_pci_bus_resource *rt_pci_find_bar(struct rt_pci_device* pdev,rt_ubase_t flags);

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

Expand Down
2 changes: 1 addition & 1 deletion components/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ rt_err_t rt_pci_device_alloc_resource(struct rt_pci_host_bridge *host_bridge,
return err;
}

struct rt_pci_bus_resource *rt_pci_get_addr(struct rt_pci_device* pdev,rt_ubase_t flags)
struct rt_pci_bus_resource *rt_pci_find_bar(struct rt_pci_device* pdev,rt_ubase_t flags)
{
for (int i = 0; i < RT_PCI_BAR_NR_MAX; i++)
{
Expand Down

0 comments on commit 488065b

Please sign in to comment.