GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / cfe / cfe / arch / mips / common / include / segtable.h
blob92e0a6ee4cf0592892c8a673bcb951cc14a2f979
1 /* *********************************************************************
2 * Broadcom Common Firmware Environment (CFE)
3 *
4 * Segment Table definitions File: segtable.h
6 * The 'segment table' (bad name) is just a list of addresses
7 * of important stuff used during initialization. We use these
8 * indirections to make life less complicated during code
9 * relocation.
11 * Author: Mitch Lichtenberg (mpl@broadcom.com)
13 *********************************************************************
15 * Copyright 2000,2001,2002,2003
16 * Broadcom Corporation. All rights reserved.
18 * This software is furnished under license and may be used and
19 * copied only in accordance with the following terms and
20 * conditions. Subject to these conditions, you may download,
21 * copy, install, use, modify and distribute modified or unmodified
22 * copies of this software in source and/or binary form. No title
23 * or ownership is transferred hereby.
25 * 1) Any source code used, modified or distributed must reproduce
26 * and retain this copyright notice and list of conditions
27 * as they appear in the source file.
29 * 2) No right is granted to use any trade name, trademark, or
30 * logo of Broadcom Corporation. The "Broadcom Corporation"
31 * name may not be used to endorse or promote products derived
32 * from this software without the prior written permission of
33 * Broadcom Corporation.
35 * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR
36 * IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED
37 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
38 * PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT
39 * SHALL BROADCOM BE LIABLE FOR ANY DAMAGES WHATSOEVER, AND IN
40 * PARTICULAR, BROADCOM SHALL NOT BE LIABLE FOR DIRECT, INDIRECT,
41 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
42 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
43 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
44 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
45 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
46 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF
47 * THE POSSIBILITY OF SUCH DAMAGE.
48 ********************************************************************* */
51 #if !defined(__ASSEMBLER__)
52 #define _TBLIDX(x) (x) /* C handles indexing for us */
53 typedef long segtable_t; /* 32 for long32, 64 for long64 */
54 #endif
57 * Definitions for the segment_table
60 #define R_SEG_ETEXT _TBLIDX(0) /* end of text segment */
61 #define R_SEG_FDATA _TBLIDX(1) /* Beginning of data segment */
62 #define R_SEG_EDATA _TBLIDX(2) /* end of data segment */
63 #define R_SEG_END _TBLIDX(3) /* End of BSS */
64 #define R_SEG_FTEXT _TBLIDX(4) /* Beginning of text segment */
65 #define R_SEG_FBSS _TBLIDX(5) /* Beginning of BSS */
66 #define R_SEG_GP _TBLIDX(6) /* Global Pointer */
67 #define R_SEG_RELOCSTART _TBLIDX(7) /* Start of reloc table */
68 #define R_SEG_RELOCEND _TBLIDX(8) /* End of reloc table */
69 #define R_SEG_APIENTRY _TBLIDX(9) /* API Entry address */
72 * Definitions for the init_table
75 #define R_INIT_EARLYINIT _TBLIDX(0) /* pointer to board_earlyinit */
76 #define R_INIT_SETLEDS _TBLIDX(1) /* pointer to board_setleds */
77 #define R_INIT_DRAMINFO _TBLIDX(2) /* pointer to board_draminfo */
78 #define R_INIT_CPUINIT _TBLIDX(3) /* pointer tp cpuinit */
79 #define R_INIT_ALTCPU_START1 _TBLIDX(4) /* pointer to altcpu_start1 */
80 #define R_INIT_ALTCPU_START2 _TBLIDX(5) /* pointer to altcpu_start2 */
81 #define R_INIT_ALTCPU_RESET _TBLIDX(6) /* pointer to altcpu_reset */
82 #define R_INIT_CPURESTART _TBLIDX(7) /* pointer to cpurestart */
83 #define R_INIT_DRAMINIT _TBLIDX(8) /* pointer to draminit */
84 #define R_INIT_CACHEOPS _TBLIDX(9) /* pointer to cacheops */
85 #define R_INIT_TLBHANDLER _TBLIDX(10) /* pointer to TLB fault handler */
86 #define R_INIT_CMDSTART _TBLIDX(11) /* pointer to cfe_main */
87 #define R_INIT_CMDRESTART _TBLIDX(12) /* pointer to cfe_cmd_restart */
88 #define R_INIT_DOXREQ _TBLIDX(13) /* pointer to cfe_doxreq */
92 * Definitions for the diag_table
95 #define R_DIAG_TEST1 _TBLIDX(0) /* after CPU and cache init, before DRAM init */
96 #define R_DIAG_TEST2 _TBLIDX(1) /* after DRAM init, before main */