MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_pci_iomap

Function rt_pci_iomap

components/drivers/include/drivers/pci.h:463–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461#endif /* RT_USING_OFW */
462
463rt_inline void *rt_pci_iomap(struct rt_pci_device *pdev, int bar_idx)
464{
465 struct rt_pci_bus_resource *res = &pdev->resource[bar_idx];
466
467 RT_ASSERT(bar_idx < RT_ARRAY_SIZE(pdev->resource));
468
469 return rt_ioremap((void *)res->base, res->size);
470}
471
472rt_uint8_t rt_pci_irq_intx(struct rt_pci_device *pdev, rt_uint8_t pin);
473rt_uint8_t rt_pci_irq_slot(struct rt_pci_device *pdev, rt_uint8_t *pinp);

Callers 3

i6300esb_wdt_probeFunction · 0.85
pci_nvme_probeFunction · 0.85
pci_ahci_probeFunction · 0.85

Calls 1

rt_ioremapFunction · 0.85

Tested by

no test coverage detected