source: rtems/c/src/lib/libbsp/powerpc/helas403/include/bsp.h @ 362ec23e

4.104.114.84.95
Last change on this file since 362ec23e was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 3.0 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all HELAS-403 board IO definitions.
4 *
5 *  Author:     Thomas Doerfler <td@imd.m.isar.de>
6 *              IMD Ingenieurbuero fuer Microcomputertechnik
7 *
8 *  COPYRIGHT (c) 1998 by IMD
9 *
10 *  Changes from IMD are covered by the original distributions terms.
11 *  This file has been derived from the papyrus BSP.
12 *
13 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
14 *
15 *  COPYRIGHT (c) 1995 by i-cubed ltd.
16 *
17 *  To anyone who acknowledges that this file is provided "AS IS"
18 *  without any express or implied warranty:
19 *      permission to use, copy, modify, and distribute this file
20 *      for any purpose is hereby granted without fee, provided that
21 *      the above copyright notice and this notice appears in all
22 *      copies, and that the name of i-cubed limited not be used in
23 *      advertising or publicity pertaining to distribution of the
24 *      software without specific, written prior permission.
25 *      i-cubed limited makes no representations about the suitability
26 *      of this software for any purpose.
27 *
28 *  Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
29 *
30 *  COPYRIGHT (c) 1989-1999.
31 *  On-Line Applications Research Corporation (OAR).
32 *
33 *  The license and distribution terms for this file may be
34 *  found in the file LICENSE in this distribution or at
35 *  http://www.OARcorp.com/rtems/license.html.
36 *
37 *  $Id$
38 */
39
40#ifndef __HELAS403_h
41#define __HELAS403_h
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47#ifdef ASM
48/* Definition of where to store registers in alignment handler */
49#define ALIGN_REGS 0x0140
50
51#else
52#include <rtems.h>
53#include <console.h>
54#include <clockdrv.h>
55#include <console.h>
56#include <iosupp.h>
57
58/*
59 *  Define the time limits for RTEMS Test Suite test durations.
60 *  Long test and short test duration limits are provided.  These
61 *  values are in seconds and need to be converted to ticks for the
62 *  application.
63 *
64 */
65
66#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
67#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
68
69
70/*
71 *  Stuff for Time Test 27
72 */
73
74#define MUST_WAIT_FOR_INTERRUPT 0
75
76#define Install_tm27_vector( handler ) set_vector( (handler), PPC_IRQ_SCALL, 1 )
77
78#define Cause_tm27_intr()  asm volatile ("sc")
79
80#define Clear_tm27_intr()
81
82#define Lower_tm27_intr()
83
84/* Constants */
85
86#define RAM_START 0
87#define RAM_END   0x00800000
88
89
90/* miscellaneous stuff assumed to exist */
91
92extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
93extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
94
95/*
96 *  Device Driver Table Entries
97 */
98 
99/*
100 * NOTE: Use the standard Console driver entry
101 */
102 
103/*
104 * NOTE: Use the standard Clock driver entry
105 */
106 
107/* functions */
108
109rtems_isr_entry set_vector(                    /* returns old vector */
110  rtems_isr_entry     handler,                  /* isr routine        */
111  rtems_vector_number vector,                   /* vector number      */
112  int                 type                      /* RTEMS or RAW intr  */
113);
114#endif /* ASM */
115
116#ifdef __cplusplus
117}
118#endif
119
120#endif
121/* end of include file */
Note: See TracBrowser for help on using the repository browser.