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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-armnommu/] [arch-arc/] [hardware.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * linux/include/asm-arm/arch-arc/hardware.h
3
 *
4
 * Copyright (C) 1996 Russell King.
5
 *
6
 * This file contains the hardware definitions of the A3/4/5xx series machines.
7
 */
8
 
9
#ifndef __ASM_ARCH_HARDWARE_H
10
#define __ASM_ARCH_HARDWARE_H
11
 
12
/*
13
 * What hardware must be present
14
 */
15
#define HAS_IOC
16
#define HAS_MEMC
17
#define HAS_MEMC1A
18
#define HAS_VIDC
19
 
20
/*
21
 * Optional hardware
22
 */
23
#define HAS_EXPMASK
24
 
25
#define IO_START                0x03000000
26
#define IO_SIZE                 0x01000000
27
#define IO_BASE                 0x03000000
28
 
29
/*
30
 * Screen mapping information
31
 */
32
#define SCREEN_START            0x02000000      /* Screen */
33
#define SCREEN2_END             0x02078000
34
#define SCREEN2_BASE            0x02000000
35
#define SCREEN1_END             0x02000000
36
#define SCREEN1_BASE            0x01f88000
37
 
38
 
39
#ifndef __ASSEMBLER__
40
 
41
/*
42
 * for use with inb/outb
43
 */
44
#define IO_VIDC_BASE            0x80100000
45
#define LATCHAADDR              0x80094010
46
#define LATCHBADDR              0x80094006
47
#define IO_IOC_BASE             0x80080000
48
 
49
#define IO_EC_IOC4_BASE         0x8009c000
50
#define IO_EC_IOC_BASE          0x80090000
51
#define IO_EC_MEMC_BASE         0x80000000
52
 
53
/*
54
 * IO definitions
55
 */
56
#define EXPMASK_BASE            ((volatile unsigned char *)0x03360000)
57
#define IOEB_BASE               ((volatile unsigned char *)0x03350050)
58
#define PCIO_FLOPPYDMABASE      ((volatile unsigned char *)0x0302a000)
59
#define PCIO_BASE               0x03010000
60
 
61
/*
62
 * RAM definitions
63
 */
64
#define MAPTOPHYS(a)            (((unsigned long)a & 0x007fffff) + PAGE_OFFSET)
65
#define KERNTOPHYS(a)           ((((unsigned long)(&a)) & 0x007fffff) + PAGE_OFFSET)
66
#define GET_MEMORY_END(p)       (PAGE_OFFSET + (p->u1.s.page_size) * (p->u1.s.nr_pages))
67
#define PARAMS_BASE             (PAGE_OFFSET + 0x7c000)
68
#define KERNEL_BASE             (PAGE_OFFSET + 0x80000)
69
 
70
#else
71
 
72
#define IOEB_BASE               0x03350050
73
#define IOC_BASE                0x03200000
74
#define PCIO_FLOPPYDMABASE      0x0302a000
75
#define PCIO_BASE               0x03010000
76
 
77
#endif
78
#endif
79
 

powered by: WebSVN 2.1.0

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