Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / i386 / apic-msidef.h
blob420b41167dbea7182aa9ce36e0dcb2525c07b433
1 #ifndef HW_APIC_MSIDEF_H
2 #define HW_APIC_MSIDEF_H
4 /*
5 * Intel APIC constants: from include/asm/msidef.h
6 */
8 /*
9 * Shifts for MSI data
12 #define MSI_DATA_VECTOR_SHIFT 0
13 #define MSI_DATA_VECTOR_MASK 0x000000ff
15 #define MSI_DATA_DELIVERY_MODE_SHIFT 8
16 #define MSI_DATA_LEVEL_SHIFT 14
17 #define MSI_DATA_TRIGGER_SHIFT 15
20 * Shift/mask fields for msi address
23 #define MSI_ADDR_DEST_MODE_SHIFT 2
25 #define MSI_ADDR_REDIRECTION_SHIFT 3
27 #define MSI_ADDR_DEST_ID_SHIFT 12
28 #define MSI_ADDR_DEST_IDX_SHIFT 4
29 #define MSI_ADDR_DEST_ID_MASK 0x000ff000
31 #endif /* HW_APIC_MSIDEF_H */