~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/irqchip/riscv-imsic.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/irqchip/riscv-imsic.h (Version linux-6.12-rc7) and /include/linux/irqchip/riscv-imsic.h (Version linux-5.11.22)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * Copyright (C) 2021 Western Digital Corporat    
  4  * Copyright (C) 2022 Ventana Micro Systems In    
  5  */                                               
  6 #ifndef __LINUX_IRQCHIP_RISCV_IMSIC_H             
  7 #define __LINUX_IRQCHIP_RISCV_IMSIC_H             
  8                                                   
  9 #include <linux/types.h>                          
 10 #include <linux/bitops.h>                         
 11 #include <linux/device.h>                         
 12 #include <linux/fwnode.h>                         
 13 #include <asm/csr.h>                              
 14                                                   
 15 #define IMSIC_MMIO_PAGE_SHIFT           12        
 16 #define IMSIC_MMIO_PAGE_SZ              BIT(IM    
 17 #define IMSIC_MMIO_PAGE_LE              0x00      
 18 #define IMSIC_MMIO_PAGE_BE              0x04      
 19                                                   
 20 #define IMSIC_MIN_ID                    63        
 21 #define IMSIC_MAX_ID                    2048      
 22                                                   
 23 #define IMSIC_EIDELIVERY                0x70      
 24                                                   
 25 #define IMSIC_EITHRESHOLD               0x72      
 26                                                   
 27 #define IMSIC_EIP0                      0x80      
 28 #define IMSIC_EIP63                     0xbf      
 29 #define IMSIC_EIPx_BITS                 32        
 30                                                   
 31 #define IMSIC_EIE0                      0xc0      
 32 #define IMSIC_EIE63                     0xff      
 33 #define IMSIC_EIEx_BITS                 32        
 34                                                   
 35 #define IMSIC_FIRST                     IMSIC_    
 36 #define IMSIC_LAST                      IMSIC_    
 37                                                   
 38 #define IMSIC_MMIO_SETIPNUM_LE          0x00      
 39 #define IMSIC_MMIO_SETIPNUM_BE          0x04      
 40                                                   
 41 struct imsic_local_config {                       
 42         phys_addr_t                               
 43         void __iomem                              
 44 };                                                
 45                                                   
 46 struct imsic_global_config {                      
 47         /*                                        
 48          * MSI Target Address Scheme              
 49          *                                        
 50          * XLEN-1                                 
 51          * |                                      
 52          * -----------------------------------    
 53          * |xxxxxx|Group Index|xxxxxxxxxxx|HAR    
 54          * -----------------------------------    
 55          */                                       
 56                                                   
 57         /* Bits representing Guest index, HART    
 58         u32                                       
 59         u32                                       
 60         u32                                       
 61         u32                                       
 62                                                   
 63         /* Global base address matching all ta    
 64         phys_addr_t                               
 65                                                   
 66         /* Number of interrupt identities */      
 67         u32                                       
 68                                                   
 69         /* Number of guest interrupt identitie    
 70         u32                                       
 71                                                   
 72         /* Per-CPU IMSIC addresses */             
 73         struct imsic_local_config __percpu        
 74 };                                                
 75                                                   
 76 #ifdef CONFIG_RISCV_IMSIC                         
 77                                                   
 78 const struct imsic_global_config *imsic_get_gl    
 79                                                   
 80 #else                                             
 81                                                   
 82 static inline const struct imsic_global_config    
 83 {                                                 
 84         return NULL;                              
 85 }                                                 
 86                                                   
 87 #endif                                            
 88                                                   
 89 #ifdef CONFIG_ACPI                                
 90 int imsic_platform_acpi_probe(struct fwnode_ha    
 91 struct fwnode_handle *imsic_acpi_get_fwnode(st    
 92 #else                                             
 93 static inline struct fwnode_handle *imsic_acpi    
 94 #endif                                            
 95                                                   
 96 #endif                                            
 97                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php