source: rtems/c/src/lib/libbsp/sh/simsh4/include/bsp.h @ cd67dca

4.104.114.84.95
Last change on this file since cd67dca was cd67dca, checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/01 at 21:04:35

2001-10-11 Alexandra Kossovsky <sasha@…>

  • clock/Makefile.am, clock/ckinit.c, clock/.cvsignore, Makefile.am, README, bsp_specs, console/Makefile.am, console/console.c, console/.cvsignore, include/Makefile.am, include/bsp.h, include/coverhd.h, include/syscall.h, include/ramdisk.h, include/.cvsignore, start/Makefile.am, start/start.S, start/.cvsignore, startup/Makefile.am, startup/bspstart.c, startup/hw_init.c, startup/linkcmds, startup/linkcmds-le, startup/linkcmds-le.coff, startup/.cvsignore, timer/Makefile.am, timer/timer.c, timer/.cvsignore, wrapup/Makefile.am, wrapup/.cvsignore, configure.ac, .cvsignore, ChangeLog?: New files. Reviewed and updated to latest automake and autoconf standards by Ralf Corsepius <corsepiu@…>.
  • Property mode set to 100644
File size: 3.6 KB
Line 
1/*
2 *  This include file contains all board IO definitions.
3 *
4 *  sh4 simulator bsp
5 *
6 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
7 *  Author: Victor V. Vengerov <vvv@oktet.ru>
8 *          Alexandra Kossovsky <sasha@oktet.ru>
9 *
10 *  Based on work:
11 *  Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de)
12 *
13 *  COPYRIGHT (c) 1997-1998, FAW Ulm, Germany
14 *
15 *  This program is distributed in the hope that it will be useful,
16 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 *
20 *  COPYRIGHT (c) 1998-2001.
21 *  On-Line Applications Research Corporation (OAR).
22 *
23 *  The license and distribution terms for this file may be
24 *  found in the file LICENSE in this distribution or at
25 *  http://www.OARcorp.com/rtems/license.html.
26 *
27 *  Minor adaptations for sh2 by:
28 *  John M. Mills (jmills@tga.com)
29 *  TGA Technologies, Inc.
30 *  100 Pinnacle Way, Suite 140
31 *  Norcross, GA 30071 U.S.A.
32 *
33 *  This modified file may be copied and distributed in accordance
34 *  the above-referenced license. It is provided for critique and
35 *  developmental purposes without any warranty nor representation
36 *  by the authors or by TGA Technologies.
37 *
38 *  $Id$
39 */
40
41#ifndef __simsh4_h
42#define __simsh4_h
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48#include <rtems.h>
49#include <clockdrv.h>
50#include <console.h>
51#include <ramdisk.h>
52
53/*
54 *  confdefs.h overrides for this BSP:
55 *   - number of termios serial ports (defaults to 1)
56 *   - Interrupt stack space is not minimum if defined.
57 */
58
59#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
60#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
61
62/* !!! Should be defined in accordance to simulator considerations.*/
63#define CLOCK_VECTOR 32
64
65/*
66 *  Define the time limits for RTEMS Test Suite test durations.
67 *  Long test and short test duration limits are provided.  These
68 *  values are in seconds and need to be converted to ticks for the
69 *  application.
70 *
71 */
72
73#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
74#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
75
76/*
77 *  Stuff for Time Test 27
78 */
79
80#define MUST_WAIT_FOR_INTERRUPT 0
81
82#define Install_tm27_vector( handler ) \
83{ \
84  rtems_isr_entry ignored ; \
85  rtems_interrupt_catch( (handler), 0, &ignored ) ; \
86}
87
88#define Cause_tm27_intr()
89
90#define Clear_tm27_intr()
91
92#define Lower_tm27_intr()
93
94/* Constants */
95
96/*
97 *  Simple spin delay in microsecond units for device drivers.
98 *  This is very dependent on the clock speed of the target.
99 */
100
101#define delay( microseconds ) CPU_delay(microseconds)
102#define sh_delay( microseconds ) CPU_delay( microseconds )
103
104
105/*
106 * Defined in the linker script 'linkcmds'
107 */
108
109extern unsigned32       HeapStart ;
110extern unsigned32       HeapEnd ;
111extern unsigned32       WorkSpaceStart ;
112extern unsigned32       WorkSpaceEnd ;
113
114extern void *CPU_Interrupt_stack_low ;
115extern void *CPU_Interrupt_stack_high ;
116
117 
118/* miscellaneous stuff assumed to exist */
119
120extern rtems_configuration_table BSP_Configuration;
121
122extern rtems_cpu_table           Cpu_table;
123
124extern void bsp_cleanup( void );
125
126/*
127 *  Device Driver Table Entries
128 */
129
130#undef CONSOLE_DRIVER_TABLE_ENTRY
131#define CONSOLE_DRIVER_TABLE_ENTRY \
132  { console_initialize, console_open, console_close, \
133      console_read, console_write, console_control }
134
135#define RAMDISK_DRIVER_TABLE_ENTRY \
136  { ramdisk_initialize, ramdisk_open, ramdisk_close, \
137        ramdisk_read, ramdisk_write, ramdisk_control }
138     
139 
140/*
141 * NOTE: Use the standard Clock driver entry
142 */
143
144/*
145 * Trap interface with simulator
146 */
147int __trap34();
148
149#ifdef __cplusplus
150}
151#endif
152
153#endif
154/* end of include file */
Note: See TracBrowser for help on using the repository browser.