Revision 5fafdf24 hw/sh7750_regs.h
b/hw/sh7750_regs.h | ||
---|---|---|
12 | 12 |
* The license and distribution terms for this file may be |
13 | 13 |
* found in the file LICENSE in this distribution or at |
14 | 14 |
* http://www.rtems.com/license/LICENSE. |
15 |
*
|
|
15 |
* |
|
16 | 16 |
* @(#) sh7750_regs.h,v 1.2.4.1 2003/09/04 18:46:00 joel Exp |
17 | 17 |
*/ |
18 | 18 |
|
19 | 19 |
#ifndef __SH7750_REGS_H__ |
20 | 20 |
#define __SH7750_REGS_H__ |
21 | 21 |
|
22 |
/*
|
|
23 |
* All register has 2 addresses: in 0xff000000 - 0xffffffff (P4 address) and
|
|
22 |
/* |
|
23 |
* All register has 2 addresses: in 0xff000000 - 0xffffffff (P4 address) and |
|
24 | 24 |
* in 0x1f000000 - 0x1fffffff (area 7 address) |
25 | 25 |
*/ |
26 |
#define SH7750_P4_BASE 0xff000000 /* Accessable only in
|
|
26 |
#define SH7750_P4_BASE 0xff000000 /* Accessable only in |
|
27 | 27 |
priveleged mode */ |
28 | 28 |
#define SH7750_A7_BASE 0x1f000000 /* Accessable only using TLB */ |
29 | 29 |
|
30 | 30 |
#define SH7750_P4_REG32(ofs) (SH7750_P4_BASE + (ofs)) |
31 | 31 |
#define SH7750_A7_REG32(ofs) (SH7750_A7_BASE + (ofs)) |
32 | 32 |
|
33 |
/*
|
|
34 |
* MMU Registers
|
|
33 |
/* |
|
34 |
* MMU Registers |
|
35 | 35 |
*/ |
36 | 36 |
|
37 | 37 |
/* Page Table Entry High register - PTEH */ |
... | ... | |
61 | 61 |
#define SH7750_PTEL_PR_RWPO 0x00000020 /* read-write in priv mode */ |
62 | 62 |
#define SH7750_PTEL_PR_ROPU 0x00000040 /* read-only in priv or user mode */ |
63 | 63 |
#define SH7750_PTEL_PR_RWPU 0x00000060 /* read-write in priv or user mode */ |
64 |
#define SH7750_PTEL_C 0x00000008 /* Cacheability
|
|
64 |
#define SH7750_PTEL_C 0x00000008 /* Cacheability |
|
65 | 65 |
(0 - page not cacheable) */ |
66 |
#define SH7750_PTEL_D 0x00000004 /* Dirty bit (1 - write has been
|
|
66 |
#define SH7750_PTEL_D 0x00000004 /* Dirty bit (1 - write has been |
|
67 | 67 |
performed to a page) */ |
68 | 68 |
#define SH7750_PTEL_SH 0x00000002 /* Share Status bit (1 - page are |
69 | 69 |
shared by processes) */ |
... | ... | |
130 | 130 |
#define SH7750_CCR_A7 SH7750_A7_REG32(SH7750_CCR_REGOFS) |
131 | 131 |
|
132 | 132 |
#define SH7750_CCR_IIX 0x00008000 /* IC index enable bit */ |
133 |
#define SH7750_CCR_ICI 0x00000800 /* IC invalidation bit:
|
|
133 |
#define SH7750_CCR_ICI 0x00000800 /* IC invalidation bit: |
|
134 | 134 |
set it to clear IC */ |
135 | 135 |
#define SH7750_CCR_ICE 0x00000100 /* IC enable bit */ |
136 | 136 |
#define SH7750_CCR_OIX 0x00000080 /* OC index enable bit */ |
137 |
#define SH7750_CCR_ORA 0x00000020 /* OC RAM enable bit
|
|
138 |
if you set OCE = 0,
|
|
137 |
#define SH7750_CCR_ORA 0x00000020 /* OC RAM enable bit |
|
138 |
if you set OCE = 0, |
|
139 | 139 |
you should set ORA = 0 */ |
140 | 140 |
#define SH7750_CCR_OCI 0x00000008 /* OC invalidation bit */ |
141 | 141 |
#define SH7750_CCR_CB 0x00000004 /* Copy-back bit for P1 area */ |
... | ... | |
254 | 254 |
|
255 | 255 |
/* Peripheral Module Interrupts - Memory Refresh Unit (REF) */ |
256 | 256 |
#define SH7750_EVT_REF_RCMI 0x580 /* Compare-match Interrupt */ |
257 |
#define SH7750_EVT_REF_ROVI 0x5A0 /* Refresh Counter Overflow
|
|
257 |
#define SH7750_EVT_REF_ROVI 0x5A0 /* Refresh Counter Overflow |
|
258 | 258 |
interrupt */ |
259 | 259 |
|
260 | 260 |
/* Peripheral Module Interrupts - Hitachi User Debug Interface (H-UDI) */ |
... | ... | |
331 | 331 |
#define SH7750_FRQCR SH7750_P4_REG32(SH7750_FRQCR_REGOFS) |
332 | 332 |
#define SH7750_FRQCR_A7 SH7750_A7_REG32(SH7750_FRQCR_REGOFS) |
333 | 333 |
|
334 |
#define SH7750_FRQCR_CKOEN 0x0800 /* Clock Output Enable
|
|
334 |
#define SH7750_FRQCR_CKOEN 0x0800 /* Clock Output Enable |
|
335 | 335 |
0 - CKIO pin goes to HiZ/pullup |
336 | 336 |
1 - Clock is output from CKIO */ |
337 | 337 |
#define SH7750_FRQCR_PLL1EN 0x0400 /* PLL circuit 1 enable */ |
... | ... | |
643 | 643 |
#define SH7750_BCR1_BREQEN 0x00080000 /* BREQ Enable: |
644 | 644 |
0 - External requests are not |
645 | 645 |
accepted |
646 |
1 - External requests are
|
|
646 |
1 - External requests are |
|
647 | 647 |
accepted */ |
648 | 648 |
#define SH7750_BCR1_PSHR 0x00040000 /* Partial Sharing Bit: |
649 | 649 |
0 - Master Mode |
... | ... | |
877 | 877 |
#define SH7750_MCR_TCAS_1 0x00000000 /* 1 */ |
878 | 878 |
#define SH7750_MCR_TCAS_2 0x00800000 /* 2 */ |
879 | 879 |
|
880 |
#define SH7750_MCR_TPC 0x00380000 /* DRAM: RAS Precharge Period
|
|
880 |
#define SH7750_MCR_TPC 0x00380000 /* DRAM: RAS Precharge Period |
|
881 | 881 |
SDRAM: minimum number of cycles |
882 | 882 |
until the next bank active cmd |
883 | 883 |
is output after precharging */ |
... | ... | |
1148 | 1148 |
#define SH7750_CHCR_DSA_AMEM16 0x0E000000 /* 16-bit attribute memory space */ |
1149 | 1149 |
|
1150 | 1150 |
#define SH7750_CHCR_DTC 0x01000000 /* Destination Address Wait Control |
1151 |
Select, specifies CS5 or CS6
|
|
1151 |
Select, specifies CS5 or CS6 |
|
1152 | 1152 |
space wait control for PCMCIA |
1153 | 1153 |
access */ |
1154 | 1154 |
|
... | ... | |
1186 | 1186 |
Address Mode (External Addr |
1187 | 1187 |
Space -> External Device) */ |
1188 | 1188 |
#define SH7750_CHCR_RS_ER_SA_ED_TO_EA 0x300 /* External Request, Single |
1189 |
Address Mode, (External
|
|
1190 |
Device -> External Addr
|
|
1189 |
Address Mode, (External |
|
1190 |
Device -> External Addr |
|
1191 | 1191 |
Space) */ |
1192 | 1192 |
#define SH7750_CHCR_RS_AR_EA_TO_EA 0x400 /* Auto-Request (External Addr |
1193 | 1193 |
Space -> External Addr Space) */ |
... | ... | |
1195 | 1195 |
#define SH7750_CHCR_RS_AR_EA_TO_OCP 0x500 /* Auto-Request (External Addr |
1196 | 1196 |
Space -> On-chip Peripheral |
1197 | 1197 |
Module) */ |
1198 |
#define SH7750_CHCR_RS_AR_OCP_TO_EA 0x600 /* Auto-Request (On-chip
|
|
1198 |
#define SH7750_CHCR_RS_AR_OCP_TO_EA 0x600 /* Auto-Request (On-chip |
|
1199 | 1199 |
Peripheral Module -> |
1200 | 1200 |
External Addr Space */ |
1201 | 1201 |
#define SH7750_CHCR_RS_SCITX_EA_TO_SC 0x800 /* SCI Transmit-Data-Empty intr |
... | ... | |
1596 | 1596 |
#define SH7750_IPRC_HUDI_S 0 |
1597 | 1597 |
|
1598 | 1598 |
|
1599 |
/*
|
|
1599 |
/* |
|
1600 | 1600 |
* User Break Controller registers |
1601 | 1601 |
*/ |
1602 | 1602 |
#define SH7750_BARA 0x200000 /* Break address regiser A */ |
Also available in: Unified diff