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

4.104.115
Last change on this file since bc98089 was ccceaf3, checked in by Joel Sherrill <joel.sherrill@…>, on 09/18/08 at 17:42:45

2008-09-18 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h: Remove unnecessary boilerplate comments.
  • Property mode set to 100644
File size: 2.1 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 _BSP_H
18#define _BSP_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 *  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 * 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 * indicate, that BSP has IDE driver
74 */
75#define RTEMS_BSP_HAS_IDE_DRIVER
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif
Note: See TracBrowser for help on using the repository browser.