source: rtems/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h @ 64efd55b

4.104.114.84.95
Last change on this file since 64efd55b was d4f9cef5, checked in by Joel Sherrill <joel.sherrill@…>, on 06/19/01 at 14:27:24

2001-06-19 Ralf Corsepius <corsepiu@…>

  • configure.in: Add bspopts.h.
  • include/.cvsignore: Add bspopts.h*, stamp-h*.
  • include/Makefile.am: Use *_HEADERS instead of *H_FILES.
  • include/bsp.h: Include bspopts.h.
  • Property mode set to 100644
File size: 3.3 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 <bspopts.h>
26
27#include <rtems.h>
28#include <console.h>
29#include <clockdrv.h>
30#include <mpc8xx.h>
31#include <mpc8xx/cpm.h>
32#include <mpc8xx/mmu.h>
33#include <mpc8xx/console.h>
34#include <bsp/vectors.h>
35
36
37/*
38 *  Representation of initialization data in NVRAM
39 */
40typedef volatile struct nvram_config_ {
41  unsigned char  cache_mode;            /* 0xFA001000 */
42  unsigned char  console_mode;          /* 0xFA001001 */
43  unsigned char  console_printk_port;   /* 0xFA001002 */
44  unsigned char  eppcbug_smc1;          /* 0xFA001003 */
45  unsigned long  ipaddr;                /* 0xFA001004 */
46  unsigned long  netmask;               /* 0xFA001008 */
47  unsigned char  enaddr[6];             /* 0xFA00100C */
48  unsigned short processor_id;          /* 0xFA001012 */
49  unsigned long  rma_start;             /* 0xFA001014 */
50  unsigned long  vma_start;             /* 0xFA001018 */
51  unsigned long  ramsize;               /* 0xFA00101C */
52} nvram_config;
53
54/*
55 *  Pointer to the base of User Area NVRAM
56 */
57#define nvram                   ((nvram_config * const) 0xFA001000)
58
59
60/*
61 * Network driver configuration
62 */
63struct rtems_bsdnet_ifconfig;
64extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
65#define RTEMS_BSP_NETWORK_DRIVER_NAME   "scc1"
66#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
67
68/*
69 * We need to decide how much memory will be non-cacheable. This
70 * will mainly be memory that will be used in DMA (network and serial
71 * buffers).
72 */
73#define NOCACHE_MEM_SIZE 512*1024
74
75/*
76 *  Define the time limits for RTEMS Test Suite test durations.
77 *  Long test and short test duration limits are provided.  These
78 *  values are in seconds and need to be converted to ticks for the
79 *  application.
80 *
81 */
82
83#define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
84#define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
85
86/*
87 *  Stuff for Time Test 27
88 */
89
90#define MUST_WAIT_FOR_INTERRUPT 0
91
92#define Install_tm27_vector( handler ) set_vector( (handler), 0, 1 )
93
94#define Cause_tm27_intr()
95
96#define Clear_tm27_intr()
97
98#define Lower_tm27_intr()
99
100/* miscellaneous stuff assumed to exist */
101
102extern rtems_configuration_table BSP_Configuration;
103
104/*
105 *  Device Driver Table Entries
106 */
107
108/*
109 * NOTE: Use the standard Console driver entry
110 */
111 
112/*
113 * NOTE: Use the standard Clock driver entry
114 */
115
116/*
117 * How many libio files we want
118 */
119
120#define BSP_LIBIO_MAX_FDS       20
121
122/* functions */
123
124void bsp_cleanup( void );
125
126rtems_isr_entry set_vector(                    /* returns old vector */
127  rtems_isr_entry     handler,                  /* isr routine        */
128  rtems_vector_number vector,                   /* vector number      */
129  int                 type                      /* RTEMS or RAW intr  */
130);
131
132#ifdef __cplusplus
133}
134#endif
135
136#endif
137/* end of include file */
Note: See TracBrowser for help on using the repository browser.