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

4.104.11
Last change on this file since 283e6f0 was 283e6f0, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 18, 2008 at 3:09:21 PM

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

  • include/bsp.h: Eliminate definitions of BSP_LIBIO_MAX_FDS since this is NOT used anywhere.
  • Property mode set to 100644
File size: 2.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.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/* miscellaneous stuff assumed to exist */
73
74/*
75 *  Device Driver Table Entries
76 */
77
78/*
79 * NOTE: Use the standard Console driver entry
80 */
81
82/*
83 * NOTE: Use the standard Clock driver entry
84 */
85
86/*
87 * indicate, that BSP has IDE driver
88 */
89#define RTEMS_BSP_HAS_IDE_DRIVER
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif
Note: See TracBrowser for help on using the repository browser.