BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / e4c4dfe6cc8f70e0d4919a434e62f1d061477add / include / nucleus

// Related

Nucleus

Barry Driver core e4c4dfe (3 years, 2 months ago)
diff --git a/include/nucleus/pci.h b/include/nucleus/pci.h
new file mode 100644
index 0000000..3811908
--- /dev/null
+++ b/include/nucleus/pci.h
@@ -0,0 +1,15 @@
+#ifndef _NUCLEUS_PCI_H
+#define _NUCLEUS_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_device(int bus, int dev, int func);
+
+#endif