OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [helas403/] [include/] [bsp.h] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.