brintos

brintos / linux-shallow public Read only

0
0
Text · 1.0 KiB · 124c734 Raw
42 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef __ASM_GENERIC_MSI_H3#define __ASM_GENERIC_MSI_H4 5#include <linux/types.h>6 7#ifdef CONFIG_GENERIC_MSI_IRQ8 9#ifndef NUM_MSI_ALLOC_SCRATCHPAD_REGS10# define NUM_MSI_ALLOC_SCRATCHPAD_REGS	211#endif12 13struct msi_desc;14 15/**16 * struct msi_alloc_info - Default structure for MSI interrupt allocation.17 * @desc:	Pointer to msi descriptor18 * @hwirq:	Associated hw interrupt number in the domain19 * @scratchpad:	Storage for implementation specific scratch data20 *21 * Architectures can provide their own implementation by not including22 * asm-generic/msi.h into their arch specific header file.23 */24typedef struct msi_alloc_info {25	struct msi_desc			*desc;26	irq_hw_number_t			hwirq;27	unsigned long			flags;28	union {29		unsigned long		ul;30		void			*ptr;31	} scratchpad[NUM_MSI_ALLOC_SCRATCHPAD_REGS];32} msi_alloc_info_t;33 34/* Device generating MSIs is proxying for another device */35#define MSI_ALLOC_FLAGS_PROXY_DEVICE	(1UL << 0)36 37#define GENERIC_MSI_DOMAIN_OPS		138 39#endif /* CONFIG_GENERIC_MSI_IRQ */40 41#endif42