source: rtems/c/src/lib/libbsp/powerpc/tqm8xx/include/bsp.h @ 63de714c

4.104.114.95
Last change on this file since 63de714c was 63de714c, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 09/08/08 at 09:55:39

added new BSP for TQM8xx boards

  • Property mode set to 100644
File size: 4.9 KB
Line 
1/*===============================================================*\
2| Project: RTEMS TQM8xx BSP                                       |
3+-----------------------------------------------------------------+
4| This file has been adapted to MPC8xx by                         |
5|    Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>         |
6|                    Copyright (c) 2008                           |
7|                    Embedded Brains GmbH                         |
8|                    Obere Lagerstr. 30                           |
9|                    D-82178 Puchheim                             |
10|                    Germany                                      |
11|                    rtems@embedded-brains.de                     |
12|                                                                 |
13| See the other copyright notice below for the original parts.    |
14+-----------------------------------------------------------------+
15| The license and distribution terms for this file may be         |
16| found in the file LICENSE in this distribution or at            |
17|                                                                 |
18| http://www.rtems.com/license/LICENSE.                           |
19|                                                                 |
20+-----------------------------------------------------------------+
21| this file contains the console driver                           |
22\*===============================================================*/
23/* derived from MBX8xx BSP: */
24/*  bsp.h
25 *
26 *  This include file contains all board IO definitions.
27 *
28 *  This file includes definitions for the MBX860 and MBX821.
29 *
30 *  COPYRIGHT (c) 1989-1998.
31 *  On-Line Applications Research Corporation (OAR).
32 *
33 *  The license and distribution terms for this file may be
34 *  found in the file LICENSE in this distribution or at
35 *  http://www.rtems.com/license/LICENSE.
36 *
37 *  $Id$
38 */
39
40#ifndef _BSP_H
41#define _BSP_H
42
43/*
44 * indicate, that BSP is booted via TQMMon
45 */
46#define BSP_HAS_TQMMON
47
48LINKER_SYMBOL(TopRamReserved);
49
50LINKER_SYMBOL( bsp_ram_start);
51LINKER_SYMBOL( bsp_ram_end);
52LINKER_SYMBOL( bsp_ram_size);
53
54LINKER_SYMBOL( bsp_rom_start);
55LINKER_SYMBOL( bsp_rom_end);
56LINKER_SYMBOL( bsp_rom_size);
57
58LINKER_SYMBOL( bsp_section_text_start);
59LINKER_SYMBOL( bsp_section_text_end);
60LINKER_SYMBOL( bsp_section_text_size);
61
62LINKER_SYMBOL( bsp_section_data_start);
63LINKER_SYMBOL( bsp_section_data_end);
64LINKER_SYMBOL( bsp_section_data_size);
65
66LINKER_SYMBOL( bsp_section_bss_start);
67LINKER_SYMBOL( bsp_section_bss_end);
68LINKER_SYMBOL( bsp_section_bss_size);
69
70LINKER_SYMBOL( bsp_interrupt_stack_start);
71LINKER_SYMBOL( bsp_interrupt_stack_end);
72LINKER_SYMBOL( bsp_interrupt_stack_size);
73
74LINKER_SYMBOL( bsp_work_area_start);
75
76#ifndef ASM
77#ifdef __cplusplus
78extern "C" {
79#endif
80
81#include <bspopts.h>
82
83#include <rtems.h>
84#include <rtems/console.h>
85#include <rtems/clockdrv.h>
86#include <mpc8xx.h>
87#include <mpc8xx/cpm.h>
88#include <mpc8xx/mmu.h>
89#include <mpc8xx/console.h>
90#include <bsp/vectors.h>
91#include <bsp/tqm.h>
92#include <libcpu/powerpc-utility.h>
93
94/*
95 * Network driver configuration
96 */
97struct rtems_bsdnet_ifconfig;
98
99#if BSP_USE_NETWORK_FEC
100extern int rtems_fec_enet_driver_attach (struct rtems_bsdnet_ifconfig *config,
101                                         int attaching);
102#define RTEMS_BSP_FEC_NETWORK_DRIVER_NAME       "fec1"
103#define RTEMS_BSP_FEC_NETWORK_DRIVER_ATTACH     rtems_fec_enet_driver_attach
104#endif
105
106#if BSP_USE_NETWORK_SCC
107extern int rtems_scc_enet_driver_attach (struct rtems_bsdnet_ifconfig *config,
108                                         int attaching);
109#define RTEMS_BSP_SCC_NETWORK_DRIVER_NAME       "scc1"
110#define RTEMS_BSP_SCC_NETWORK_DRIVER_ATTACH     rtems_scc_enet_driver_attach
111#endif
112
113#if BSP_USE_NETWORK_FEC
114#define RTEMS_BSP_NETWORK_DRIVER_NAME   RTEMS_BSP_FEC_NETWORK_DRIVER_NAME       
115#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_FEC_NETWORK_DRIVER_ATTACH     
116#elif BSP_USE_NETWORK_SCC
117#define RTEMS_BSP_NETWORK_DRIVER_NAME   RTEMS_BSP_SCC_NETWORK_DRIVER_NAME       
118#define RTEMS_BSP_NETWORK_DRIVER_ATTACH RTEMS_BSP_SCC_NETWORK_DRIVER_ATTACH     
119#endif
120/*
121 * We need to decide how much memory will be non-cacheable. This
122 * will mainly be memory that will be used in DMA (network and serial
123 * buffers).
124 */
125#define NOCACHE_MEM_SIZE 512*1024
126
127/* miscellaneous stuff assumed to exist */
128
129/*
130 *  Device Driver Table Entries
131 */
132
133/*
134 * NOTE: Use the standard Console driver entry
135 */
136
137/*
138 * NOTE: Use the standard Clock driver entry
139 */
140
141/*
142 * indicate, that BSP has IDE driver
143 */
144#undef RTEMS_BSP_HAS_IDE_DRIVER
145
146/*
147 * How many libio files we want
148 */
149
150#define BSP_LIBIO_MAX_FDS       20
151
152/*
153 * our bus frequency
154 */
155extern unsigned int BSP_bus_frequency;
156
157/* functions */
158
159void bsp_cleanup( void );
160
161rtems_isr_entry set_vector(                    /* returns old vector */
162  rtems_isr_entry     handler,                  /* isr routine        */
163  rtems_vector_number vector,                   /* vector number      */
164  int                 type                      /* RTEMS or RAW intr  */
165);
166
167
168#ifdef __cplusplus
169}
170#endif
171#endif
172#endif
Note: See TracBrowser for help on using the repository browser.