RTEMS 7.0-rc1
Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12/*
13 * COPYRIGHT (c) 1995 by i-cubed ltd.
14 *
15 * To anyone who acknowledges that this file is provided "AS IS"
16 * without any express or implied warranty:
17 * permission to use, copy, modify, and distribute this file
18 * for any purpose is hereby granted without fee, provided that
19 * the above copyright notice and this notice appears in all
20 * copies, and that the name of i-cubed limited not be used in
21 * advertising or publicity pertaining to distribution of the
22 * software without specific, written prior permission.
23 * i-cubed limited makes no representations about the suitability
24 * of this software for any purpose.
25*/
26/*
27 * Copyright (C) 1989, 1999 On-Line Applications Research Corporation (OAR)
28 * Copyright (C) 1998 IMD Ingenieurbuero fuer Microcomputertechnik
29 *
30 * Redistribution and use in source and binary forms, with or without
31 * modification, are permitted provided that the following conditions
32 * are met:
33 * 1. Redistributions of source code must retain the above copyright
34 * notice, this list of conditions and the following disclaimer.
35 * 2. Redistributions in binary form must reproduce the above copyright
36 * notice, this list of conditions and the following disclaimer in the
37 * documentation and/or other materials provided with the distribution.
38 *
39 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
40 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
42 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
43 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
44 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
45 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
46 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
47 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 * POSSIBILITY OF SUCH DAMAGE.
50 */
51
52
53/* bsp.h
54 *
55 * This include file contains all GEN405 board IO definitions.
56 *
57 * derived from helas403/include/bsp.h:
58 * Id: bsp.h,v 1.4 2001/06/18 17:01:48 joel Exp
59 * Author: Thomas Doerfler <td@imd.m.isar.de>
60 * IMD Ingenieurbuero fuer Microcomputertechnik
61 *
62 * Changes from IMD are covered by the original distributions terms.
63 * This file has been derived from the papyrus BSP.
64 *
65 * Author: Andrew Bray <andy@i-cubed.co.uk>
66 *
67 * Derived from bsps/no_cpu/no_bsp/include/bsp.h
68 */
69
70#ifndef LIBBSP_POWERPC_VIRTEX_BSP_H
71#define LIBBSP_POWERPC_VIRTEX_BSP_H
72
83#include <bspopts.h>
84
85#ifdef ASM
86/* Definition of where to store registers in alignment handler */
87#define ALIGN_REGS 0x0140
88
89#else
90#include <rtems.h>
91#include <bsp/irq.h>
92#include <bsp/vectors.h>
94
95#ifdef __cplusplus
96extern "C" {
97#endif
98
99#define BSP_FEATURE_IRQ_EXTENSION
100
101/* Network Defines */
102#if 1 /* EB/doe changes */
103#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
104#else
105#include "xiltemac.h"
106#define RTEMS_BSP_NETWORK_DRIVER_NAME XILTEMAC_DRIVER_PREFIX
107#endif
108struct rtems_bsdnet_ifconfig;
109extern int xilTemac_driver_attach(struct rtems_bsdnet_ifconfig*, int );
110#define RTEMS_BSP_NETWORK_DRIVER_ATTACH xilTemac_driver_attach
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif /* ASM */
117
120#endif
PowerPC Exceptions API.
This header file provides the default definition of BSP_INITIAL_EXTENSION.
This header file defines the RTEMS Classic API.