1 | /* |
---|
2 | * This include file contains all board IO definitions. |
---|
3 | * |
---|
4 | * generic sh4 BSP |
---|
5 | * |
---|
6 | * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia |
---|
7 | * Author: Victor V. Vengerov <vvv@oktet.ru> |
---|
8 | * |
---|
9 | * Based on work: |
---|
10 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
11 | * |
---|
12 | * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
17 | * |
---|
18 | * |
---|
19 | * COPYRIGHT (c) 1998-2001. |
---|
20 | * On-Line Applications Research Corporation (OAR). |
---|
21 | * |
---|
22 | * The license and distribution terms for this file may be |
---|
23 | * found in the file LICENSE in this distribution or at |
---|
24 | * http://www.rtems.org/license/LICENSE. |
---|
25 | * |
---|
26 | * Minor adaptations for sh2 by: |
---|
27 | * John M. Mills (jmills@tga.com) |
---|
28 | * TGA Technologies, Inc. |
---|
29 | * 100 Pinnacle Way, Suite 140 |
---|
30 | * Norcross, GA 30071 U.S.A. |
---|
31 | * |
---|
32 | * This modified file may be copied and distributed in accordance |
---|
33 | * the above-referenced license. It is provided for critique and |
---|
34 | * developmental purposes without any warranty nor representation |
---|
35 | * by the authors or by TGA Technologies. |
---|
36 | */ |
---|
37 | |
---|
38 | #ifndef _BSP_H |
---|
39 | #define _BSP_H |
---|
40 | |
---|
41 | #ifdef __cplusplus |
---|
42 | extern "C" { |
---|
43 | #endif |
---|
44 | |
---|
45 | #include <rtems.h> |
---|
46 | #include <rtems/clockdrv.h> |
---|
47 | #include <rtems/console.h> |
---|
48 | #include <bspopts.h> |
---|
49 | #include <bsp/default-initial-extension.h> |
---|
50 | |
---|
51 | #include "rtems/score/sh7750_regs.h" |
---|
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 | * NOTE: Use the standard Clock driver entry |
---|
83 | */ |
---|
84 | |
---|
85 | #ifdef __cplusplus |
---|
86 | } |
---|
87 | #endif |
---|
88 | |
---|
89 | #endif |
---|