]> Git Repo - linux.git/blob - include/asm-generic/msi.h
Merge tag 'irqchip-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm...
[linux.git] / include / asm-generic / msi.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_GENERIC_MSI_H
3 #define __ASM_GENERIC_MSI_H
4
5 #include <linux/types.h>
6
7 #ifndef NUM_MSI_ALLOC_SCRATCHPAD_REGS
8 # define NUM_MSI_ALLOC_SCRATCHPAD_REGS  2
9 #endif
10
11 struct msi_desc;
12
13 /**
14  * struct msi_alloc_info - Default structure for MSI interrupt allocation.
15  * @desc:       Pointer to msi descriptor
16  * @hwirq:      Associated hw interrupt number in the domain
17  * @scratchpad: Storage for implementation specific scratch data
18  *
19  * Architectures can provide their own implementation by not including
20  * asm-generic/msi.h into their arch specific header file.
21  */
22 typedef struct msi_alloc_info {
23         struct msi_desc                 *desc;
24         irq_hw_number_t                 hwirq;
25         unsigned long                   flags;
26         union {
27                 unsigned long           ul;
28                 void                    *ptr;
29         } scratchpad[NUM_MSI_ALLOC_SCRATCHPAD_REGS];
30 } msi_alloc_info_t;
31
32 /* Device generating MSIs is proxying for another device */
33 #define MSI_ALLOC_FLAGS_PROXY_DEVICE    (1UL << 0)
34
35 #define GENERIC_MSI_DOMAIN_OPS          1
36
37 #endif
This page took 0.041917 seconds and 4 git commands to generate.