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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [sh/] [sh2/] [v2_0/] [include/] [mod_regs_dma.h] - Blame information for rev 174

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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