source: rtems/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h @ 52dace9

4.104.114.84.95
Last change on this file since 52dace9 was 52dace9, checked in by Joel Sherrill <joel.sherrill@…>, on 04/20/01 at 17:29:09

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

  • include/bsp.h: Added include of <bsp/vectors.h>
  • vectors/vectors.h: Corrected typos.
  • Property mode set to 100644
File size: 3.2 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  This file includes definitions for the MBX860 and MBX821.
6 *
7 *  COPYRIGHT (c) 1989-1998.
8 *  On-Line Applications Research Corporation (OAR).
9 *  Copyright assigned to U.S. Government, 1994.
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.OARcorp.com/rtems/license.html.
14 *
15 *  $Id$
16 */
17
18#ifndef __MBX8xx_h
19#define __MBX8xx_h
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <rtems.h>
26#include <console.h>
27#include <clockdrv.h>
28#include <mpc8xx.h>
29#include <mpc8xx/cpm.h>
30#include <mpc8xx/mmu.h>
31#include <mpc8xx/console.h>
32#include <bsp/vectors.h>
33
34
35/*
36 *  Representation of initialization data in NVRAM
37 */
38typedef volatile struct nvram_config_ {
39  unsigned char  cache_mode;            /* 0xFA001000 */
40  unsigned char  console_mode;          /* 0xFA001001 */
41  unsigned char  console_printk_port;   /* 0xFA001002 */
42  unsigned char  eppcbug_smc1;          /* 0xFA001003 */
43  unsigned long  ipaddr;                /* 0xFA001004 */
44  unsigned long  netmask;               /* 0xFA001008 */
45  unsigned char  enaddr[6];             /* 0xFA00100C */
46  unsigned short processor_id;          /* 0xFA001012 */
47  unsigned long  rma_start;             /* 0xFA001014 */
48  unsigned long  vma_start;             /* 0xFA001018 */
49  unsigned long  ramsize;               /* 0xFA00101C */
50} nvram_config;
51
52/*
53 *  Pointer to the base of User Area NVRAM
54 */
55#define nvram                   ((nvram_config * const) 0xFA001000)
56
57
58/*
59 * Network driver configuration
60 */
61struct rtems_bsdnet_ifconfig;
62extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
63#define RTEMS_BSP_NETWORK_DRIVER_NAME   "scc1"
64#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
65
66/*
67 * We need to decide how much memory will be non-cacheable. This
68 * will mainly be memory that will be used in DMA (network and serial
69 * buffers).
70 */
71#define NOCACHE_MEM_SIZE 512*1024
72
73/*
74 *  Define the time limits for RTEMS Test Suite test durations.
75 *  Long test and short test duration limits are provided.  These
76 *  values are in seconds and need to be converted to ticks for the
77 *  application.
78 *
79 */
80
81#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
82#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
83
84/*
85 *  Stuff for Time Test 27
86 */
87
88#define MUST_WAIT_FOR_INTERRUPT 0
89
90#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
91
92#define Cause_tm27_intr()
93
94#define Clear_tm27_intr()
95
96#define Lower_tm27_intr()
97
98/* miscellaneous stuff assumed to exist */
99
100extern rtems_configuration_table BSP_Configuration;
101
102/*
103 *  Device Driver Table Entries
104 */
105
106/*
107 * NOTE: Use the standard Console driver entry
108 */
109 
110/*
111 * NOTE: Use the standard Clock driver entry
112 */
113
114/*
115 * How many libio files we want
116 */
117
118#define BSP_LIBIO_MAX_FDS       20
119
120/* functions */
121
122void bsp_cleanup( void );
123
124rtems_isr_entry set_vector(                    /* returns old vector */
125  rtems_isr_entry     handler,                  /* isr routine        */
126  rtems_vector_number vector,                   /* vector number      */
127  int                 type                      /* RTEMS or RAW intr  */
128);
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif
135/* end of include file */
Note: See TracBrowser for help on using the repository browser.