From 7f86dce86c9347dfa76bfb06ea184e5ac17fe153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Sun, 2 Jun 2024 11:16:04 +0200 Subject: [PATCH] feat(virtio-spec/pci): add `IsrStatus` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- virtio-spec/src/pci.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/virtio-spec/src/pci.rs b/virtio-spec/src/pci.rs index f361bee7ff..b486f4fb7d 100644 --- a/virtio-spec/src/pci.rs +++ b/virtio-spec/src/pci.rs @@ -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; + } +}