source: rtems/c/src/lib/libbsp/powerpc/mbx8xx/include/bsp.h @ 00ff4cd

4.104.114.84.95
Last change on this file since 00ff4cd was 00ff4cd, checked in by Joel Sherrill <joel.sherrill@…>, on 08/25/00 at 17:24:49

2000-08-11 Charles-Antoine Gauthier <charles.gauthier@…>

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