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

TOMOYO Linux Cross Reference
Linux/arch/sh/include/cpu-sh4/cpu/dma-register.h

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/include/cpu-sh4/cpu/dma-register.h (Version linux-6.11-rc3) and /arch/i386/include/cpu-sh4/cpu/dma-register.h (Version linux-6.9.12)


  1 /* SPDX-License-Identifier: GPL-2.0                 1 
  2  *                                                
  3  * SH4 CPU-specific DMA definitions, used by b    
  4  *                                                
  5  * Copyright (C) 2010 Guennadi Liakhovetski <g    
  6  */                                               
  7 #ifndef CPU_DMA_REGISTER_H                        
  8 #define CPU_DMA_REGISTER_H                        
  9                                                   
 10 /* SH7751/7760/7780 DMA IRQ sources */            
 11                                                   
 12 #ifdef CONFIG_CPU_SH4A                            
 13                                                   
 14 #define DMAOR_INIT      DMAOR_DME                 
 15                                                   
 16 #if defined(CONFIG_CPU_SUBTYPE_SH7343)            
 17 #define CHCR_TS_LOW_MASK        0x00000018        
 18 #define CHCR_TS_LOW_SHIFT       3                 
 19 #define CHCR_TS_HIGH_MASK       0                 
 20 #define CHCR_TS_HIGH_SHIFT      0                 
 21 #elif defined(CONFIG_CPU_SUBTYPE_SH7722) || \     
 22         defined(CONFIG_CPU_SUBTYPE_SH7723) ||     
 23         defined(CONFIG_CPU_SUBTYPE_SH7724) ||     
 24         defined(CONFIG_CPU_SUBTYPE_SH7730) ||     
 25         defined(CONFIG_CPU_SUBTYPE_SH7786)        
 26 #define CHCR_TS_LOW_MASK        0x00000018        
 27 #define CHCR_TS_LOW_SHIFT       3                 
 28 #define CHCR_TS_HIGH_MASK       0x00300000        
 29 #define CHCR_TS_HIGH_SHIFT      (20 - 2)          
 30 #elif defined(CONFIG_CPU_SUBTYPE_SH7757) || \     
 31         defined(CONFIG_CPU_SUBTYPE_SH7763) ||     
 32         defined(CONFIG_CPU_SUBTYPE_SH7780) ||     
 33         defined(CONFIG_CPU_SUBTYPE_SH7785)        
 34 #define CHCR_TS_LOW_MASK        0x00000018        
 35 #define CHCR_TS_LOW_SHIFT       3                 
 36 #define CHCR_TS_HIGH_MASK       0x00100000        
 37 #define CHCR_TS_HIGH_SHIFT      (20 - 2)          
 38 #endif                                            
 39                                                   
 40 /* Transmit sizes and respective CHCR register    
 41 enum {                                            
 42         XMIT_SZ_8BIT            = 0,              
 43         XMIT_SZ_16BIT           = 1,              
 44         XMIT_SZ_32BIT           = 2,              
 45         XMIT_SZ_64BIT           = 7,              
 46         XMIT_SZ_128BIT          = 3,              
 47         XMIT_SZ_256BIT          = 4,              
 48         XMIT_SZ_128BIT_BLK      = 0xb,            
 49         XMIT_SZ_256BIT_BLK      = 0xc,            
 50 };                                                
 51                                                   
 52 /* log2(size / 8) - used to calculate number o    
 53 #define TS_SHIFT {                      \         
 54         [XMIT_SZ_8BIT]          = 0,    \         
 55         [XMIT_SZ_16BIT]         = 1,    \         
 56         [XMIT_SZ_32BIT]         = 2,    \         
 57         [XMIT_SZ_64BIT]         = 3,    \         
 58         [XMIT_SZ_128BIT]        = 4,    \         
 59         [XMIT_SZ_256BIT]        = 5,    \         
 60         [XMIT_SZ_128BIT_BLK]    = 4,    \         
 61         [XMIT_SZ_256BIT_BLK]    = 5,    \         
 62 }                                                 
 63                                                   
 64 #define TS_INDEX2VAL(i) ((((i) & 3) << CHCR_TS    
 65                          (((i) & 0xc) << CHCR_    
 66                                                   
 67 #else /* CONFIG_CPU_SH4A */                       
 68                                                   
 69 #define DMAOR_INIT      (0x8000 | DMAOR_DME)      
 70                                                   
 71 #define CHCR_TS_LOW_MASK        0x70              
 72 #define CHCR_TS_LOW_SHIFT       4                 
 73 #define CHCR_TS_HIGH_MASK       0                 
 74 #define CHCR_TS_HIGH_SHIFT      0                 
 75                                                   
 76 /* Transmit sizes and respective CHCR register    
 77 enum {                                            
 78         XMIT_SZ_8BIT    = 1,                      
 79         XMIT_SZ_16BIT   = 2,                      
 80         XMIT_SZ_32BIT   = 3,                      
 81         XMIT_SZ_64BIT   = 0,                      
 82         XMIT_SZ_256BIT  = 4,                      
 83 };                                                
 84                                                   
 85 /* log2(size / 8) - used to calculate number o    
 86 #define TS_SHIFT {                      \         
 87         [XMIT_SZ_8BIT]          = 0,    \         
 88         [XMIT_SZ_16BIT]         = 1,    \         
 89         [XMIT_SZ_32BIT]         = 2,    \         
 90         [XMIT_SZ_64BIT]         = 3,    \         
 91         [XMIT_SZ_256BIT]        = 5,    \         
 92 }                                                 
 93                                                   
 94 #define TS_INDEX2VAL(i) (((i) & 7) << CHCR_TS_    
 95                                                   
 96 #endif /* CONFIG_CPU_SH4A */                      
 97                                                   
 98 #endif                                            
 99                                                   

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