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

4.104.114.84.95
Last change on this file since d366f2aa was d366f2aa, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:51:46

2003-09-04 Joel Sherrill <joel@…>

  • clock/ckinit.c, console/console.c, include/16550.h, include/DP8570A.h, include/bsp.h, spurious/spinit.c, startup/bspclean.c, startup/bspstart.c, startup/efi68k_tcp.c, startup/efi68k_wd.c, startup/setvec.c, timer/timer.c: URL for license changed.
  • Property mode set to 100644
File size: 3.4 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all efi68k board IO 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.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#ifndef __EFI68K_BSP_h
16#define __EFI68K_BSP_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <bspopts.h>
23
24#include <rtems.h>
25#include <clockdrv.h>
26#include <console.h>
27#include <iosupp.h>
28#include <efi68k.h>
29#include <DP8570A.h>
30#include <16550.h>
31
32/*
33 *  confdefs.h overrides for this BSP:
34 *   - number of termios serial ports (defaults to 1)
35 *   - Interrupt stack space is not minimum if defined.
36 */
37
38/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
39/* #define CONFIGURE_INTERRUPT_STACK_MEMORY  (TBD * 1024) */
40
41/*
42 *  Define the time limits for RTEMS Test Suite test durations.
43 *  Long test and short test duration limits are provided.  These
44 *  values are in seconds and need to be converted to ticks for the
45 *  application.
46 *
47 */
48
49#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
50#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
51
52/*
53 *  Define the interrupt mechanism for Time Test 27
54 */
55
56/* XXX - JRS - I want to compile the tmtests */
57
58#define MUST_WAIT_FOR_INTERRUPT 1
59
60#define Install_tm27_vector( handler )
61
62#define Cause_tm27_intr()
63
64#define Clear_tm27_intr()
65
66#define Lower_tm27_intr()
67
68/*
69 *  Simple spin delay in microsecond units for device drivers.
70 *  This is very dependent on the clock speed of the target.
71 */
72
73#define rtems_bsp_delay( microseconds ) \
74  { register rtems_unsigned32 _delay=(microseconds); \
75    register rtems_unsigned32 _tmp=123; \
76    asm volatile( "0: \
77                     nbcd      %0 ; \
78                     nbcd      %0 ; \
79                     dbf       %1,0b" \
80                  : "=d" (_tmp), "=d" (_delay) \
81                  : "0"  (_tmp), "1"  (_delay) ); \
82  }
83
84/* externals */
85
86extern char _etext[];
87extern char _copy_start[];
88extern char _edata[];
89extern char _clear_start[];
90extern char end[];
91extern char _copy_data_from_rom[];
92extern char __end_of_ram[];
93
94/* constants */
95
96#define RAM_END ((int)__end_of_ram)
97
98#ifdef __START_C__
99#define STACK_SIZE "#0x800"
100#else
101#define STACK_SIZE 0x800
102#endif
103
104/* macros */
105
106#define RAW_PUTS(str) \
107  { register char *ptr = str; \
108    while (*ptr) outbyte(*ptr++); \
109  }
110
111#define RAW_PUTI(n) { \
112    register int i, j; \
113    \
114    RAW_PUTS("0x"); \
115    for (i=28;i>=0;i -= 4) { \
116      j = (n>>i) & 0xf; \
117      outbyte( (j>9 ? j-10+'a' : j+'0') ); \
118    } \
119  }
120
121/* miscellaneous stuff assumed to exist */
122
123extern rtems_configuration_table BSP_Configuration;
124
125extern m68k_isr_entry M68Kvec[];   /* vector table address */
126
127extern int stack_size;
128
129extern int stack_start;
130
131extern rtems_unsigned32 Timer_interrupts;
132
133/*
134 *  Device Driver Table Entries
135 */
136 
137/*
138 * NOTE: Use the standard Console driver entry
139 */
140 
141/*
142 * NOTE: Use the standard Clock driver entry
143 */
144 
145/* functions */
146
147void bsp_cleanup( void );
148
149m68k_isr_entry set_vector(
150  rtems_isr_entry     handler,
151  rtems_vector_number vector,
152  int                 type
153);
154
155void console_init(void);
156
157void watch_dog_init(void);
158
159void bsp_tcp_init(void);
160
161void Spurious_Initialize(void);
162
163void _UART_flush(void);
164
165void Clock_exit(void);
166
167void outbyte(char);
168
169#ifdef __cplusplus
170}
171#endif
172
173#endif
174/* end of include file */
Note: See TracBrowser for help on using the repository browser.