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