1 | /* |
---|
2 | * generic sh4 BSP |
---|
3 | * |
---|
4 | * This include file contains all board IO definitions. |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia |
---|
9 | * Author: Victor V. Vengerov <vvv@oktet.ru> |
---|
10 | * |
---|
11 | * Based on work: |
---|
12 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany |
---|
15 | * |
---|
16 | * This program is distributed in the hope that it will be useful, |
---|
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
19 | * |
---|
20 | * |
---|
21 | * COPYRIGHT (c) 1998-2001. |
---|
22 | * On-Line Applications Research Corporation (OAR). |
---|
23 | * |
---|
24 | * The license and distribution terms for this file may be |
---|
25 | * found in the file LICENSE in this distribution or at |
---|
26 | * http://www.rtems.org/license/LICENSE. |
---|
27 | * |
---|
28 | * Minor adaptations for sh2 by: |
---|
29 | * John M. Mills (jmills@tga.com) |
---|
30 | * TGA Technologies, Inc. |
---|
31 | * 100 Pinnacle Way, Suite 140 |
---|
32 | * Norcross, GA 30071 U.S.A. |
---|
33 | * |
---|
34 | * This modified file may be copied and distributed in accordance |
---|
35 | * the above-referenced license. It is provided for critique and |
---|
36 | * developmental purposes without any warranty nor representation |
---|
37 | * by the authors or by TGA Technologies. |
---|
38 | */ |
---|
39 | |
---|
40 | #ifndef LIBBSP_SH_GENSH4_BSP_H |
---|
41 | #define LIBBSP_SH_GENSH4_BSP_H |
---|
42 | |
---|
43 | #include <rtems.h> |
---|
44 | #include <bspopts.h> |
---|
45 | #include <bsp/default-initial-extension.h> |
---|
46 | |
---|
47 | #include "rtems/score/sh7750_regs.h" |
---|
48 | |
---|
49 | #ifdef __cplusplus |
---|
50 | extern "C" { |
---|
51 | #endif |
---|
52 | |
---|
53 | /* Constants */ |
---|
54 | |
---|
55 | /* |
---|
56 | * Defined in the linker script 'linkcmds' |
---|
57 | */ |
---|
58 | |
---|
59 | extern void *CPU_Interrupt_stack_low; |
---|
60 | extern void *CPU_Interrupt_stack_high; |
---|
61 | |
---|
62 | /* |
---|
63 | * Defined in start.S |
---|
64 | */ |
---|
65 | extern uint32_t boot_mode; |
---|
66 | #define SH4_BOOT_MODE_FLASH 0 |
---|
67 | #define SH4_BOOT_MODE_IPL 1 |
---|
68 | |
---|
69 | /* |
---|
70 | * Device Driver Table Entries |
---|
71 | */ |
---|
72 | |
---|
73 | /* |
---|
74 | * We redefine CONSOLE_DRIVER_TABLE_ENTRY to redirect /dev/console |
---|
75 | */ |
---|
76 | #undef CONSOLE_DRIVER_TABLE_ENTRY |
---|
77 | #define CONSOLE_DRIVER_TABLE_ENTRY \ |
---|
78 | { console_initialize, console_open, console_close, \ |
---|
79 | console_read, console_write, console_control } |
---|
80 | |
---|
81 | /* |
---|
82 | * BSP methods that cross file boundaries. |
---|
83 | */ |
---|
84 | void bsp_hw_init(void); |
---|
85 | void early_hw_init(void); |
---|
86 | void bsp_cache_on(void); |
---|
87 | |
---|
88 | #ifdef __cplusplus |
---|
89 | } |
---|
90 | #endif |
---|
91 | |
---|
92 | #endif |
---|