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