summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-01-09 23:15:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-01-09 23:15:37 +0000
commit0d09b740d561af039e6d97e77af8d9791584d443 (patch)
treeed60ca1b8dc2d8c2d6a27a177315394a0db5fe4a
parent11f6988e56ea12b2a8e699b0da52ce5491e28195 (diff)
downloadrockbox-0d09b740d561af039e6d97e77af8d9791584d443.tar.gz
rockbox-0d09b740d561af039e6d97e77af8d9791584d443.zip
Jean-Philippe Bernardy: calmrisc header file (gmini work)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5541 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/tcc730.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/firmware/export/tcc730.h b/firmware/export/tcc730.h
new file mode 100644
index 0000000000..04d33b7c15
--- /dev/null
+++ b/firmware/export/tcc730.h
@@ -0,0 +1,62 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Jean-Philippe Bernardy
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef TCC730_H
21#define TCC730_H
22
23#include "types.h"
24
25/* int is 16 bit
26 long is 32 bit */
27
28#define IOBASE (0x3f0000)
29#define MMIO(t, x) (*(volatile t*)(IOBASE+(x)))
30
31#define WDTCON MMIO(unsigned char, 0x07)
32
33#define TACON MMIO(unsigned char, 0x08)
34#define TAPRE MMIO(unsigned char, 0x09)
35#define TADATA MMIO(unsigned int, 0x0A)
36#define TACNT MMIO(unsigned int, 0x0C)
37
38#define IMR0 MMIO(unsigned int, 0x22)
39#define IMR1 MMIO(unsigned int, 0x2A)
40
41#define P0 MMIO(unsigned char, 0x30)
42#define P1 MMIO(unsigned char, 0x31)
43#define P2 MMIO(unsigned char, 0x32)
44
45#define ADDATA MMIO(unsigned int, 0x74)
46#define ADCON MMIO(unsigned char, 0x76)
47
48#define PLL0DATA MMIO(unsigned char, 0xA8)
49#define PLL0CON MMIO(unsigned int, 0xAA)
50#define PLL1DATA MMIO(unsigned char, 0xAC)
51#define PLL1CON MMIO(unsigned int, 0xAE)
52
53#define MIUSCFG MMIO(unsigned char, 0x110)
54
55#define DDMACOM MMIO(unsigned char, 0x120)
56#define DDMACFG MMIO(unsigned char, 0x121)
57#define DDMAIADR MMIO(unsigned long, 0x122)
58#define DDMAEADR MMIO(unsigned long, 0x126)
59#define DDMANUM MMIO(unsigned int, 0x12A)
60#define DDMACNT MMIO(unsigned int, 0x12C)
61
62#endif