source: rtems/c/src/lib/libbsp/powerpc/gen405/include/bsp.h @ 57ed393

4.104.114.84.95
Last change on this file since 57ed393 was 57ed393, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 8, 2001 at 11:46:58 PM

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.

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