Skip to content

Commit

Permalink
feat(virtio-spec/pci): add IsrStatus
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Jun 2, 2024
1 parent 148cfe8 commit 7f86dce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions virtio-spec/src/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,14 @@ impl_wide_field_access! {
queue_device: queue_device_low, queue_device_high;
}
}

virtio_bitflags! {
/// ISR Status
pub struct IsrStatus: u8 {
/// Queue Interrupt
const QUEUE_INTERRUPT = 1 << 0;

/// Device Configuration Interrupt
const DEVICE_CONFIGURATION_INTERRUPT = 1 << 1;
}
}

0 comments on commit 7f86dce

Please sign in to comment.