1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains all Papyrus board IO definitions. |
---|
4 | * |
---|
5 | * Author: Andrew Bray <andy@i-cubed.co.uk> |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1995 by i-cubed ltd. |
---|
8 | * |
---|
9 | * To anyone who acknowledges that this file is provided "AS IS" |
---|
10 | * without any express or implied warranty: |
---|
11 | * permission to use, copy, modify, and distribute this file |
---|
12 | * for any purpose is hereby granted without fee, provided that |
---|
13 | * the above copyright notice and this notice appears in all |
---|
14 | * copies, and that the name of i-cubed limited not be used in |
---|
15 | * advertising or publicity pertaining to distribution of the |
---|
16 | * software without specific, written prior permission. |
---|
17 | * i-cubed limited makes no representations about the suitability |
---|
18 | * of this software for any purpose. |
---|
19 | * |
---|
20 | * Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h |
---|
21 | * |
---|
22 | * COPYRIGHT (c) 1989-1999. |
---|
23 | * On-Line Applications Research Corporation (OAR). |
---|
24 | * |
---|
25 | * The license and distribution terms for this file may be |
---|
26 | * found in found in the file LICENSE in this distribution or at |
---|
27 | * http://www.rtems.com/license/LICENSE. |
---|
28 | * |
---|
29 | * $Id$ |
---|
30 | */ |
---|
31 | |
---|
32 | #ifndef __PAPYRUS_h |
---|
33 | #define __PAPYRUS_h |
---|
34 | |
---|
35 | #ifdef __cplusplus |
---|
36 | extern "C" { |
---|
37 | #endif |
---|
38 | |
---|
39 | #include <bspopts.h> |
---|
40 | |
---|
41 | /* |
---|
42 | * confdefs.h overrides for this BSP: |
---|
43 | * - termios serial ports (defaults to 1) |
---|
44 | * - Interrupt stack space is not minimum if defined. |
---|
45 | */ |
---|
46 | |
---|
47 | /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ |
---|
48 | #define CONFIGURE_INTERRUPT_STACK_MEMORY (12 * 1024) |
---|
49 | |
---|
50 | #ifdef ASM |
---|
51 | /* Definition of where to store registers in alignment handler */ |
---|
52 | #define ALIGN_REGS 0x0140 |
---|
53 | |
---|
54 | #else |
---|
55 | #include <rtems.h> |
---|
56 | #include <rtems/console.h> |
---|
57 | #include <libcpu/io.h> |
---|
58 | #include <rtems/clockdrv.h> |
---|
59 | #include <rtems/iosupp.h> |
---|
60 | #include <bsp/vectors.h> |
---|
61 | |
---|
62 | /* Constants */ |
---|
63 | |
---|
64 | /* |
---|
65 | * Information placed in the linkcmds file. |
---|
66 | */ |
---|
67 | |
---|
68 | extern int RAM_END; |
---|
69 | extern int end; /* last address in the program */ |
---|
70 | |
---|
71 | /* |
---|
72 | * Device Driver Table Entries |
---|
73 | */ |
---|
74 | |
---|
75 | /* |
---|
76 | * NOTE: Use the standard Console driver entry |
---|
77 | */ |
---|
78 | |
---|
79 | /* |
---|
80 | * NOTE: Use the standard Clock driver entry |
---|
81 | */ |
---|
82 | |
---|
83 | #define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value ) |
---|
84 | |
---|
85 | /* functions */ |
---|
86 | |
---|
87 | void bsp_cleanup( void ); |
---|
88 | |
---|
89 | extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ |
---|
90 | extern rtems_cpu_table Cpu_table; /* owned by BSP */ |
---|
91 | |
---|
92 | #endif /* ASM */ |
---|
93 | |
---|
94 | #ifdef __cplusplus |
---|
95 | } |
---|
96 | #endif |
---|
97 | |
---|
98 | #endif |
---|
99 | /* end of include file */ |
---|