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

Last change on this file since 328876c was 357a9f0, checked in by Joel Sherrill <joel.sherrill@…>, on 11/08/01 at 23:47:18

2001-11-08 Dennis Ehlin (ECS) <Dennis.Ehlin@…>

This modification is part of the submitted modifications necessary to
support the IBM PPC405 family. This submission was reviewed by
Thomas Doerfler <Thomas.Doerfler@…> who ensured it did
not negatively impact the ppc403 BSPs. The submission and tracking
process was captured as PR50.

  • include/bsp.h: Increase the interrupt stack size to 16K.
  • Property mode set to 100644
File size: 3.3 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#include <bspopts.h>
48
49/*
50 *  confdefs.h overrides for this BSP:
51 *   - number of termios serial ports (defaults to 1)
52 *   - Interrupt stack space is not minimum if defined.
53 */
54
55/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
56#define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
57
58#ifdef ASM
59/* Definition of where to store registers in alignment handler */
60#define ALIGN_REGS 0x0140
61
62#else
63#include <rtems.h>
64#include <console.h>
65#include <clockdrv.h>
66#include <console.h>
67#include <iosupp.h>
68
69/*
70 *  Define the time limits for RTEMS Test Suite test durations.
71 *  Long test and short test duration limits are provided.  These
72 *  values are in seconds and need to be converted to ticks for the
73 *  application.
74 *
75 */
76
77#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
78#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
79
80
81/*
82 *  Stuff for Time Test 27
83 */
84
85#define MUST_WAIT_FOR_INTERRUPT 0
86
87#define Install_tm27_vector( handler ) set_vector( (handler), PPC_IRQ_SCALL, 1 )
88
89#define Cause_tm27_intr()  asm volatile ("sc")
90
91#define Clear_tm27_intr()
92
93#define Lower_tm27_intr()
94
95/* Constants */
96
97#define RAM_START 0
98#define RAM_END   0x00800000
99
100
101/* miscellaneous stuff assumed to exist */
102
103extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
104extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
105
106/*
107 *  Device Driver Table Entries
108 */
109 
110/*
111 * NOTE: Use the standard Console driver entry
112 */
113 
114/*
115 * NOTE: Use the standard Clock driver entry
116 */
117 
118/* functions */
119
120rtems_isr_entry set_vector(                    /* returns old vector */
121  rtems_isr_entry     handler,                  /* isr routine        */
122  rtems_vector_number vector,                   /* vector number      */
123  int                 type                      /* RTEMS or RAW intr  */
124);
125#endif /* ASM */
126
127#ifdef __cplusplus
128}
129#endif
130
131#endif
132/* end of include file */
Note: See TracBrowser for help on using the repository browser.