source: rtems/c/src/lib/libbsp/m68k/efi68k/include/bsp.h @ 486c329

4.104.114.84.95
Last change on this file since 486c329 was 486c329, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 20, 1995 at 3:05:19 PM

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

  • Property mode set to 100644
File size: 3.0 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all efi68k 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 __EFI68K_BSP_h
17#define __EFI68K_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 <efi68k.h>
28#include <DP8570A.h>
29#include <16550.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 0x200000
77#define RAM_END   0x240000
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
104extern rtems_unsigned32 Timer_interrupts;
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/*
119 * How many libio files we want
120 */
121 
122#define BSP_LIBIO_MAX_FDS       20
123 
124/* functions */
125
126void bsp_cleanup( void );
127
128m68k_isr_entry set_vector(
129  rtems_isr_entry     handler,
130  rtems_vector_number vector,
131  int                 type
132);
133
134void console_init(void);
135
136void watch_dog_init(void);
137
138void tcp_init(void);
139
140void Spurious_Initialize(void);
141
142void _UART_flush(void);
143
144void Clock_exit(void);
145
146void outbyte(char);
147
148#ifdef __cplusplus
149}
150#endif
151
152#endif
153/* end of include file */
Note: See TracBrowser for help on using the repository browser.