source: rtems/c/src/lib/libbsp/powerpc/eth_comm/include/bsp.h @ 090de1ad

4.104.114.84.95
Last change on this file since 090de1ad was 090de1ad, checked in by Joel Sherrill <joel.sherrill@…>, on 04/11/01 at 14:07:22

2001-04-11 Eric Valette <valette@…>

  • Makefile.am, configure.in, console/console.c, include/Makefile.am, include/bsp.h, network/network.c, startup/Makefile.am, startup/bspstart.c, startup/linkcmds, wrapup/Makefile.am: Switch the eth_comm BSP to use the "new exception processing model."
  • 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.OARcorp.com/rtems/license.html.
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 <rtems.h>
25#include <console.h>
26#include <clockdrv.h>
27#include <mpc8xx.h>
28#include <mpc8xx/cpm.h>
29#include <mpc8xx/mmu.h>
30#include <mpc8xx/console.h>
31
32/*
33 *  confdefs.h overrides for this BSP:
34 *   - 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  (4 * 1024)
40 
41/*
42 * Network driver configuration
43 */
44struct rtems_bsdnet_ifconfig;
45extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config);
46#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth1"
47#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
48
49/*
50 * We need to decide how much memory will be non-cacheable. This
51 * will mainly be memory that will be used in DMA (network and serial
52 * buffers).
53 */
54#define NOCACHE_MEM_SIZE 512*1024
55
56/*
57 *  Define the time limits for RTEMS Test Suite test durations.
58 *  Long test and short test duration limits are provided.  These
59 *  values are in seconds and need to be converted to ticks for the
60 *  application.
61 *
62 */
63
64#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
65#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
66
67/*
68 *  Stuff for Time Test 27
69 */
70
71#define MUST_WAIT_FOR_INTERRUPT 0
72
73#define Install_tm27_vector( handler ) set_vector( (handler), PPC_IRQ_SCALL, 1 )
74
75#define Cause_tm27_intr() asm volatile ("sc")
76
77#define Clear_tm27_intr()
78
79#define Lower_tm27_intr()
80
81/* Constants */
82
83#define RAM_START 0
84#define RAM_END   0x100000
85#define IMAP_ADDR ((unsigned int)0xff000000)
86#define IMAP_SIZE ((unsigned int)(16 * 1024))
87/* miscellaneous stuff assumed to exist */
88
89extern rtems_configuration_table BSP_Configuration;
90
91/*
92 *  Device Driver Table Entries
93 */
94
95/*
96 * NOTE: Use the standard Console driver entry
97 */
98 
99/*
100 * NOTE: Use the standard Clock driver entry
101 */
102
103/*
104 * How many libio files we want
105 */
106
107#define BSP_LIBIO_MAX_FDS       20
108
109/* functions */
110
111void bsp_cleanup( void );
112
113void M860ExecuteRISC( rtems_unsigned16 command );
114void *M860AllocateBufferDescriptors( int count );
115void *M860AllocateRiscTimers( int count );
116extern char M860DefaultWatchdogFeeder;
117
118rtems_isr_entry set_vector(                    /* returns old vector */
119  rtems_isr_entry     handler,                  /* isr routine        */
120  rtems_vector_number vector,                   /* vector number      */
121  int                 type                      /* RTEMS or RAW intr  */
122);
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif
129/* end of include file */
Note: See TracBrowser for help on using the repository browser.