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
+2 -4
View File
@@ -57,10 +57,8 @@ pub struct PciFunction {
/// Legacy IRQ line: It's the responsibility of pcid to make sure that it be mapped in either
/// the I/O APIC or the 8259 PIC, so that the subdriver can map the interrupt vector directly.
/// The vector to map is always this field, plus 32.
pub legacy_interrupt_line: u8,
/// Legacy interrupt pin (INTx#), none if INTx# interrupts aren't supported at all.
pub legacy_interrupt_pin: Option<LegacyInterruptPin>,
/// If INTx# interrupts aren't supported at all this is `None`.
pub legacy_interrupt_line: Option<u8>,
/// All identifying information of the PCI function.
pub full_device_id: FullDeviceId,