source: rtems/c/src/lib/libbsp/powerpc/eth_comm/include/bsp.h @ 7dd6e8d

4.104.114.84.95
Last change on this file since 7dd6e8d was 7dd6e8d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 16:16:38

2004-04-21 Ralf Corsepius <ralf_corsepius@…>

PR 614/bsps

  • include/bsp.h: Remove MAX_SHORT_TEST_DURATION (Unused).
  • Property mode set to 100644
File size: 2.9 KB
Line 
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-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#ifndef __NO_BSP_h
18#define __NO_BSP_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <bspopts.h>
25
26#include <rtems.h>
27#include <rtems/console.h>
28#include <rtems/clockdrv.h>
29#include <mpc8xx.h>
30#include <mpc8xx/cpm.h>
31#include <mpc8xx/mmu.h>
32#include <mpc8xx/console.h>
33#include <bsp/vectors.h>
34
35/*
36 *  confdefs.h overrides for this BSP:
37 *   - termios serial ports (defaults to 1)
38 *   - Interrupt stack space is not minimum if defined.
39 */
40
41/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
42#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
43
44/*
45 * Network driver configuration
46 */
47struct rtems_bsdnet_ifconfig;
48extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config);
49#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth1"
50#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
51
52/*
53 * We need to decide how much memory will be non-cacheable. This
54 * will mainly be memory that will be used in DMA (network and serial
55 * buffers).
56 */
57#define NOCACHE_MEM_SIZE 512*1024
58
59/*
60 *  Define the time limits for RTEMS Test Suite test durations.
61 *  Long test and short test duration limits are provided.  These
62 *  values are in seconds and need to be converted to ticks for the
63 *  application.
64 *
65 */
66
67#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
68
69/*
70 *  Stuff for Time Test 27
71 */
72
73#define MUST_WAIT_FOR_INTERRUPT 0
74
75#define Install_tm27_vector( handler ) /* set_vector( (handler), PPC_IRQ_SCALL, 1 ) */
76
77#define Cause_tm27_intr() asm volatile ("sc")
78
79#define Clear_tm27_intr()
80
81#define Lower_tm27_intr()
82
83/* Constants */
84
85#define RAM_START 0
86#define RAM_END   0x100000
87#define IMAP_ADDR ((unsigned int)0xff000000)
88#define IMAP_SIZE ((unsigned int)(16 * 1024))
89/* miscellaneous stuff assumed to exist */
90
91extern rtems_configuration_table BSP_Configuration;
92
93/*
94 *  Device Driver Table Entries
95 */
96
97/*
98 * NOTE: Use the standard Console driver entry
99 */
100
101/*
102 * NOTE: Use the standard Clock driver entry
103 */
104
105/*
106 * How many libio files we want
107 */
108
109#define BSP_LIBIO_MAX_FDS       20
110
111/* functions */
112
113void bsp_cleanup( void );
114
115void M860ExecuteRISC( uint16_t   command );
116void *M860AllocateBufferDescriptors( int count );
117void *M860AllocateRiscTimers( int count );
118extern char M860DefaultWatchdogFeeder;
119
120rtems_isr_entry set_vector(                    /* returns old vector */
121  rtems_isr_entry     handler,                  /* isr routine        */
122  rtems_vector_number vector,                   /* vector number      */
123  int                 type                      /* RTEMS or RAW intr  */
124);
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif
131/* end of include file */
Note: See TracBrowser for help on using the repository browser.