Orion
Barry Importing existing Orion kernel d41a53c (2 years, 4 months ago)diff --git a/drivers/pci.h b/drivers/pci.h new file mode 100644 index 0000000..44b65ae --- /dev/null +++ b/drivers/pci.h @@ -0,0 +1,11 @@ +#ifndef KERNEL_PCI_H +#define KERNEL_PCI_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); + +#endif