source: rtems/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h @ 182712f7

4.104.114.84.95
Last change on this file since 182712f7 was 182712f7, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 12, 2001 at 9:07:01 PM

2001-10-12 Joel Sherrill <joel@…>

  • clock/p_clock.c, include/bsp.h, include/coverhd.h, startup/bspstart.c, startup/bspstart.c.nocache, startup/setvec.c, startup/start.S: Fixed typo.
  • 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 *
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 __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 <console.h>
28#include <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 * How many libio files we want
117 */
118
119#define BSP_LIBIO_MAX_FDS       20
120
121/* functions */
122
123void bsp_cleanup( void );
124
125rtems_isr_entry set_vector(                    /* returns old vector */
126  rtems_isr_entry     handler,                  /* isr routine        */
127  rtems_vector_number vector,                   /* vector number      */
128  int                 type                      /* RTEMS or RAW intr  */
129);
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif
136/* end of include file */
Note: See TracBrowser for help on using the repository browser.