source: rtems/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h @ 152c523

4.104.114.84.95
Last change on this file since 152c523 was 152c523, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/01/04 at 10:10:49

2004-04-01 Ralf Corsepius <ralf_corsepius@…>

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