OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [sh/] [sh2/] [current/] [include/] [mod_regs_dma.h] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//=============================================================================
2
//
3
//      mod_regs_dma.h
4
//
5
//      DMA (direct memory access) Module register definitions
6
//
7
//=============================================================================
8
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
9
// -------------------------------------------                              
10
// This file is part of eCos, the Embedded Configurable Operating System.   
11
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
//
13
// eCos is free software; you can redistribute it and/or modify it under    
14
// the terms of the GNU General Public License as published by the Free     
15
// Software Foundation; either version 2 or (at your option) any later      
16
// version.                                                                 
17
//
18
// eCos is distributed in the hope that it will be useful, but WITHOUT      
19
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
20
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
21
// for more details.                                                        
22
//
23
// You should have received a copy of the GNU General Public License        
24
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
25
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
26
//
27
// As a special exception, if other files instantiate templates or use      
28
// macros or inline functions from this file, or you compile this file      
29
// and link it with other works to produce a work based on this file,       
30
// this file does not by itself cause the resulting work to be covered by   
31
// the GNU General Public License. However the source code for this file    
32
// must still be made available in accordance with section (3) of the GNU   
33
// General Public License v2.                                               
34
//
35
// This exception does not invalidate any other reasons why a work based    
36
// on this file might be covered by the GNU General Public License.         
37
// -------------------------------------------                              
38
// ####ECOSGPLCOPYRIGHTEND####                                              
39
//=============================================================================
40
//#####DESCRIPTIONBEGIN####
41
//
42
// Author(s):   jskov
43
// Contributors:jskov
44
// Date:        2002-01-21
45
//              
46
//####DESCRIPTIONEND####
47
//
48
//=============================================================================
49
 
50
//--------------------------------------------------------------------------
51
// DMA Controller registers
52
 
53
#define CYGARC_REG_SAR0                 0xffffff80
54
#define CYGARC_REG_DAR0                 0xffffff84
55
#define CYGARC_REG_DMATCR0              0xffffff88
56
#define CYGARC_REG_CHCR0                0xffffff8c
57
#define CYGARC_REG_DRCR0                0xfffffe71
58
#define CYGARC_REG_SAR1                 0xffffff90
59
#define CYGARC_REG_DAR1                 0xffffff94
60
#define CYGARC_REG_DMATCR1              0xffffff98
61
#define CYGARC_REG_CHCR1                0xffffff9c
62
#define CYGARC_REG_DRCR1                0xfffffe72
63
 
64
#define CYGARC_REG_DMAOR                0xffffffb0
65
 
66
// Offsets from base register
67
#define CYGARC_REG_SAR                  0x00
68
#define CYGARC_REG_DAR                  0x04
69
#define CYGARC_REG_DMATCR               0x08
70
#define CYGARC_REG_CHCR                 0x0c
71
 
72
 
73
// DMA Channel Control Register. If there's a digit suffix to CHCR the flag
74
// is only valid in the listed channels.
75
#define CYGARC_REG_CHCR_DM1             0x00008000 // destination address mode
76
#define CYGARC_REG_CHCR_DM0             0x00004000
77
#define CYGARC_REG_CHCR_SM1             0x00002000 // source address mode
78
#define CYGARC_REG_CHCR_SM0             0x00001000
79
#define CYGARC_REG_CHCR_TS1             0x00000800 // transmit size
80
#define CYGARC_REG_CHCR_TS0             0x00000400
81
#define CYGARC_REG_CHCR_AR              0x00000200 // auto-request mode
82
#define CYGARC_REG_CHCR_AM              0x00000100 // ack/tx mode
83
#define CYGARC_REG_CHCR_AL              0x00000080 // ack level
84
#define CYGARC_REG_CHCR_DS              0x00000040 // DREQ select: level(0)/edge(1)
85
#define CYGARC_REG_CHCR_DL              0x00000020 // DREQ select: low(0)/high(1)
86
#define CYGARC_REG_CHCR_TB              0x00000010 // transfer bus mode cycle-steal(0)/bus(1)
87
#define CYGARC_REG_CHCR_TA              0x00000008 // transfer address mode dual(0)/single(1)
88
#define CYGARC_REG_CHCR_IE              0x00000004 // interrupt enable
89
#define CYGARC_REG_CHCR_TE              0x00000002 // transfer end
90
#define CYGARC_REG_CHCR_DE              0x00000001 // DMAC enable
91
 
92
// Resource select options
93
#define CYGARC_REG_CHCR_RS_EXT          0x00000000
94
#define CYGARC_REG_CHCR_RS_SCIF1_RXI    0x00000005
95
#define CYGARC_REG_CHCR_RS_SCIF1_TXI    0x00000006
96
#define CYGARC_REG_CHCR_RS_SCIF2_RXI    0x00000009
97
#define CYGARC_REG_CHCR_RS_SCIF2_TXI    0x0000000a
98
#define CYGARC_REG_CHCR_RS_TPU_TGI0A    0x0000000c
99
#define CYGARC_REG_CHCR_RS_TPU_TGI0B    0x0000000d
100
#define CYGARC_REG_CHCR_RS_TPU_TGI0C    0x0000000e
101
#define CYGARC_REG_CHCR_RS_TPU_TGI0D    0x0000000f
102
#define CYGARC_REG_CHCR_RS_SIO0_RDIF    0x00000011
103
#define CYGARC_REG_CHCR_RS_SIO0_TDEI    0x00000012
104
#define CYGARC_REG_CHCR_RS_SIO1_RDIF    0x00000015
105
#define CYGARC_REG_CHCR_RS_SIO1_TDEI    0x00000016
106
#define CYGARC_REG_CHCR_RS_SIO2_RDIF    0x00000019
107
#define CYGARC_REG_CHCR_RS_SIO2_TDEI    0x0000001a
108
 
109
 
110
// DMA Operation Register
111
#define CYGARC_REG_DMAOR_PR             0x00000008
112
#define CYGARC_REG_DMAOR_AE             0x00000004     // address error flag
113
#define CYGARC_REG_DMAOR_NMIF           0x00000002     // NMI flag
114
#define CYGARC_REG_DMAOR_DME            0x00000001     // DMA master enable

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.