Ticket #26: segmentation.h

File segmentation.h, 2.5 KB (added by alexandre.chagoya-garzon@…, 15 years ago)
Line 
1/*
2 *
3 * SOCLIB_LGPL_HEADER_BEGIN
4 *
5 * This file is part of SoCLib, GNU LGPLv2.1.
6 *
7 * SoCLib is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as published
9 * by the Free Software Foundation; version 2.1 of the License.
10 *
11 * SoCLib is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with SoCLib; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 * 02110-1301 USA
20 *
21 * SOCLIB_LGPL_HEADER_END
22 *
23 * Copyright (c) UPMC, Lip6, SoC
24 *         Nicolas Pouillon <nipo@ssji.net>, 2006-2007
25 *
26 * Maintainers: nipo
27 */
28
29/////////////////////////////////////////////////////////////////
30//      ADDRESS SPACE SEGMENTATION
31//
32//      This file must be included in the system.cpp file,
33//      for harware configuration : It is used to build
34//      the SOCLIB_SEGMENT_TABLE.
35//
36//      This file is also used by the ldscript generator,
37//      for embedded software generation.
38//     
39//      It gives the system integrator the garanty
40//      that hardware and software have the same
41//      description of the address space segmentation.
42//     
43//      The segment names cannot be changed.
44/////////////////////////////////////////////////////////////////
45
46/////////////////////////////////////////////////////////////////
47//      text, reset, and exception segments
48/////////////////////////////////////////////////////////////////
49
50#define MEMORY_BASE     0x10000000
51#define MEMORY_SIZE     0x01000000
52
53/* base address required by MIPS processor */
54#define RESET_BASE      0xBFC00000
55#define RESET_SIZE      0x00010000
56
57/* base address required by MIPS processor */
58#define EXCEP_BASE      0x80000000
59#define EXCEP_SIZE      0x00010000
60
61/* channel memory */
62#define CHANNEL_MEMORY_BASE   0xB0200000
63#define CHANNEL_MEMORY_SIZE   0x00010000
64
65
66//////////////////////////////////////////////////////////
67//      System devices
68///////////////////////////////////////////////////////////
69
70#define TTY_BASE            0xC0000000
71#define TTY_SIZE            0x00000040
72
73#define TIMER_BASE        0xC1000000
74#define TIMER_SIZE        0x00000100
75
76#define LOCKS_BASE      0xC2000000
77#define LOCKS_SIZE      0x00000400
78
79
80#define DMA_BASE        0xD0200000
81#define DMA_SIZE        0x00001000
82
83#define FB_BASE 0xF0200000
84#define FB_SIZE 0x00100000
85
86#define FD_BASE 0xE0200000
87#define FD_SIZE 0x00000100
88
89