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

4.104.114.84.95
Last change on this file since df49c60 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

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