summaryrefslogtreecommitdiff
path: root/sys/include/dev
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-09 15:26:23 -0400
committerIan Moffett <ian@osmora.org>2024-07-09 15:26:23 -0400
commit2f8d9d7e548770be05a2f53c27f802a60de5172e (patch)
tree339805eab3e97a1ba4bd19a7891cfa51f78ae9da /sys/include/dev
parent72505d2af3a818bff5bd0ec7c712997f96417b03 (diff)
kernel/amd64: pci: Add function to map BARs
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 3d37b05..3340e1a 100644
--- a/sys/include/dev/pci/pci.h
+++ b/sys/include/dev/pci/pci.h
@@ -67,6 +67,7 @@ struct pci_device {
pcireg_t pci_readl(struct pci_device *dev, uint32_t offset);
struct pci_device *pci_get_device(struct pci_lookup lookup, uint16_t lookup_type);
+int pci_map_bar(struct pci_device *dev, uint8_t barno, void **vap);
void pci_writel(struct pci_device *dev, uint32_t offset, pcireg_t val);
int pci_init(void);