source: rtems/c/src/lib/libbsp/m68k/efi332/include/bsp.h @ 11290355

4.104.114.84.95
Last change on this file since 11290355 was 486c329, checked in by Joel Sherrill <joel.sherrill@…>, on 09/20/95 at 15:05:19

Actually adding efi bsp's from John Gwynne after forgetting to
commit them.

  • Property mode set to 100644
File size: 2.9 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all efi332 board IO definitions.
4 *
5 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
6 *  On-Line Applications Research Corporation (OAR).
7 *  All rights assigned to U.S. Government, 1994.
8 *
9 *  This material may be reproduced by or for the U.S. Government pursuant
10 *  to the copyright license under the clause at DFARS 252.227-7013.  This
11 *  notice must appear in all copies of this file and its derivatives.
12 *
13 *  $Id$
14 */
15
16#ifndef __EFI332_BSP_h
17#define __EFI332_BSP_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include <rtems.h>
24#include <clockdrv.h>
25#include <console.h>
26#include <iosupp.h>
27#include <efi332.h>
28#include <sim.h>
29#include <qsm.h>
30
31/*
32 *  Define the time limits for RTEMS Test Suite test durations.
33 *  Long test and short test duration limits are provided.  These
34 *  values are in seconds and need to be converted to ticks for the
35 *  application.
36 *
37 */
38
39#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
40#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
41
42/*
43 *  Define the interrupt mechanism for Time Test 27
44 */
45
46/* XXX - JRS - I want to compile the tmtests */
47
48#define MUST_WAIT_FOR_INTERRUPT 1
49
50#define Install_tm27_vector( handler )
51
52#define Cause_tm27_intr()
53
54#define Clear_tm27_intr()
55
56#define Lower_tm27_intr()
57
58/*
59 *  Simple spin delay in microsecond units for device drivers.
60 *  This is very dependent on the clock speed of the target.
61 */
62
63#define delay( microseconds ) \
64  { register rtems_unsigned32 _delay=(microseconds); \
65    register rtems_unsigned32 _tmp=123; \
66    asm volatile( "0: \
67                     nbcd      %0 ; \
68                     nbcd      %0 ; \
69                     dbf       %1,0b" \
70                  : "=d" (_tmp), "=d" (_delay) \
71                  : "0"  (_tmp), "1"  (_delay) ); \
72  }
73
74/* macros */
75
76#define RAM_START 0x80000
77#define RAM_END   0xc0000
78
79#define RAW_PUTS(str) \
80  { register char *ptr = str; \
81    while (*ptr) outbyte(*ptr++); \
82  }
83
84#define RAW_PUTI(n) { \
85    register int i, j; \
86    \
87    RAW_PUTS("0x"); \
88    for (i=28;i>=0;i -= 4) { \
89      j = (n>>i) & 0xf; \
90      outbyte( (j>9 ? j-10+'a' : j+'0') ); \
91    } \
92  }
93
94/* miscellaneous stuff assumed to exist */
95
96extern rtems_configuration_table BSP_Configuration;
97
98extern m68k_isr_entry M68Kvec[];   /* vector table address */
99
100extern int stack_size;
101
102extern int stack_start;
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/*
117 * How many libio files we want
118 */
119 
120#define BSP_LIBIO_MAX_FDS       20
121
122/* functions */
123
124void bsp_cleanup( void );
125
126m68k_isr_entry set_vector(
127  rtems_isr_entry     handler,
128  rtems_vector_number vector,
129  int                 type
130);
131
132void console_init(void);
133
134void Spurious_Initialize(void);
135
136void _UART_flush(void);
137
138void Clock_exit(void);
139
140void outbyte(char);
141
142#ifdef __cplusplus
143}
144#endif
145
146#endif
147/* end of include file */
Note: See TracBrowser for help on using the repository browser.