pci: Add MSI capability structure

In order to support use cases that require MSI, the pci crate is
being expanded with the description of an MSI PCI capability
structure through the new MsiCap Rust structure.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-07-16 22:01:32 -07:00
parent 72007f016a
commit ee39e46568
2 changed files with 155 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ extern crate vmm_sys_util;
mod bus;
mod configuration;
mod device;
mod msi;
mod msix;
pub use self::bus::{PciConfigIo, PciConfigMmio, PciRoot, PciRootError};
@@ -24,6 +25,7 @@ pub use self::configuration::{
pub use self::device::{
Error as PciDeviceError, InterruptDelivery, InterruptParameters, PciDevice,
};
pub use self::msi::MsiCap;
pub use self::msix::{MsixCap, MsixConfig, MsixTableEntry, MSIX_TABLE_ENTRY_SIZE};
/// PCI has four interrupt pins A->D.