Files
novaos/kernel/include/kernel/x86/pci.h

17 lines
324 B
C

#include <stdint.h>
#ifndef ARCH_PCI_H
#define ARCH_PCI_H
#define PCI_CONFIG_ADDRESS (0xCF8)
#define PCI_CONFIG_DATA (0xCFC)
uint16_t pci_config_read_word(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset);
uint16_t pci_check_vendor(uint8_t bus, uint8_t slot, uint8_t func);
void check_all_busses(void);
#endif