1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef _ASM_X86_MSI_H 3 #define _ASM_X86_MSI_H 4 #include <asm/hw_irq.h> 5 #include <asm/irqdomain.h> 6 7 typedef struct irq_alloc_info msi_alloc_info_t 8 9 int pci_msi_prepare(struct irq_domain *domain, 10 msi_alloc_info_t *arg); 11 12 /* Structs and defines for the X86 specific MS 13 14 typedef struct x86_msi_data { 15 union { 16 struct { 17 u32 vector 18 delivery_mode 19 dest_mode_logi 20 reserved 21 active_low 22 is_level 23 }; 24 u32 dmar_subhandle; 25 }; 26 } __attribute__ ((packed)) arch_msi_msg_data_t 27 #define arch_msi_msg_data x86_msi_data 28 29 typedef struct x86_msi_addr_lo { 30 union { 31 struct { 32 u32 reserved_0 33 dest_mode_logi 34 redirect_hint 35 reserved_1 36 virt_destid_8_ 37 destid_0_7 38 base_address 39 }; 40 struct { 41 u32 dmar_reserved_ 42 dmar_index_15 43 dmar_subhandle 44 dmar_format 45 dmar_index_0_1 46 dmar_base_addr 47 }; 48 }; 49 } __attribute__ ((packed)) arch_msi_msg_addr_l 50 #define arch_msi_msg_addr_lo x86_msi_addr_l 51 52 #define X86_MSI_BASE_ADDRESS_LOW (0xfee 53 54 typedef struct x86_msi_addr_hi { 55 u32 reserved : 8, 56 destid_8_31 : 24; 57 } __attribute__ ((packed)) arch_msi_msg_addr_h 58 #define arch_msi_msg_addr_hi x86_msi_addr_h 59 60 #define X86_MSI_BASE_ADDRESS_HIGH (0) 61 62 struct msi_msg; 63 u32 x86_msi_msg_get_destid(struct msi_msg *msg 64 65 #define X86_VECTOR_MSI_FLAGS_SUPPORTED 66 (MSI_GENERIC_FLAGS_MASK | MSI_FLAG_PCI 67 68 #define X86_VECTOR_MSI_FLAGS_REQUIRED 69 (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_U 70 71 #endif /* _ASM_X86_MSI_H */ 72
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.