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 | */ |
---|
40 | |
---|
41 | #ifndef _BSP_H |
---|
42 | #define _BSP_H |
---|
43 | |
---|
44 | #ifdef __cplusplus |
---|
45 | extern "C" { |
---|
46 | #endif |
---|
47 | |
---|
48 | #include <bspopts.h> |
---|
49 | |
---|
50 | #ifdef ASM |
---|
51 | /* Definition of where to store registers in alignment handler */ |
---|
52 | #define ALIGN_REGS 0x0140 |
---|
53 | |
---|
54 | #else |
---|
55 | #include <rtems.h> |
---|
56 | #include <rtems/console.h> |
---|
57 | #include <rtems/clockdrv.h> |
---|
58 | #include <rtems/console.h> |
---|
59 | #include <rtems/iosupp.h> |
---|
60 | #include <bsp/irq.h> |
---|
61 | #include <bsp/vectors.h> |
---|
62 | #include <bsp/default-initial-extension.h> |
---|
63 | |
---|
64 | #define BSP_FEATURE_IRQ_EXTENSION |
---|
65 | |
---|
66 | #define BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN |
---|
67 | |
---|
68 | /* miscellaneous stuff assumed to exist */ |
---|
69 | extern bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */ |
---|
70 | |
---|
71 | /* Network Defines */ |
---|
72 | #if 1 /* EB/doe changes */ |
---|
73 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0" |
---|
74 | #else |
---|
75 | #include "xiltemac.h" |
---|
76 | #define RTEMS_BSP_NETWORK_DRIVER_NAME XILTEMAC_DRIVER_PREFIX |
---|
77 | #endif |
---|
78 | extern xilTemac_driver_attach(struct rtems_bsdnet_ifconfig*, int ); |
---|
79 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH xilTemac_driver_attach |
---|
80 | |
---|
81 | #define BSP_PPC403_CLOCK_HOOK_EXCEPTION ASM_BOOKE_DEC_VECTOR |
---|
82 | |
---|
83 | #endif /* ASM */ |
---|
84 | |
---|
85 | #ifdef __cplusplus |
---|
86 | } |
---|
87 | #endif |
---|
88 | |
---|
89 | #endif |
---|