BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 53a772a74dcbec1afdda913da790696f3c78bc4b / kernel / pci / pci.h

// Related

Nucleus

Barry ACPI DSDT + PCI 53a772a (3 years, 3 months ago)
diff --git a/kernel/pci/pci.h b/kernel/pci/pci.h
new file mode 100644
index 0000000..b61dec3
--- /dev/null
+++ b/kernel/pci/pci.h
@@ -0,0 +1,15 @@
+#ifndef KERNEL_PCI_H
+#define KERNEL_PCI_H
+
+#include <stdint.h>
+
+uint8_t pci_read_byte(int bus, int dev, int func, int off);
+uint16_t pci_read_word(int bus, int dev, int func, int off);
+uint32_t pci_read_dword(int bus, int dev, int func, int off);
+void pci_write_byte(int bus, int dev, int func, int off, uint8_t value);
+void pci_write_word(int bus, int dev, int func, int off, uint16_t value);
+void pci_write_dword(int bus, int dev, int func, int off, uint32_t value);
+
+void init_pci(void);
+
+#endif