aboutsummaryrefslogtreecommitdiff
path: root/sys/include/dev/pci/pci.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-28 19:51:03 -0400
committerIan Moffett <ian@osmora.org>2024-03-28 19:51:03 -0400
commitae126e0e427f4a5b82ecc9c096c524d45088a430 (patch)
treefedfe0ffe997486732cd4accc5dd9f069c3dfd01 /sys/include/dev/pci/pci.h
parent4fc22f9295061d17e11828af625d9f92aabfb4a5 (diff)
kernel: pci: Add command register helpers
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/pci/pci.h')
-rw-r--r--sys/include/dev/pci/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/dev/pci/pci.h b/sys/include/dev/pci/pci.h
index fbbbeab..66ecb91 100644
--- a/sys/include/dev/pci/pci.h
+++ b/sys/include/dev/pci/pci.h
@@ -33,6 +33,7 @@
#include <sys/syscall.h>
#include <sys/queue.h>
#include <sys/cdefs.h>
+#include <dev/pci/pciregs.h>
/* Lookup bits */
#define PCI_DEVICE_ID __BIT(0)
@@ -66,6 +67,7 @@ struct pci_device {
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);
struct pci_device *pci_get_device(struct pci_lookup lookup, uint16_t lookup_type);
#endif /* !_DEV_PCI_H_ */