RTEMS  5.0.0
bsp.h
Go to the documentation of this file.
1 
9 /* bsp.h
10  *
11  * This include file contains all Papyrus board IO definitions.
12  *
13  * Author: Andrew Bray <andy@i-cubed.co.uk>
14  *
15  * COPYRIGHT (c) 1995 by i-cubed ltd.
16  *
17  * To anyone who acknowledges that this file is provided "AS IS"
18  * without any express or implied warranty:
19  * permission to use, copy, modify, and distribute this file
20  * for any purpose is hereby granted without fee, provided that
21  * the above copyright notice and this notice appears in all
22  * copies, and that the name of i-cubed limited not be used in
23  * advertising or publicity pertaining to distribution of the
24  * software without specific, written prior permission.
25  * i-cubed limited makes no representations about the suitability
26  * of this software for any purpose.
27  *
28  * Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
29  *
30  * COPYRIGHT (c) 1989-1999.
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.org/license/LICENSE.
36  */
37 
38 #ifndef LIBBSP_POWERPC_PSIM_BSP_H
39 #define LIBBSP_POWERPC_PSIM_BSP_H
40 
51 #include <bspopts.h>
52 
53 #ifdef ASM
54 /* Definition of where to store registers in alignment handler */
55 #define ALIGN_REGS 0x0140
56 
57 #else
58 #include <rtems.h>
59 #include <libcpu/io.h>
60 #include <bsp/vectors.h>
62 
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
66 
67 /* Constants */
68 
69 /*
70  * Information placed in the linkcmds file.
71  */
72 
73 extern int end; /* last address in the program */
74 extern int RAM_END;
75 
76 extern uint32_t BSP_mem_size;
77 
78 #define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value )
79 
80 /* macros */
81 #define Processor_Synchronize() \
82  __asm__ (" eieio ")
83 
84 /*
85  * Network configuration
86  */
87 struct rtems_bsdnet_ifconfig;
88 
89 int rtems_ifsim_attach(struct rtems_bsdnet_ifconfig *ifcfg, int attaching);
90 
91 #define RTEMS_BSP_NETWORK_DRIVER_NAME "ifsim1"
92 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_ifsim_attach
93 
94 /*
95  * Interfaces to required Clock Driver support methods
96  */
97 int BSP_disconnect_clock_handler(void);
99 
100 #ifdef __cplusplus
101 }
102 #endif
103 
104 #endif /* ASM */
105 
106 #define BSP_HAS_NO_VME
107 
110 #endif
DEFAULT_INITIAL_EXTENSION Support.
PowerPC Exceptions API.
int BSP_connect_clock_handler(void)
Clock Tick Device Driver.
Definition: p_clock.c:37