Introduce a FullDeviceId type and pass it in pcid_interface

This commit is contained in:
bjorn3
2024-01-21 15:18:56 +01:00
parent 92914e808c
commit 1890293e86
11 changed files with 72 additions and 96 deletions
+3 -5
View File
@@ -9,7 +9,7 @@ use thiserror::Error;
pub use crate::pci::cap::Capability;
pub use crate::pci::msi;
pub use crate::pci::{PciAddress, PciBar, PciHeader};
pub use crate::pci::{FullDeviceId, PciAddress, PciBar, PciHeader};
pub mod irq_helpers;
@@ -45,10 +45,8 @@ pub struct PciFunction {
/// Legacy interrupt pin (INTx#), none if INTx# interrupts aren't supported at all.
pub legacy_interrupt_pin: Option<LegacyInterruptPin>,
/// Vendor ID
pub venid: u16,
/// Device ID
pub devid: u16,
/// All identifying information of the PCI function.
pub full_device_id: FullDeviceId,
}
impl PciFunction {
pub fn name(&self) -> String {