1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use crateResult;
/// IRQ number type.
pub type Irq = u32;
/// Global System Interrupt number type.
pub type Gsi = u32;
/// Maximum number of IRQs.
pub const MAX_IRQS: u32 = 256;
/// Maximum number of GSIs (typically matches IOAPIC entries + legacy PICs).
pub const MAX_GSIS: u32 = 24;
/// Interrupt trigger mode.
/// IRQ configuration for a single interrupt line.
/// Callback type for triggering interrupts on the hypervisor.
///
/// The callback receives (gsi, level) where level is true for assert.
pub type IrqTriggerCallback = ;