1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains all Motorola 680x0 IDP board IO definitions. |
---|
4 | * |
---|
5 | * $Id$ |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef __IDP_BSP_H |
---|
9 | #define __IDP_BSP_H |
---|
10 | |
---|
11 | #include <bspopts.h> |
---|
12 | |
---|
13 | #include <rtems.h> |
---|
14 | #include <console.h> |
---|
15 | #include <clockdrv.h> |
---|
16 | #include <motorola/mc68230.h> |
---|
17 | #include <motorola/mc68681.h> |
---|
18 | |
---|
19 | /* |
---|
20 | * confdefs.h overrides for this BSP: |
---|
21 | * - number of termios serial ports (defaults to 1) |
---|
22 | * - Interrupt stack space is not minimum if defined. |
---|
23 | */ |
---|
24 | |
---|
25 | /* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */ |
---|
26 | #define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024) |
---|
27 | |
---|
28 | #define DUART_ADDR 0xb00003 /* base address of the MC68681 DUART */ |
---|
29 | |
---|
30 | /* |
---|
31 | * Define the time limits for RTEMS Test Suite test durations. |
---|
32 | * Long test and short test duration limits are provided. These |
---|
33 | * values are in seconds and need to be converted to ticks for the |
---|
34 | * application. |
---|
35 | */ |
---|
36 | |
---|
37 | #define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */ |
---|
38 | #define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */ |
---|
39 | |
---|
40 | /* |
---|
41 | * Define the interrupt mechanism for Time Test 27 |
---|
42 | * |
---|
43 | * NOTE: tm27 apparently not supported. |
---|
44 | */ |
---|
45 | |
---|
46 | #define MUST_WAIT_FOR_INTERRUPT 0 |
---|
47 | |
---|
48 | #define Install_tm27_vector( handler ) |
---|
49 | |
---|
50 | #define Cause_tm27_intr() |
---|
51 | |
---|
52 | #define Clear_tm27_intr() |
---|
53 | |
---|
54 | #define Lower_tm27_intr() |
---|
55 | |
---|
56 | /* Constants */ |
---|
57 | |
---|
58 | #define RAM_START 0 |
---|
59 | #define RAM_END 0x200000 |
---|
60 | |
---|
61 | #ifdef MIDP_INIT |
---|
62 | #undef EXTERN |
---|
63 | #define EXTERN |
---|
64 | #else |
---|
65 | #undef EXTERN |
---|
66 | #define EXTERN extern |
---|
67 | #endif |
---|
68 | |
---|
69 | /* |
---|
70 | * Device Driver Table Entries |
---|
71 | */ |
---|
72 | |
---|
73 | /* |
---|
74 | * NOTE: Use the standard Console driver entry |
---|
75 | */ |
---|
76 | |
---|
77 | /* |
---|
78 | * NOTE: Use the standard Clock driver entry |
---|
79 | */ |
---|
80 | |
---|
81 | /* miscellaneous stuff assumed to exist */ |
---|
82 | |
---|
83 | extern rtems_configuration_table BSP_Configuration; |
---|
84 | |
---|
85 | extern m68k_isr_entry M68Kvec[]; /* vector table address */ |
---|
86 | |
---|
87 | /* functions */ |
---|
88 | |
---|
89 | void bsp_cleanup( void ); |
---|
90 | |
---|
91 | m68k_isr_entry set_vector( |
---|
92 | rtems_isr_entry handler, |
---|
93 | rtems_vector_number vector, |
---|
94 | int type |
---|
95 | ); |
---|
96 | |
---|
97 | void init_pit( void ); |
---|
98 | |
---|
99 | void transmit_char( char ch ); |
---|
100 | |
---|
101 | void transmit_char_portb( char ch ); |
---|
102 | |
---|
103 | #endif |
---|
104 | /* end of include file */ |
---|