xref: /openbmc/qemu/include/hw/i386/apic-msidef.h (revision 2b74dd91)
1 #ifndef HW_APIC_MSIDEF_H
2 #define HW_APIC_MSIDEF_H
3 
4 /*
5  * Intel APIC constants: from include/asm/msidef.h
6  */
7 
8 /*
9  * Shifts for MSI data
10  */
11 
12 #define MSI_DATA_VECTOR_SHIFT           0
13 #define  MSI_DATA_VECTOR_MASK           0x000000ff
14 
15 #define MSI_DATA_DELIVERY_MODE_SHIFT    8
16 #define MSI_DATA_LEVEL_SHIFT            14
17 #define MSI_DATA_TRIGGER_SHIFT          15
18 
19 /*
20  * Shift/mask fields for msi address
21  */
22 
23 #define MSI_ADDR_DEST_MODE_SHIFT        2
24 
25 #define MSI_ADDR_REDIRECTION_SHIFT      3
26 
27 #define MSI_ADDR_DEST_ID_SHIFT          12
28 #define MSI_ADDR_DEST_IDX_SHIFT         4
29 #define  MSI_ADDR_DEST_ID_MASK          0x000ff000
30 
31 #endif /* HW_APIC_MSIDEF_H */
32