pci: change messages to debug prints

this also disables interrupts during ISRs
This commit is contained in:
Michael Shaw 2023-05-04 16:25:07 -04:00
commit ce430f490d
3 changed files with 48 additions and 8 deletions

View file

@ -7,6 +7,18 @@
#define PCIPM_CONFIG_ADDRESS 0xCF8
#define PCIPM_CONFIG_DATA 0xCFC
struct pci_device {
uint8_t bus;
uint8_t slot;
uint8_t class;
uint8_t subclass;
uint16_t vendor_id;
uint16_t device_id;
};
void pci_init();
uint16_t pci_config_read_word(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset);