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

4.104.114.84.95
Last change on this file since 4e36a2f was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

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