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

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/mach-rc32434/dma.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/mips/include/asm/mach-rc32434/dma.h (Version linux-6.11-rc3) and /arch/i386/include/asm-i386/mach-rc32434/dma.h (Version linux-4.17.19)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 /*                                                
  3  * Copyright 2002 Integrated Device Technology    
  4  *              All rights reserved.              
  5  *                                                
  6  * DMA register definition.                       
  7  *                                                
  8  * Author : ryan.holmQVist@idt.com                
  9  * Date   : 20011005                              
 10  */                                               
 11                                                   
 12 #ifndef __ASM_RC32434_DMA_H                       
 13 #define __ASM_RC32434_DMA_H                       
 14                                                   
 15 #include <asm/mach-rc32434/rb.h>                  
 16                                                   
 17 #define DMA0_BASE_ADDR                  0x1804    
 18                                                   
 19 /*                                                
 20  * DMA descriptor (in physical memory).           
 21  */                                               
 22                                                   
 23 struct dma_desc {                                 
 24         u32 control;                    /* Con    
 25         u32 ca;                         /* Cur    
 26         u32 devcs;                      /* Dev    
 27         u32 link;                       /* Nex    
 28 };                                                
 29                                                   
 30 #define DMA_DESC_SIZ                    sizeof    
 31 #define DMA_DESC_COUNT_BIT              0         
 32 #define DMA_DESC_COUNT_MSK              0x0003    
 33 #define DMA_DESC_DS_BIT                 20        
 34 #define DMA_DESC_DS_MSK                 0x0030    
 35                                                   
 36 #define DMA_DESC_DEV_CMD_BIT            22        
 37 #define DMA_DESC_DEV_CMD_MSK            0x01c0    
 38                                                   
 39 /* DMA command sizes */                           
 40 #define DMA_DESC_DEV_CMD_BYTE           0         
 41 #define DMA_DESC_DEV_CMD_HLF_WD         1         
 42 #define DMA_DESC_DEV_CMD_WORD           2         
 43 #define DMA_DESC_DEV_CMD_2WORDS         3         
 44 #define DMA_DESC_DEV_CMD_4WORDS         4         
 45 #define DMA_DESC_DEV_CMD_6WORDS         5         
 46 #define DMA_DESC_DEV_CMD_8WORDS         6         
 47 #define DMA_DESC_DEV_CMD_16WORDS        7         
 48                                                   
 49 /* DMA descriptors interrupts */                  
 50 #define DMA_DESC_COF                    (1 <<     
 51 #define DMA_DESC_COD                    (1 <<     
 52 #define DMA_DESC_IOF                    (1 <<     
 53 #define DMA_DESC_IOD                    (1 <<     
 54 #define DMA_DESC_TERM                   (1 <<     
 55 #define DMA_DESC_DONE                   (1 <<     
 56 #define DMA_DESC_FINI                   (1 <<     
 57                                                   
 58 /*                                                
 59  * DMA register (within Internal Register Map)    
 60  */                                               
 61                                                   
 62 struct dma_reg {                                  
 63         u32 dmac;               /* Control. */    
 64         u32 dmas;               /* Status. */     
 65         u32 dmasm;              /* Mask. */       
 66         u32 dmadptr;            /* Descriptor     
 67         u32 dmandptr;           /* Next descri    
 68 };                                                
 69                                                   
 70 /* DMA channels specific registers */             
 71 #define DMA_CHAN_RUN_BIT                (1 <<     
 72 #define DMA_CHAN_DONE_BIT               (1 <<     
 73 #define DMA_CHAN_MODE_BIT               (1 <<     
 74 #define DMA_CHAN_MODE_MSK               0x0000    
 75 #define  DMA_CHAN_MODE_AUTO             0         
 76 #define  DMA_CHAN_MODE_BURST            1         
 77 #define  DMA_CHAN_MODE_XFRT             2         
 78 #define  DMA_CHAN_MODE_RSVD             3         
 79 #define DMA_CHAN_ACT_BIT                (1 <<     
 80                                                   
 81 /* DMA status registers */                        
 82 #define DMA_STAT_FINI                   (1 <<     
 83 #define DMA_STAT_DONE                   (1 <<     
 84 #define DMA_STAT_CHAIN                  (1 <<     
 85 #define DMA_STAT_ERR                    (1 <<     
 86 #define DMA_STAT_HALT                   (1 <<     
 87                                                   
 88 /*                                                
 89  * DMA channel definitions                        
 90  */                                               
 91                                                   
 92 #define DMA_CHAN_ETH_RCV                0         
 93 #define DMA_CHAN_ETH_XMT                1         
 94 #define DMA_CHAN_MEM_TO_FIFO            2         
 95 #define DMA_CHAN_FIFO_TO_MEM            3         
 96 #define DMA_CHAN_PCI_TO_MEM             4         
 97 #define DMA_CHAN_MEM_TO_PCI             5         
 98 #define DMA_CHAN_COUNT                  6         
 99                                                   
100 struct dma_channel {                              
101         struct dma_reg ch[DMA_CHAN_COUNT];        
102 };                                                
103                                                   
104 #endif  /* __ASM_RC32434_DMA_H */                 
105                                                   

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