source: rtems/c/src/lib/libbsp/powerpc/eth_comm/include/bsp.h @ 5c2b904

4.104.114.84.95
Last change on this file since 5c2b904 was 5c2b904, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 29, 2001 at 2:27:47 PM

2001-10-29 Joel Sherrill <joel@…>

  • include/bsp.h: Modify Install_tm27_vector() so this BSP will link tm27.
  • startup/linkcmds: Fix definition of .init and .fini sections so this BSP will properly link with new USE_INIT_FINI support.
  • Property mode set to 100644
File size: 3.0 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 <bspopts.h>
25
26#include <rtems.h>
27#include <console.h>
28#include <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#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
69
70/*
71 *  Stuff for Time Test 27
72 */
73
74#define MUST_WAIT_FOR_INTERRUPT 0
75
76#define Install_tm27_vector( handler ) /* set_vector( (handler), PPC_IRQ_SCALL, 1 ) */
77
78#define Cause_tm27_intr() asm volatile ("sc")
79
80#define Clear_tm27_intr()
81
82#define Lower_tm27_intr()
83
84/* Constants */
85
86#define RAM_START 0
87#define RAM_END   0x100000
88#define IMAP_ADDR ((unsigned int)0xff000000)
89#define IMAP_SIZE ((unsigned int)(16 * 1024))
90/* miscellaneous stuff assumed to exist */
91
92extern rtems_configuration_table BSP_Configuration;
93
94/*
95 *  Device Driver Table Entries
96 */
97
98/*
99 * NOTE: Use the standard Console driver entry
100 */
101 
102/*
103 * NOTE: Use the standard Clock driver entry
104 */
105
106/*
107 * How many libio files we want
108 */
109
110#define BSP_LIBIO_MAX_FDS       20
111
112/* functions */
113
114void bsp_cleanup( void );
115
116void M860ExecuteRISC( rtems_unsigned16 command );
117void *M860AllocateBufferDescriptors( int count );
118void *M860AllocateRiscTimers( int count );
119extern char M860DefaultWatchdogFeeder;
120
121rtems_isr_entry set_vector(                    /* returns old vector */
122  rtems_isr_entry     handler,                  /* isr routine        */
123  rtems_vector_number vector,                   /* vector number      */
124  int                 type                      /* RTEMS or RAW intr  */
125);
126
127#ifdef __cplusplus
128}
129#endif
130
131#endif
132/* end of include file */
Note: See TracBrowser for help on using the repository browser.