1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains all SPARC simulator definitions. |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-2002. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * Ported to ERC32 implementation of the SPARC by On-Line Applications |
---|
13 | * Research Corporation (OAR) under contract to the European Space |
---|
14 | * Agency (ESA). |
---|
15 | * |
---|
16 | * ERC32 modifications of respective RTEMS file: COPYRIGHT (c) 1995. |
---|
17 | * European Space Agency. |
---|
18 | * |
---|
19 | * $Id$ |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef __ERC32_BSP_h |
---|
23 | #define __ERC32_BSP_h |
---|
24 | |
---|
25 | #ifdef __cplusplus |
---|
26 | extern "C" { |
---|
27 | #endif |
---|
28 | |
---|
29 | #include <bspopts.h> |
---|
30 | |
---|
31 | #include <rtems.h> |
---|
32 | #include <rtems/iosupp.h> |
---|
33 | #include <erc32.h> |
---|
34 | #include <rtems/clockdrv.h> |
---|
35 | |
---|
36 | #include <rtems/console.h> |
---|
37 | |
---|
38 | /* |
---|
39 | * confdefs.h overrides for this BSP: |
---|
40 | * - two termios serial ports |
---|
41 | * - Interrupt stack space is not minimum if defined. |
---|
42 | */ |
---|
43 | |
---|
44 | #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 |
---|
45 | #define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024) |
---|
46 | |
---|
47 | /* |
---|
48 | * Network driver configuration |
---|
49 | */ |
---|
50 | |
---|
51 | struct rtems_bsdnet_ifconfig; |
---|
52 | extern int rtems_erc32_sonic_driver_attach (struct rtems_bsdnet_ifconfig *config); |
---|
53 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "sonic1" |
---|
54 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_erc32_sonic_driver_attach |
---|
55 | |
---|
56 | /* |
---|
57 | * Simple spin delay in microsecond units for device drivers. |
---|
58 | * This is very dependent on the clock speed of the target. |
---|
59 | */ |
---|
60 | |
---|
61 | extern void Clock_delay(uint32_t microseconds); |
---|
62 | |
---|
63 | #define delay( microseconds ) Clock_delay(microseconds) |
---|
64 | |
---|
65 | /* Constants */ |
---|
66 | |
---|
67 | /* |
---|
68 | * Information placed in the linkcmds file. |
---|
69 | */ |
---|
70 | |
---|
71 | extern int RAM_START; |
---|
72 | extern int RAM_END; |
---|
73 | extern int RAM_SIZE; |
---|
74 | |
---|
75 | extern int PROM_START; |
---|
76 | extern int PROM_END; |
---|
77 | extern int PROM_SIZE; |
---|
78 | |
---|
79 | extern int CLOCK_SPEED; |
---|
80 | |
---|
81 | extern int end; /* last address in the program */ |
---|
82 | |
---|
83 | /* |
---|
84 | * Device Driver Table Entries |
---|
85 | */ |
---|
86 | |
---|
87 | /* |
---|
88 | * NOTE: Use the standard Console driver entry |
---|
89 | */ |
---|
90 | |
---|
91 | /* |
---|
92 | * NOTE: Use the standard Clock driver entry |
---|
93 | */ |
---|
94 | |
---|
95 | /* miscellaneous stuff assumed to exist */ |
---|
96 | |
---|
97 | void bsp_cleanup( void ); |
---|
98 | |
---|
99 | void bsp_start( void ); |
---|
100 | |
---|
101 | rtems_isr_entry set_vector( /* returns old vector */ |
---|
102 | rtems_isr_entry handler, /* isr routine */ |
---|
103 | rtems_vector_number vector, /* vector number */ |
---|
104 | int type /* RTEMS or RAW intr */ |
---|
105 | ); |
---|
106 | |
---|
107 | void DEBUG_puts( char *string ); |
---|
108 | |
---|
109 | void BSP_fatal_return( void ); |
---|
110 | |
---|
111 | void bsp_spurious_initialize( void ); |
---|
112 | |
---|
113 | extern rtems_configuration_table BSP_Configuration; /* owned by BSP */ |
---|
114 | |
---|
115 | extern rtems_cpu_table Cpu_table; /* owned by BSP */ |
---|
116 | |
---|
117 | #ifdef __cplusplus |
---|
118 | } |
---|
119 | #endif |
---|
120 | |
---|
121 | #endif |
---|
122 | /* end of include file */ |
---|