pub fn probe_and_enable(pci_dev: &PciDevice, prefer_msix: bool) -> (u8, u8)Expand description
Probe a PCI device and enable the best available interrupt mode.
Priority: MSI-X => MSI => INTx (legacy I/O APIC routing).
vector is the IDT vector to associate with the interrupt
(typically PIC1_OFFSET + irq for legacy IRQs, or a free vector
for MSI/MSI-X).
Returns (irq_line, vector) suitable for register_nic_irq().
When MSI/MSI-X is active the irq_line value is only used for EOI
in the no-APIC fallback path (which MSI requires APIC, so the value
is cosmetic).