Make legacy_interrupt_line an Option

Drivers don't need to know the exact legacy_interrupt_pin in use.
Just if legacy interrupts are enabled and if so which
legacy_interrupt_line is used.
This commit is contained in:
bjorn3
2024-01-22 19:07:57 +01:00
parent e972047567
commit bd6716efe4
12 changed files with 59 additions and 87 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ fn main() {
let (bar1, _) = pci_config.func.bars[1].expect_mem();
let irq = pci_config.func.legacy_interrupt_line;
let irq = pci_config.func.legacy_interrupt_line.expect("vboxd: no legacy interrupts supported");
print!("{}", format!(" + VirtualBox {} on: {:X}, {:X}, IRQ {}\n", name, bar0, bar1, irq));