source: rtems/c/src/lib/libbsp/powerpc/virtex/include/bsp.h @ 36ba3fc

4.104.114.95
Last change on this file since 36ba3fc was 36ba3fc, checked in by Till Straumann <strauman@…>, on 07/23/08 at 06:54:18

2008-07-22 Till Straumann <strauman@…>

  • irq/irq_init.c, include/bsp.h: define BSP_PPC403_CLOCK_HOOK_EXCEPTION so that we hook the timer exception rather than going through the interrupt dispatcher.
  • Property mode set to 100644
File size: 2.9 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all GEN405 board IO definitions.
4 *
5 * derived from helas403/include/bsp.h:
6 *  Id: bsp.h,v 1.4 2001/06/18 17:01:48 joel Exp
7 *  Author:     Thomas Doerfler <td@imd.m.isar.de>
8 *              IMD Ingenieurbuero fuer Microcomputertechnik
9 *
10 *  COPYRIGHT (c) 1998 by IMD
11 *
12 *  Changes from IMD are covered by the original distributions terms.
13 *  This file has been derived from the papyrus BSP.
14 *
15 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
16 *
17 *  COPYRIGHT (c) 1995 by i-cubed ltd.
18 *
19 *  To anyone who acknowledges that this file is provided "AS IS"
20 *  without any express or implied warranty:
21 *      permission to use, copy, modify, and distribute this file
22 *      for any purpose is hereby granted without fee, provided that
23 *      the above copyright notice and this notice appears in all
24 *      copies, and that the name of i-cubed limited not be used in
25 *      advertising or publicity pertaining to distribution of the
26 *      software without specific, written prior permission.
27 *      i-cubed limited makes no representations about the suitability
28 *      of this software for any purpose.
29 *
30 *  Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
31 *
32 *  COPYRIGHT (c) 1989-1999.
33 *  On-Line Applications Research Corporation (OAR).
34 *
35 *  The license and distribution terms for this file may be
36 *  found in the file LICENSE in this distribution or at
37 *  http://www.rtems.com/license/LICENSE.
38 *
39 *  $Id$
40 *
41 */
42
43#ifndef _BSP_H
44#define _BSP_H
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50#include <bspopts.h>
51
52#ifdef ASM
53/* Definition of where to store registers in alignment handler */
54#define ALIGN_REGS 0x0140
55
56#else
57#include <rtems.h>
58#include <rtems/console.h>
59#include <rtems/clockdrv.h>
60#include <rtems/console.h>
61#include <rtems/iosupp.h>
62#include <bsp/irq.h>
63#include <bsp/vectors.h>
64
65/* Constants */
66
67extern uint32_t _HeapSize;
68extern uint32_t _heap_start;
69extern uint32_t _heap_end;
70extern uint32_t _top_of_ram;
71
72/* miscellaneous stuff assumed to exist */
73
74/* Network Defines */
75#if 1 /* EB/doe changes */
76#define RTEMS_BSP_NETWORK_DRIVER_NAME     "eth0"
77#else
78#include "xiltemac.h"
79#define RTEMS_BSP_NETWORK_DRIVER_NAME     XILTEMAC_DRIVER_PREFIX
80#endif
81extern xilTemac_driver_attach(struct rtems_bsdnet_ifconfig*, int );
82#define RTEMS_BSP_NETWORK_DRIVER_ATTACH xilTemac_driver_attach
83
84#define BSP_PPC403_CLOCK_HOOK_EXCEPTION ASM_BOOKE_DEC_VECTOR
85
86/*
87 *  Device Driver Table Entries
88 */
89
90/*
91 * NOTE: Use the standard Console driver entry
92 */
93
94/*
95 * NOTE: Use the standard Clock driver entry
96 */
97
98/* functions */
99
100rtems_isr_entry set_vector(                    /* returns old vector */
101  rtems_isr_entry     handler,                  /* isr routine        */
102  rtems_vector_number vector,                   /* vector number      */
103  int                 type                      /* RTEMS or RAW intr  */
104);
105#endif /* ASM */
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif
Note: See TracBrowser for help on using the repository browser.