Kernel: Cleanup PCI code

This commit is contained in:
Bananymous 2024-02-02 03:16:37 +02:00
parent ec2f21bb9f
commit 4b332b5d42
1 changed files with 3 additions and 3 deletions

View File

@ -250,7 +250,7 @@ namespace Kernel::PCI
device.write_word(PCI_REG_COMMAND, command); device.write_word(PCI_REG_COMMAND, command);
#if DEBUG_PCI #if DEBUG_PCI
dprintln("created BAR region for PCI {}:{}.{}", dprintln("created BAR region for PCI {2H}:{2H}.{2H}",
device.bus(), device.bus(),
device.dev(), device.dev(),
device.func() device.func()
@ -484,12 +484,12 @@ namespace Kernel::PCI
return {}; return {};
} }
static uint64_t msi_message_address() static constexpr uint64_t msi_message_address()
{ {
return 0xFEE00000; return 0xFEE00000;
} }
static uint32_t msi_message_data(uint8_t irq) static constexpr uint32_t msi_message_data(uint8_t irq)
{ {
return (IRQ_VECTOR_BASE + irq) & 0xFF; return (IRQ_VECTOR_BASE + irq) & 0xFF;
} }