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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [unix/] [posix/] [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 POSIX BSP definitions.
4
 *
5
 *  COPYRIGHT (c) 1989-1999.
6
 *  On-Line Applications Research Corporation (OAR).
7
 *
8
 *  The license and distribution terms for this file may be
9
 *  found in the file LICENSE in this distribution or at
10
 *  http://www.OARcorp.com/rtems/license.html.
11
 *
12
 *  $Id: bsp.h,v 1.2 2001-09-27 12:01:14 chris Exp $
13
 */
14
 
15
#ifndef __POSIX_BSP_h
16
#define __POSIX_BSP_h
17
 
18
#ifdef __cplusplus
19
extern "C" {
20
#endif
21
 
22
#include <rtems.h>
23
#include <clockdrv.h>
24
#include <console.h>
25
#include <iosupp.h>
26
 
27
/*
28
 *  confdefs.h overrides for this BSP:
29
 *   - number of termios serial ports (defaults to 1)
30
 *   - Interrupt stack space is not minimum if defined.
31
 */
32
 
33
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
34
#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
35
 
36
/*
37
 *  Define the time limits for RTEMS Test Suite test durations.
38
 *  Long test and short test duration limits are provided.  These
39
 *  values are in seconds and need to be converted to ticks for the
40
 *  application.
41
 *
42
 */
43
 
44
#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
45
#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
46
 
47
/*
48
 *  Stuff for Time Test 27
49
 */
50
 
51
#define MUST_WAIT_FOR_INTERRUPT 1
52
 
53
#define Install_tm27_vector( handler ) \
54
    set_vector( (handler), 16, 1 )
55
 
56
#define Cause_tm27_intr()  \
57
    raise( 16 )
58
 
59
#define Clear_tm27_intr()
60
 
61
#define Lower_tm27_intr() \
62
    _ISR_Set_level( 0 );
63
 
64
#define RAM_START 0
65
#define RAM_END   0x100000
66
 
67
/* miscellaneous stuff assumed to exist */
68
 
69
extern rtems_configuration_table BSP_Configuration;
70
 
71
/*
72
 *  Device Driver Table Entries
73
 */
74
 
75
/*
76
 * NOTE: Use the standard Console driver entry
77
 */
78
 
79
/*
80
 * NOTE: Use the standard Clock driver entry
81
 */
82
 
83
/* functions */
84
 
85
rtems_isr_entry set_vector(rtems_isr_entry, rtems_vector_number, int);
86
void bsp_start( void );
87
void bsp_cleanup( void );
88
 
89
/* miscellaneous stuff assumed to exist */
90
 
91
extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
92
extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
93
 
94
extern int                       rtems_argc;
95
extern char                    **rtems_argv;
96
 
97
extern rtems_unsigned32          bsp_isr_level;
98
 
99
extern char *rtems_progname;    /* UNIX executable name */
100
 
101
extern int cpu_number;
102
 
103
#ifdef __cplusplus
104
}
105
#endif
106
 
107
#endif
108
/* end of include file */

powered by: WebSVN 2.1.0

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