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