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

TOMOYO Linux Cross Reference
Linux/arch/sh/boards/mach-se/770x/irq.c

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/sh/boards/mach-se/770x/irq.c (Version linux-6.11-rc3) and /arch/i386/boards/mach-se/770x/irq.c (Version linux-4.17.19)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2 /*                                                
  3  * linux/arch/sh/boards/se/770x/irq.c             
  4  *                                                
  5  * Copyright (C) 2000  Kazumoto Kojima            
  6  * Copyright (C) 2006  Nobuhiro Iwamatsu          
  7  *                                                
  8  * Hitachi SolutionEngine Support.                
  9  *                                                
 10  */                                               
 11                                                   
 12 #include <linux/init.h>                           
 13 #include <linux/interrupt.h>                      
 14 #include <linux/irq.h>                            
 15 #include <asm/irq.h>                              
 16 #include <asm/io.h>                               
 17 #include <mach-se/mach/se.h>                      
 18                                                   
 19 static struct ipr_data ipr_irq_table[] = {        
 20         /*                                        
 21         * Super I/O (Just mimic PC):              
 22         *  1: keyboard                            
 23         *  3: serial 0                            
 24         *  4: serial 1                            
 25         *  5: printer                             
 26         *  6: floppy                              
 27         *  8: rtc                                 
 28         * 12: mouse                               
 29         * 14: ide0                                
 30         */                                        
 31 #if defined(CONFIG_CPU_SUBTYPE_SH7705)            
 32         /* This is default value */               
 33         { 13, 0, 8,  0x0f-13, },                  
 34         { 5 , 0, 4,  0x0f- 5, },                  
 35         { 10, 1, 0,  0x0f-10, },                  
 36         { 7 , 2, 4,  0x0f- 7, },                  
 37         { 3 , 2, 0,  0x0f- 3, },                  
 38         { 1 , 3, 12, 0x0f- 1, },                  
 39         { 12, 3, 4,  0x0f-12, }, /* LAN */        
 40         { 2 , 4, 8,  0x0f- 2, }, /* PCIRQ2 */     
 41         { 6 , 4, 4,  0x0f- 6, }, /* PCIRQ1 */     
 42         { 14, 4, 0,  0x0f-14, }, /* PCIRQ0 */     
 43         { 0 , 5, 12, 0x0f   , },                  
 44         { 4 , 5, 4,  0x0f- 4, },                  
 45         { 8 , 6, 12, 0x0f- 8, },                  
 46         { 9 , 6, 8,  0x0f- 9, },                  
 47         { 11, 6, 4,  0x0f-11, },                  
 48 #else                                             
 49         { 14, 0,  8, 0x0f-14, },                  
 50         { 12, 0,  4, 0x0f-12, },                  
 51         {  8, 1,  4, 0x0f- 8, },                  
 52         {  6, 2, 12, 0x0f- 6, },                  
 53         {  5, 2,  8, 0x0f- 5, },                  
 54         {  4, 2,  4, 0x0f- 4, },                  
 55         {  3, 2,  0, 0x0f- 3, },                  
 56         {  1, 3, 12, 0x0f- 1, },                  
 57 #if defined(CONFIG_STNIC)                         
 58         /* ST NIC */                              
 59         { 10, 3,  4, 0x0f-10, },        /* LAN    
 60 #endif                                            
 61         /* MRSHPC IRQs setting */                 
 62         {  0, 4, 12, 0x0f- 0, },        /* PCI    
 63         { 11, 4,  8, 0x0f-11, },        /* PCI    
 64         {  9, 4,  4, 0x0f- 9, },        /* PCI    
 65         {  7, 4,  0, 0x0f- 7, },        /* PCI    
 66         /* #2, #13 are allocated for SLOT IRQ     
 67         /* NOTE: #2 and #13 are not used on PC    
 68         { 13, 6,  4, 0x0f-13, },        /* SLO    
 69         {  2, 6,  0, 0x0f- 2, },        /* SLO    
 70 #endif                                            
 71 };                                                
 72                                                   
 73 static unsigned long ipr_offsets[] = {            
 74         BCR_ILCRA,                                
 75         BCR_ILCRB,                                
 76         BCR_ILCRC,                                
 77         BCR_ILCRD,                                
 78         BCR_ILCRE,                                
 79         BCR_ILCRF,                                
 80         BCR_ILCRG,                                
 81 };                                                
 82                                                   
 83 static struct ipr_desc ipr_irq_desc = {           
 84         .ipr_offsets    = ipr_offsets,            
 85         .nr_offsets     = ARRAY_SIZE(ipr_offse    
 86                                                   
 87         .ipr_data       = ipr_irq_table,          
 88         .nr_irqs        = ARRAY_SIZE(ipr_irq_t    
 89         .chip = {                                 
 90                 .name   = "IPR-se770x",           
 91         },                                        
 92 };                                                
 93                                                   
 94 /*                                                
 95  * Initialize IRQ setting                         
 96  */                                               
 97 void __init init_se_IRQ(void)                     
 98 {                                                 
 99         /* Disable all interrupts */              
100         __raw_writew(0, BCR_ILCRA);               
101         __raw_writew(0, BCR_ILCRB);               
102         __raw_writew(0, BCR_ILCRC);               
103         __raw_writew(0, BCR_ILCRD);               
104         __raw_writew(0, BCR_ILCRE);               
105         __raw_writew(0, BCR_ILCRF);               
106         __raw_writew(0, BCR_ILCRG);               
107                                                   
108         register_ipr_controller(&ipr_irq_desc)    
109 }                                                 
110                                                   

~ [ 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