summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorzhuzhuzhu <[email protected]>2024-10-05 14:30:52 +0800
committerGitHub <[email protected]>2024-10-05 02:30:52 -0400
commitef426851ea3cc4aaf2beda8862cc0e0953cf4b6c (patch)
treea823fd7e578b139abc989e6ea7ff77528b78becd /components/drivers/include
parentb9c3bdf7ebea45bae93de107495baca532be85c0 (diff)
[feat] add pci api,the pci/pcie driver
add pci api,the pci/pcie driver writer can use this to get resource of current device with flag,there are three flag : 1. PCI_BUS_REGION_F_MEM it mean memory space 2. PCI_BUS_REGION_F_IO it mean io space 3. PCI_BUS_REGION_F_PREFETCH it mean prefetchable memory
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/pci.h b/components/drivers/include/drivers/pci.h
index a44e1bbdcc..1ae439351c 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_find_bar(struct rt_pci_device* pdev,rt_ubase_t flags,int index);
#define RT_PCI_DRIVER_EXPORT(driver) RT_DRIVER_EXPORT(driver, pci, BUILIN)
extern struct rt_spinlock rt_pci_lock;