Blame view

include/asm-generic/msi.h 838 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
926ff9ad7   Thomas Gleixner   asm-generic: Add ...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  #ifndef __ASM_GENERIC_MSI_H
  #define __ASM_GENERIC_MSI_H
  
  #include <linux/types.h>
  
  #ifndef NUM_MSI_ALLOC_SCRATCHPAD_REGS
  # define NUM_MSI_ALLOC_SCRATCHPAD_REGS	2
  #endif
  
  struct msi_desc;
  
  /**
   * struct msi_alloc_info - Default structure for MSI interrupt allocation.
   * @desc:	Pointer to msi descriptor
   * @hwirq:	Associated hw interrupt number in the domain
   * @scratchpad:	Storage for implementation specific scratch data
   *
   * Architectures can provide their own implementation by not including
   * asm-generic/msi.h into their arch specific header file.
   */
  typedef struct msi_alloc_info {
  	struct msi_desc			*desc;
  	irq_hw_number_t			hwirq;
  	union {
  		unsigned long		ul;
  		void			*ptr;
  	} scratchpad[NUM_MSI_ALLOC_SCRATCHPAD_REGS];
  } msi_alloc_info_t;
  
  #define GENERIC_MSI_DOMAIN_OPS		1
  
  #endif