From 488065bb672e72b10aa3e2d9bf6ccad758e95b32 Mon Sep 17 00:00:00 2001 From: zhujiale <945386260@qq.com> Date: Sat, 14 Sep 2024 15:37:29 +0800 Subject: [PATCH] pci --- components/drivers/include/drivers/pci.h | 2 +- components/drivers/pci/pci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drivers/include/drivers/pci.h b/components/drivers/include/drivers/pci.h index fd0558bb72f7..9590e4bade7f 100644 --- a/components/drivers/include/drivers/pci.h +++ b/components/drivers/include/drivers/pci.h @@ -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) diff --git a/components/drivers/pci/pci.c b/components/drivers/pci/pci.c index ca5a4abe9db9..7063d2824fa6 100644 --- a/components/drivers/pci/pci.c +++ b/components/drivers/pci/pci.c @@ -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++) {