interrupt: Use a single closure to describe pin based and MSI-X

In order to factorize the complexity brought by closures, this commit
merges IrqClosure and MsixClosure into a generic InterruptDelivery one.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-06-05 09:53:24 -07:00
committed by Rob Bradford
parent 8df05b72dc
commit 47a4065aaf
4 changed files with 58 additions and 33 deletions

View File

@@ -21,7 +21,7 @@ pub use self::configuration::{
PciSubclass,
};
pub use self::device::Error as PciDeviceError;
pub use self::device::{IrqClosure, MsixClosure, PciDevice};
pub use self::device::{InterruptDelivery, InterruptParameters, PciDevice};
pub use self::msix::{MsixCap, MsixConfig, MsixTableEntry};
pub use self::root::{PciConfigIo, PciConfigMmio, PciRoot, PciRootError};