1 | /* |
---|
2 | * This include file contains all board IO definitions. |
---|
3 | * |
---|
4 | * generic sh2 |
---|
5 | * |
---|
6 | * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) |
---|
7 | * |
---|
8 | * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
13 | * |
---|
14 | * |
---|
15 | * COPYRIGHT (c) 1998. |
---|
16 | * On-Line Applications Research Corporation (OAR). |
---|
17 | * |
---|
18 | * The license and distribution terms for this file may be |
---|
19 | * found in the file LICENSE in this distribution or at |
---|
20 | * http://www.rtems.org/license/LICENSE. |
---|
21 | * |
---|
22 | * Minor adaptations for sh2 by: |
---|
23 | * John M. Mills (jmills@tga.com) |
---|
24 | * TGA Technologies, Inc. |
---|
25 | * 100 Pinnacle Way, Suite 140 |
---|
26 | * Norcross, GA 30071 U.S.A. |
---|
27 | * |
---|
28 | * This modified file may be copied and distributed in accordance |
---|
29 | * the above-referenced license. It is provided for critique and |
---|
30 | * developmental purposes without any warranty nor representation |
---|
31 | * by the authors or by TGA Technologies. |
---|
32 | */ |
---|
33 | |
---|
34 | #ifndef _BSP_H |
---|
35 | #define _BSP_H |
---|
36 | |
---|
37 | #ifdef __cplusplus |
---|
38 | extern "C" { |
---|
39 | #endif |
---|
40 | |
---|
41 | #include <rtems.h> |
---|
42 | #include <rtems/clockdrv.h> |
---|
43 | #include <rtems/console.h> |
---|
44 | |
---|
45 | #include <bspopts.h> |
---|
46 | #include <bsp/default-initial-extension.h> |
---|
47 | |
---|
48 | #define BSP_SMALL_MEMORY 1 |
---|
49 | |
---|
50 | #if 0 |
---|
51 | #include <rtems/devnull.h> |
---|
52 | #define BSP_CONSOLE_DEVNAME "/dev/null" |
---|
53 | #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVNULL_DRIVER_TABLE_ENTRY |
---|
54 | #else |
---|
55 | #include <sh/sci.h> |
---|
56 | /* FIXME: |
---|
57 | * These definitions will be no longer necessary if the old |
---|
58 | * implementation of SCI driver will be droped |
---|
59 | */ |
---|
60 | #define BSP_CONSOLE_DEVNAME "/dev/sci0" |
---|
61 | #define BSP_CONSOLE_MINOR_NUMBER ((rtems_device_minor_number) 0) |
---|
62 | #define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY |
---|
63 | #define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE)) |
---|
64 | #endif |
---|
65 | |
---|
66 | /* Constants */ |
---|
67 | |
---|
68 | /* |
---|
69 | * Defined in the linker script 'linkcmds' |
---|
70 | */ |
---|
71 | |
---|
72 | extern void *CPU_Interrupt_stack_low; |
---|
73 | extern void *CPU_Interrupt_stack_high; |
---|
74 | |
---|
75 | /* |
---|
76 | * Device Driver Table Entries |
---|
77 | */ |
---|
78 | |
---|
79 | /* |
---|
80 | * NOTE: Use the standard Clock driver entry |
---|
81 | */ |
---|
82 | |
---|
83 | #ifdef __cplusplus |
---|
84 | } |
---|
85 | #endif |
---|
86 | |
---|
87 | #endif |
---|