aboutsummaryrefslogtreecommitdiff
path: root/sys/include/dev
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-02 23:06:29 -0400
committerIan Moffett <ian@osmora.org>2024-06-02 23:06:29 -0400
commit614ffa927eb7acb1c1fb31f5186f5e3d4b1bca74 (patch)
tree6801e3bad0fd1a69667ead466d65704029e1763b /sys/include/dev
parentea4f3cfceb3e3f926a517ab0bb2373c8f4152671 (diff)
kernel: pci: Add PCI BAR mapping routine
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev')
-rw-r--r--sys/include/dev/pci/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/dev/pci/pci.h b/sys/include/dev/pci/pci.h
index ad3f7ac..dbbd7ce 100644
--- a/sys/include/dev/pci/pci.h
+++ b/sys/include/dev/pci/pci.h
@@ -77,6 +77,7 @@ int pci_init(void);
uint32_t pci_readl(struct pci_device *dev, uint32_t offset);
void pci_writel(struct pci_device *dev, uint32_t offset, uint32_t val);
void pci_set_cmdreg(struct pci_device *dev, uint16_t bits);
+int pci_map_bar(struct pci_device *dev, uint8_t bar, void **vap);
struct pci_device *pci_get_device(struct pci_lookup lookup, uint16_t lookup_type);
#endif /* !_DEV_PCI_H_ */