/[gxemul]/upstream/0.4.1/src/include/gtreg.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /upstream/0.4.1/src/include/gtreg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (show annotations)
Mon Oct 8 16:20:32 2007 UTC (16 years, 8 months ago) by dpavlin
File MIME type: text/plain
File size: 3078 byte(s)
0.4.1
1 /* GXemul: $Id: gtreg.h,v 1.1 2006/07/21 16:55:41 debug Exp $ */
2 /* $NetBSD: gtreg.h,v 1.2 2005/12/24 20:07:03 perry Exp $ */
3
4 /*
5 * This is basically malta/dev/gtreg.h from NetBSD, with additional
6 * defines that Linux uses. Symbol names are practically the same in
7 * NetBSD and Linux, which simplifies things.
8 */
9
10 #ifndef GTREG_H
11 #define GTREG_H
12
13 #define GT_REGVAL(x) *((volatile u_int32_t *) \
14 (MIPS_PHYS_TO_KSEG1(MALTA_CORECTRL_BASE + (x))))
15
16 /* CPU Configuration Register Map */
17 #define GT_CPU_INT 0x000
18 #define GT_MULTIGT 0x120
19
20 /* CPU Address Decode Register Map */
21 #define GT_PCI0IOLD_OFS 0x048
22 #define GT_PCI0IOHD_OFS 0x050
23 #define GT_PCI0M0LD_OFS 0x058
24 #define GT_PCI0M0HD_OFS 0x060
25 #define GT_PCI0IOREMAP_OFS 0x0f0
26 #define GT_PCI0M0REMAP_OFS 0x0f8
27 #define GT_PCI0M1REMAP_OFS 0x100
28
29 /* CPU Error Report Register Map */
30
31 /* CPU Sync Barrier Register Map */
32
33 /* SDRAM and Device Address Decode Register Map */
34
35 /* SDRAM Configuration Register Map */
36
37 /* SDRAM Parameters Register Map */
38
39 /* ECC Register Map */
40
41 /* Device Parameters Register Map */
42
43 /* DMA Record Register Map */
44
45 /* DMA Arbiter Register Map */
46
47 /* Timer/Counter Register Map */
48 //#define GT_TC_0 0x850
49 //#define GT_TC_1 0x854
50 //#define GT_TC_2 0x858
51 //#define GT_TC_3 0x85c
52 //#define GT_TC_CONTROL 0x864
53
54 /* PCI Internal Register Map */
55 #define GT_PCI0_CMD_OFS 0xc00
56 #define GT_PCI0_CFG_ADDR 0xcf8
57 #define GT_PCI0_CFG_DATA 0xcfc
58 #define GT_PCI0_INTR_ACK 0xc34
59
60 /* Interrupts Register Map */
61 #define GT_INTR_CAUSE 0xc18
62 #define GTIC_INTSUM 0x00000001
63 #define GTIC_MEMOUT 0x00000002
64 #define GTIC_DMAOUT 0x00000004
65 #define GTIC_CPUOUT 0x00000008
66 #define GTIC_DMA0COMP 0x00000010
67 #define GTIC_DMA1COMP 0x00000020
68 #define GTIC_DMA2COMP 0x00000040
69 #define GTIC_DMA3COMP 0x00000080
70 #define GTIC_T0EXP 0x00000100
71 #define GTIC_T1EXP 0x00000200
72 #define GTIC_T2EXP 0x00000400
73 #define GTIC_T3EXP 0x00000800
74 #define GTIC_MASRDERR0 0x00001000
75 #define GTIC_SLVWRERR0 0x00002000
76 #define GTIC_MASWRERR0 0x00004000
77 #define GTIC_SLVRDERR0 0x00008000
78 #define GTIC_ADDRERR0 0x00010000
79 #define GTIC_MEMERR 0x00020000
80 #define GTIC_MASABORT0 0x00040000
81 #define GTIC_TARABORT0 0x00080000
82 #define GTIC_RETRYCNT0 0x00100000
83 #define GTIC_PMCINT_0 0x00200000
84 #define GTIC_CPUINT 0x0c300000
85 #define GTIC_PCINT 0xc3000000
86 #define GTIC_CPUINTSUM 0x40000000
87 #define GTIC_PCIINTSUM 0x80000000
88
89 /* PCI Configuration Register Map */
90 //#define GT_PCICONFIGBASE 0
91 //#define GT_PCIDID BONITO(GT_PCICONFIGBASE + 0x00)
92 //#define GT_PCICMD BONITO(GT_PCICONFIGBASE + 0x04)
93 //#define GT_PCICLASS BONITO(GT_PCICONFIGBASE + 0x08)
94 //#define GT_PCILTIMER BONITO(GT_PCICONFIGBASE + 0x0c)
95 //#define GT_PCIBASE0 BONITO(GT_PCICONFIGBASE + 0x10)
96 //#define GT_PCIBASE1 BONITO(GT_PCICONFIGBASE + 0x14)
97 //#define GT_PCIBASE2 BONITO(GT_PCICONFIGBASE + 0x18)
98 //#define GT_PCIEXPRBASE BONITO(GT_PCICONFIGBASE + 0x30)
99 //#define GT_PCIINT BONITO(GT_PCICONFIGBASE + 0x3c)
100
101 /* PCI Configuration, Function 1, Register Map */
102
103 /* I2O Support Register Map */
104
105 #endif /* !GTREG_H */

  ViewVC Help
Powered by ViewVC 1.1.26