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

4.115
Last change on this file since 46dde0fc was 46dde0fc, checked in by Sebastian Huber <sebastian.huber@…>, on 10/23/14 at 08:05:17

bsps: Move extern "C" to not cover includes

Some includes may use C++ and this conflicts if surrounded extern "C".

  • 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.org/license/LICENSE.
13 */
14
15#ifndef _BSP_H
16#define _BSP_H
17
18#include <bspopts.h>
19#include <bsp/default-initial-extension.h>
20
21#include <rtems.h>
22#include <rtems/console.h>
23#include <rtems/clockdrv.h>
24#include <mpc8xx.h>
25#include <mpc8xx/cpm.h>
26#include <mpc8xx/mmu.h>
27#include <mpc8xx/console.h>
28#include <bsp/vectors.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
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 * Network driver configuration
58 */
59struct rtems_bsdnet_ifconfig;
60extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching);
61#define RTEMS_BSP_NETWORK_DRIVER_NAME   "scc1"
62#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_enet_driver_attach
63
64/*
65 * We need to decide how much memory will be non-cacheable. This
66 * will mainly be memory that will be used in DMA (network and serial
67 * buffers).
68 */
69#define NOCACHE_MEM_SIZE 512*1024
70
71/*
72 * indicate, that BSP has IDE driver
73 */
74#define RTEMS_BSP_HAS_IDE_DRIVER
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif
Note: See TracBrowser for help on using the repository browser.