1 | /* bsp.h |
---|
2 | * |
---|
3 | * This include file contains all board IO definitions. |
---|
4 | * |
---|
5 | * XXX : put yours in here |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-1998. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * Copyright assigned to U.S. Government, 1994. |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.OARcorp.com/rtems/license.html. |
---|
14 | * |
---|
15 | * $Id$ |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef __NO_BSP_h |
---|
19 | #define __NO_BSP_h |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | #include <rtems.h> |
---|
26 | #include <console.h> |
---|
27 | #include <clockdrv.h> |
---|
28 | |
---|
29 | /* |
---|
30 | * Network driver configuration |
---|
31 | */ |
---|
32 | struct rtems_bsdnet_ifconfig; |
---|
33 | extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config); |
---|
34 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth1" |
---|
35 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach |
---|
36 | |
---|
37 | /* |
---|
38 | * We need to decide how much memory will be non-cacheable. This |
---|
39 | * will mainly be memory that will be used in DMA (network and serial |
---|
40 | * buffers). |
---|
41 | */ |
---|
42 | #define NOCACHE_MEM_SIZE 512*1024 |
---|
43 | |
---|
44 | /* |
---|
45 | * Define the time limits for RTEMS Test Suite test durations. |
---|
46 | * Long test and short test duration limits are provided. These |
---|
47 | * values are in seconds and need to be converted to ticks for the |
---|
48 | * application. |
---|
49 | * |
---|
50 | */ |
---|
51 | |
---|
52 | #define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */ |
---|
53 | #define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */ |
---|
54 | |
---|
55 | /* |
---|
56 | * Stuff for Time Test 27 |
---|
57 | */ |
---|
58 | |
---|
59 | #define MUST_WAIT_FOR_INTERRUPT 0 |
---|
60 | |
---|
61 | #define Install_tm27_vector( handler ) set_vector( (handler), PPC_IRQ_SCALL, 1 ) |
---|
62 | |
---|
63 | #define Cause_tm27_intr() asm volatile ("sc") |
---|
64 | |
---|
65 | #define Clear_tm27_intr() |
---|
66 | |
---|
67 | #define Lower_tm27_intr() |
---|
68 | |
---|
69 | /* Constants */ |
---|
70 | |
---|
71 | #define RAM_START 0 |
---|
72 | #define RAM_END 0x100000 |
---|
73 | |
---|
74 | /* miscellaneous stuff assumed to exist */ |
---|
75 | |
---|
76 | extern rtems_configuration_table BSP_Configuration; |
---|
77 | |
---|
78 | /* |
---|
79 | * Device Driver Table Entries |
---|
80 | */ |
---|
81 | |
---|
82 | /* |
---|
83 | * NOTE: Use the standard Console driver entry |
---|
84 | */ |
---|
85 | |
---|
86 | /* |
---|
87 | * NOTE: Use the standard Clock driver entry |
---|
88 | */ |
---|
89 | |
---|
90 | /* |
---|
91 | * How many libio files we want |
---|
92 | */ |
---|
93 | |
---|
94 | #define BSP_LIBIO_MAX_FDS 20 |
---|
95 | |
---|
96 | /* functions */ |
---|
97 | |
---|
98 | void bsp_cleanup( void ); |
---|
99 | |
---|
100 | void M860ExecuteRISC( rtems_unsigned16 command ); |
---|
101 | void *M860AllocateBufferDescriptors( int count ); |
---|
102 | void *M860AllocateRiscTimers( int count ); |
---|
103 | extern char M860DefaultWatchdogFeeder; |
---|
104 | |
---|
105 | rtems_isr_entry set_vector( /* returns old vector */ |
---|
106 | rtems_isr_entry handler, /* isr routine */ |
---|
107 | rtems_vector_number vector, /* vector number */ |
---|
108 | int type /* RTEMS or RAW intr */ |
---|
109 | ); |
---|
110 | |
---|
111 | #ifdef __cplusplus |
---|
112 | } |
---|
113 | #endif |
---|
114 | |
---|
115 | #endif |
---|
116 | /* end of include file */ |
---|